Title: [115270] trunk/Source/WebKit2
Revision
115270
Author
bda...@apple.com
Date
2012-04-25 18:07:35 -0700 (Wed, 25 Apr 2012)

Log Message

https://bugs.webkit.org/show_bug.cgi?id=84909
Background tabs are fuzzy until repaint when deviceScaleFactor > 1
-and corresponding-
<rdar://problem/11312064>

Rubber-stamped by Darin Adler.

Re-order the parameters of paintBitmapContext to match paintImage.
* Platform/cg/CGUtilities.cpp:
(WebKit::paintBitmapContext):
* Platform/cg/CGUtilities.h:
(WebKit):
* UIProcess/mac/BackingStoreMac.mm:
(WebKit::BackingStore::resetScrolledRect):
(WebKit::BackingStore::paint):
(WebKit::BackingStore::backingStoreContext):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (115269 => 115270)


--- trunk/Source/WebKit2/ChangeLog	2012-04-26 01:06:24 UTC (rev 115269)
+++ trunk/Source/WebKit2/ChangeLog	2012-04-26 01:07:35 UTC (rev 115270)
@@ -5,6 +5,25 @@
         -and corresponding-
         <rdar://problem/11312064>
 
+        Rubber-stamped by Darin Adler.
+
+        Re-order the parameters of paintBitmapContext to match paintImage.
+        * Platform/cg/CGUtilities.cpp:
+        (WebKit::paintBitmapContext):
+        * Platform/cg/CGUtilities.h:
+        (WebKit):
+        * UIProcess/mac/BackingStoreMac.mm:
+        (WebKit::BackingStore::resetScrolledRect):
+        (WebKit::BackingStore::paint):
+        (WebKit::BackingStore::backingStoreContext):
+
+2012-04-25  Beth Dakin  <bda...@apple.com>
+
+        https://bugs.webkit.org/show_bug.cgi?id=84909
+        Background tabs are fuzzy until repaint when deviceScaleFactor > 1
+        -and corresponding-
+        <rdar://problem/11312064>
+
         Reviewed by Darin Adler.
 
         BackingStoreMac paints into a Bitmap instead of a CGLayer when there is no 

Modified: trunk/Source/WebKit2/Platform/cg/CGUtilities.cpp (115269 => 115270)


--- trunk/Source/WebKit2/Platform/cg/CGUtilities.cpp	2012-04-26 01:06:24 UTC (rev 115269)
+++ trunk/Source/WebKit2/Platform/cg/CGUtilities.cpp	2012-04-26 01:07:35 UTC (rev 115270)
@@ -48,7 +48,7 @@
     CGContextRestoreGState(context);
 }
 
-void paintBitmapContext(CGContextRef context, CGContextRef bitmapContext, CGPoint destination, CGRect source, CGFloat scaleFactor)
+void paintBitmapContext(CGContextRef context, CGContextRef bitmapContext, CGFloat scaleFactor, CGPoint destination, CGRect source)
 {
     RetainPtr<CGImageRef> image(AdoptCF, CGBitmapContextCreateImage(bitmapContext));
     paintImage(context, image.get(), scaleFactor, destination, source);

Modified: trunk/Source/WebKit2/Platform/cg/CGUtilities.h (115269 => 115270)


--- trunk/Source/WebKit2/Platform/cg/CGUtilities.h	2012-04-26 01:06:24 UTC (rev 115269)
+++ trunk/Source/WebKit2/Platform/cg/CGUtilities.h	2012-04-26 01:07:35 UTC (rev 115270)
@@ -29,7 +29,7 @@
 namespace WebKit {
 
 void paintImage(CGContextRef, CGImageRef, CGFloat scaleFactor, CGPoint destination, CGRect source);
-void paintBitmapContext(CGContextRef, CGContextRef bitmapContext, CGPoint destination, CGRect source, CGFloat scaleFactor);
+void paintBitmapContext(CGContextRef, CGContextRef bitmapContext, CGFloat scaleFactor, CGPoint destination, CGRect source);
 
 } // namespace WebKit
 

Modified: trunk/Source/WebKit2/UIProcess/mac/BackingStoreMac.mm (115269 => 115270)


--- trunk/Source/WebKit2/UIProcess/mac/BackingStoreMac.mm	2012-04-26 01:06:24 UTC (rev 115269)
+++ trunk/Source/WebKit2/UIProcess/mac/BackingStoreMac.mm	2012-04-26 01:07:35 UTC (rev 115270)
@@ -111,7 +111,7 @@
     paint(context.get(), m_scrolledRect);
 
     IntRect sourceRect(IntPoint(), m_scrolledRect.size());
-    paintBitmapContext(backingStoreContext(), context.get(), m_scrolledRect.location(), sourceRect, m_deviceScaleFactor);
+    paintBitmapContext(backingStoreContext(), context.get(), m_deviceScaleFactor, m_scrolledRect.location(), sourceRect);
 
     m_scrolledRect = IntRect();
     m_scrolledRectOffset = IntSize();
@@ -137,7 +137,7 @@
         source = part;
         source.origin.x += offset.width();
         source.origin.y += offset.height();
-        paintBitmapContext(context, m_bitmapContext.get(), part.location(), source, m_deviceScaleFactor);
+        paintBitmapContext(context, m_bitmapContext.get(), m_deviceScaleFactor, part.location(), source);
     });
 }
 
@@ -159,7 +159,7 @@
 
         if (m_bitmapContext) {
             // Paint the contents of the bitmap into the layer context.
-            paintBitmapContext(layerContext, m_bitmapContext.get(), CGPointZero, CGRectMake(0, 0, m_size.width(), m_size.height()), m_deviceScaleFactor);
+            paintBitmapContext(layerContext, m_bitmapContext.get(), m_deviceScaleFactor, CGPointZero, CGRectMake(0, 0, m_size.width(), m_size.height()));
             m_bitmapContext = nullptr;
         }
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to