Title: [167536] trunk/Source/WebKit2
Revision
167536
Author
[email protected]
Date
2014-04-19 10:36:22 -0700 (Sat, 19 Apr 2014)

Log Message

[iOS WK2] Fuzzy layers on sites using perspective and transforms
https://bugs.webkit.org/show_bug.cgi?id=131873
<rdar://problem/16540576>

Reviewed by Sam Weinig.

Always set rasterizationScale on CALayers in the UI process
(as we do for WK1) so that layers are rasterized taking the
device scale into account. We can do unconditionally; this
is benign on layers that CA doesn't rasterize.

* Shared/mac/RemoteLayerTreePropertyApplier.mm:
(WebKit::applyPropertiesToLayer):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (167535 => 167536)


--- trunk/Source/WebKit2/ChangeLog	2014-04-19 17:36:16 UTC (rev 167535)
+++ trunk/Source/WebKit2/ChangeLog	2014-04-19 17:36:22 UTC (rev 167536)
@@ -1,3 +1,19 @@
+2014-04-19  Simon Fraser  <[email protected]>
+
+        [iOS WK2] Fuzzy layers on sites using perspective and transforms
+        https://bugs.webkit.org/show_bug.cgi?id=131873
+        <rdar://problem/16540576>
+
+        Reviewed by Sam Weinig.
+        
+        Always set rasterizationScale on CALayers in the UI process
+        (as we do for WK1) so that layers are rasterized taking the
+        device scale into account. We can do unconditionally; this
+        is benign on layers that CA doesn't rasterize.
+
+        * Shared/mac/RemoteLayerTreePropertyApplier.mm:
+        (WebKit::applyPropertiesToLayer):
+
 2014-04-18  Simon Fraser  <[email protected]>
 
         Use 'override' in GraphicsLayerCA

Modified: trunk/Source/WebKit2/Shared/mac/RemoteLayerTreePropertyApplier.mm (167535 => 167536)


--- trunk/Source/WebKit2/Shared/mac/RemoteLayerTreePropertyApplier.mm	2014-04-19 17:36:16 UTC (rev 167535)
+++ trunk/Source/WebKit2/Shared/mac/RemoteLayerTreePropertyApplier.mm	2014-04-19 17:36:22 UTC (rev 167536)
@@ -167,8 +167,10 @@
     if (properties.changedProperties & RemoteLayerTreeTransaction::ContentsRectChanged)
         layer.contentsRect = properties.contentsRect;
 
-    if (properties.changedProperties & RemoteLayerTreeTransaction::ContentsScaleChanged)
+    if (properties.changedProperties & RemoteLayerTreeTransaction::ContentsScaleChanged) {
         layer.contentsScale = properties.contentsScale;
+        layer.rasterizationScale = properties.contentsScale;
+    }
 
     if (properties.changedProperties & RemoteLayerTreeTransaction::MinificationFilterChanged)
         layer.minificationFilter = toCAFilterType(properties.minificationFilter);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to