From 81dd62cdf23b74eca46627ed0233189f11482381 Mon Sep 17 00:00:00 2001 From: "tkent@google.com" Date: Tue, 29 Jun 2010 03:38:16 +0000 Subject: WebKit implementation of 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 --- webkit/tools/test_shell/mac/webwidget_host.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webkit') 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(); -- cgit v1.1