Changeset 223992 in webkit


Ignore:
Timestamp:
Oct 25, 2017, 4:21:38 PM (8 years ago)
Author:
Simon Fraser
Message:

Aliasing of text in CSS specs is blocky and ugly
https://bugs.webkit.org/show_bug.cgi?id=174946
Source/WebCore:

rdar://problem/33594542

Reviewed by Dean Jackson.

The PaintedContentRequest relating to subpixel-antialiased text was failing to be
satisfied if the text content in a composited layer was nested inside descendant
RenderLayers, because RenderLayer::isVisuallyNonEmpty() returned early. If this
function is passed a request, we can't return until we've satisfied the request
(which triggers the checking of descendant layers).

Test: compositing/contents-format/subpixel-antialiased-nested-layer.html

  • rendering/RenderLayer.cpp:

(WebCore::RenderLayer::calculateClipRects const):

LayoutTests:

Reviewed by Dean Jackson.

  • compositing/contents-format/subpixel-antialiased-nested-layer-expected.txt: Added.
  • compositing/contents-format/subpixel-antialiased-nested-layer.html: Added.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r223984 r223992  
     12017-10-25  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Aliasing of text in CSS specs is blocky and ugly
     4        https://bugs.webkit.org/show_bug.cgi?id=174946
     5
     6        Reviewed by Dean Jackson.
     7
     8        * compositing/contents-format/subpixel-antialiased-nested-layer-expected.txt: Added.
     9        * compositing/contents-format/subpixel-antialiased-nested-layer.html: Added.
     10
    1112017-10-25  Simon Fraser  <simon.fraser@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r223986 r223992  
     12017-10-25  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Aliasing of text in CSS specs is blocky and ugly
     4        https://bugs.webkit.org/show_bug.cgi?id=174946
     5        rdar://problem/33594542
     6
     7        Reviewed by Dean Jackson.
     8
     9        The PaintedContentRequest relating to subpixel-antialiased text was failing to be
     10        satisfied if the text content in a composited layer was nested inside descendant
     11        RenderLayers, because RenderLayer::isVisuallyNonEmpty() returned early. If this
     12        function is passed a request, we can't return until we've satisfied the request
     13        (which triggers the checking of descendant layers).
     14
     15        Test: compositing/contents-format/subpixel-antialiased-nested-layer.html
     16
     17        * rendering/RenderLayer.cpp:
     18        (WebCore::RenderLayer::calculateClipRects const):
     19
    1202017-10-25  Chris Dumez  <cdumez@apple.com>
    221
  • trunk/Source/WebCore/rendering/RenderLayer.cpp

    r223720 r223992  
    64536453
    64546454    if (renderer().isRenderReplaced() || hasOverflowControls()) {
    6455         if (request)
    6456             request->setHasPaintedContent();
    6457         return true;
     6455        if (!request)
     6456            return true;
     6457
     6458        request->setHasPaintedContent();
     6459        if (request->isSatisfied())
     6460            return true;
    64586461    }
    64596462
    64606463    if (hasVisibleBoxDecorationsOrBackground()) {
    6461         if (request)
    6462             request->setHasPaintedContent();
    6463         return true;
    6464     }
    6465    
     6464        if (!request)
     6465            return true;
     6466
     6467        request->setHasPaintedContent();
     6468        if (request->isSatisfied())
     6469            return true;
     6470    }
     6471
    64666472    PaintedContentRequest localRequest;
    64676473    if (!request)
Note: See TracChangeset for help on using the changeset viewer.