[chromium] Form controls on composited layers are not painted properly
authoralokp@chromium.org <alokp@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Mar 2013 23:36:25 +0000 (23:36 +0000)
committeralokp@chromium.org <alokp@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Mar 2013 23:36:25 +0000 (23:36 +0000)
https://bugs.webkit.org/show_bug.cgi?id=111366

Reviewed by James Robinson.

Set PlatformContextSkia::m_drawingToImageBuffer which is used as a hint to properly blend GDI-painted bitmap.

* platform/graphics/chromium/OpaqueRectTrackingContentLayerDelegate.cpp:
(WebCore::OpaqueRectTrackingContentLayerDelegate::paintContents):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@144688 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/chromium/OpaqueRectTrackingContentLayerDelegate.cpp

index 32897ba..a84e885 100644 (file)
@@ -1,3 +1,15 @@
+2013-03-04  Alok Priyadarshi  <alokp@chromium.org>
+
+        [chromium] Form controls on composited layers are not painted properly
+        https://bugs.webkit.org/show_bug.cgi?id=111366
+
+        Reviewed by James Robinson.
+
+        Set PlatformContextSkia::m_drawingToImageBuffer which is used as a hint to properly blend GDI-painted bitmap.
+
+        * platform/graphics/chromium/OpaqueRectTrackingContentLayerDelegate.cpp:
+        (WebCore::OpaqueRectTrackingContentLayerDelegate::paintContents):
+
 2013-03-04  Simon Fraser  <simon.fraser@apple.com>
 
         Give ViewportConstraints classes copy constructors
index 81da4ab..0c496df 100644 (file)
@@ -57,6 +57,7 @@ void OpaqueRectTrackingContentLayerDelegate::paintContents(SkCanvas* canvas, con
         platformContext.setHintingScaleFactor(canvas->getTotalMatrix().getScaleX());
 #endif
     platformContext.setTrackOpaqueRegion(!m_opaque);
+    platformContext.setDrawingToImageBuffer(!m_opaque);
     GraphicsContext context(&platformContext);
     context.setShouldSmoothFonts(canPaintLCDText && m_opaque);