Text looks bad on some CSS spec pages
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 16 Jan 2018 21:52:09 +0000 (21:52 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 16 Jan 2018 21:52:09 +0000 (21:52 +0000)
https://bugs.webkit.org/show_bug.cgi?id=181700
rdar://problem/36552107

Reviewed by Tim Horton.

When making new tiles in a TileController, we failed to set their "supports antialiased layer text"
setting, so tile caches could end up with a mixture of layers that do and do not support
antialiased layer text.

No tests because the tiled drawing tests don't dump out tiles inside of tile caches.

* platform/graphics/ca/TileController.cpp:
(WebCore::TileController::createTileLayer):

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

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/ca/TileController.cpp

index 3f26f68..1764c79 100644 (file)
@@ -1,3 +1,20 @@
+2018-01-16  Simon Fraser  <simon.fraser@apple.com>
+
+        Text looks bad on some CSS spec pages
+        https://bugs.webkit.org/show_bug.cgi?id=181700
+        rdar://problem/36552107
+
+        Reviewed by Tim Horton.
+
+        When making new tiles in a TileController, we failed to set their "supports antialiased layer text"
+        setting, so tile caches could end up with a mixture of layers that do and do not support
+        antialiased layer text.
+
+        No tests because the tiled drawing tests don't dump out tiles inside of tile caches.
+
+        * platform/graphics/ca/TileController.cpp:
+        (WebCore::TileController::createTileLayer):
+
 2018-01-16  Said Abou-Hallawa  <sabouhallawa@apple.com>
 
         REGRESSION(r221292): svg/animations/animateTransform-pattern-transform.html crashes with security assertion
index 781ba62..a3302a9 100644 (file)
@@ -743,6 +743,7 @@ RefPtr<PlatformCALayer> TileController::createTileLayer(const IntRect& tileRect,
     layer->setContentsScale(m_deviceScaleFactor * temporaryScaleFactor);
     layer->setAcceleratesDrawing(m_acceleratesDrawing);
     layer->setWantsDeepColorBackingStore(m_wantsDeepColorBackingStore);
+    layer->setSupportsSubpixelAntialiasedText(m_supportsSubpixelAntialiasedText);
 
     layer->setNeedsDisplay();