summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/mac/webwidget_host.mm
diff options
context:
space:
mode:
authortkent@google.com <tkent@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-29 03:38:16 +0000
committertkent@google.com <tkent@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-29 03:38:16 +0000
commit81dd62cdf23b74eca46627ed0233189f11482381 (patch)
treef07e3f78c9ef8fba84cd247b85857d05eb197bcd /webkit/tools/test_shell/mac/webwidget_host.mm
parentc9cb39ba03c55fc20d59fefc86191a7cccd10faf (diff)
downloadchromium_src-81dd62cdf23b74eca46627ed0233189f11482381.zip
chromium_src-81dd62cdf23b74eca46627ed0233189f11482381.tar.gz
chromium_src-81dd62cdf23b74eca46627ed0233189f11482381.tar.bz2
WebKit implementation of <meter> element assumes underlying
NSGraphicsContext flipped. But it is not true for TestShell. This change make the graphics context flipped. Note that this will break - LayoutTests/fast/dom/HTMLMeterElement/meter-appearances-rating-relevancy.html - LayoutTests/fast/dom/HTMLMeterElement/meter-styles.html - LayoutTests/fast/dom/HTMLMeterElement/meter-styles-changing-pseudo.html because the expectation is wrong. BUG=46989 TEST=LayoutTests/fast/dom/HTMLMeterElement/meter-appearances-rating-relevancy.html,LayoutTests/fast/dom/HTMLMeterElement/meter-element.html Patch written by morrita@g Original code review: http://codereview.chromium.org/2799020/show Review URL: http://codereview.chromium.org/2824038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51096 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/mac/webwidget_host.mm')
-rw-r--r--webkit/tools/test_shell/mac/webwidget_host.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/webkit/tools/test_shell/mac/webwidget_host.mm b/webkit/tools/test_shell/mac/webwidget_host.mm
index 12c202e1..d76c41b 100644
--- a/webkit/tools/test_shell/mac/webwidget_host.mm
+++ b/webkit/tools/test_shell/mac/webwidget_host.mm
@@ -174,7 +174,7 @@ void WebWidgetHost::Paint() {
canvas_->getTopPlatformDevice().GetBitmapContext();
[NSGraphicsContext setCurrentContext:
[NSGraphicsContext graphicsContextWithGraphicsPort:bitmap_context
- flipped:NO]];
+ flipped:YES]];
// This may result in more invalidation
webwidget_->layout();