⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 284247 in webkit


Ignore:
Timestamp:
Oct 15, 2021, 8:25:57 AM (5 years ago)
Author:
Simon Fraser
Message:

REGRESSION (r276370): Elements with animated transform property might not properly rendered
https://bugs.webkit.org/show_bug.cgi?id=230753

Reviewed by Myles C. Maxfield.

Source/WebCore:

The change in r276370 was incorrect, resulting in the geometry map being used when
an element had a transform and transform-style: preserves-3d.

Fix by going back to testing for the presence of the various transform properties which
affect geometry. hasTransformRelatedProperty() is still useful as a fast bit-check.

Test: fast/repaint/transform-preserve-3d-repaint.html

  • rendering/RenderGeometryMap.cpp:

(WebCore::canMapBetweenRenderersViaLayers):

LayoutTests:

  • fast/repaint/transform-preserve-3d-repaint-expected.txt: Added.
  • fast/repaint/transform-preserve-3d-repaint.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r284246 r284247  
     12021-10-15  Simon Fraser  <simon.fraser@apple.com>
     2
     3        REGRESSION (r276370): Elements with animated transform property might not properly rendered
     4        https://bugs.webkit.org/show_bug.cgi?id=230753
     5
     6        Reviewed by Myles C. Maxfield.
     7
     8        * fast/repaint/transform-preserve-3d-repaint-expected.txt: Added.
     9        * fast/repaint/transform-preserve-3d-repaint.html: Added.
     10
    1112021-10-15  Tyler Wilcock  <tyler_w@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r284246 r284247  
     12021-10-15  Simon Fraser  <simon.fraser@apple.com>
     2
     3        REGRESSION (r276370): Elements with animated transform property might not properly rendered
     4        https://bugs.webkit.org/show_bug.cgi?id=230753
     5
     6        Reviewed by Myles C. Maxfield.
     7
     8        The change in r276370 was incorrect, resulting in the geometry map being used when
     9        an element had a transform and `transform-style: preserves-3d`.
     10
     11        Fix by going back to testing for the presence of the various transform properties which
     12        affect geometry. hasTransformRelatedProperty() is still useful as a fast bit-check.
     13
     14        Test: fast/repaint/transform-preserve-3d-repaint.html
     15
     16        * rendering/RenderGeometryMap.cpp:
     17        (WebCore::canMapBetweenRenderersViaLayers):
     18
    1192021-10-15  Tyler Wilcock  <tyler_w@apple.com>
    220
  • trunk/Source/WebCore/rendering/RenderGeometryMap.cpp

    r281239 r284247  
    151151            return false;
    152152
    153         if (current->hasTransformRelatedProperty() && !current->style().preserves3D())
     153        if (current->hasTransformRelatedProperty() && (style.hasTransform() || style.translate() || style.scale() || style.rotate() || style.hasPerspective()))
    154154            return false;
    155155       
Note: See TracChangeset for help on using the changeset viewer.