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

Changeset 277385 in webkit


Ignore:
Timestamp:
May 12, 2021, 1:13:55 PM (5 years ago)
Author:
Said Abou-Hallawa
Message:

Removing the transform CSS property from the SVG element does not cause invalidation
https://bugs.webkit.org/show_bug.cgi?id=225366

Reviewed by Simon Fraser.

Source/WebCore:

If the new or the old RenderStyle includes a transform, the renderer of
the SVG element needs to be repainted.

Test: svg/css/svg-css-transform-dynamic-remove.html

  • rendering/svg/RenderSVGModelObject.cpp:

(WebCore::RenderSVGModelObject::styleDidChange):

LayoutTests:

  • svg/css/svg-css-transform-dynamic-remove-expected.html: Added.
  • svg/css/svg-css-transform-dynamic-remove.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r277378 r277385  
     12021-05-12  Said Abou-Hallawa  <said@apple.com>
     2
     3        Removing the transform CSS property from the SVG element does not cause invalidation
     4        https://bugs.webkit.org/show_bug.cgi?id=225366
     5
     6        Reviewed by Simon Fraser.
     7
     8        * svg/css/svg-css-transform-dynamic-remove-expected.html: Added.
     9        * svg/css/svg-css-transform-dynamic-remove.html: Added.
     10
    1112021-05-12  Sergio Villar Senin  <svillar@igalia.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r277384 r277385  
     12021-05-12  Said Abou-Hallawa  <said@apple.com>
     2
     3        Removing the transform CSS property from the SVG element does not cause invalidation
     4        https://bugs.webkit.org/show_bug.cgi?id=225366
     5
     6        Reviewed by Simon Fraser.
     7
     8        If the new or the old RenderStyle includes a transform, the renderer of
     9        the SVG element needs to be repainted.
     10
     11        Test: svg/css/svg-css-transform-dynamic-remove.html
     12
     13        * rendering/svg/RenderSVGModelObject.cpp:
     14        (WebCore::RenderSVGModelObject::styleDidChange):
     15
    1162021-05-12  Sam Weinig  <weinig@apple.com>
    217
  • trunk/Source/WebCore/rendering/svg/RenderSVGModelObject.cpp

    r261775 r277385  
    102102    if (diff == StyleDifference::Layout) {
    103103        setNeedsBoundariesUpdate();
    104         if (style().hasTransform())
     104        if (style().hasTransform() || (oldStyle && oldStyle->hasTransform()))
    105105            setNeedsTransformUpdate();
    106106    }
Note: See TracChangeset for help on using the changeset viewer.