[Webkit-unassigned] [Bug 242425] New: avoid invalidating SVG resources when referencing element changes style

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 6 22:20:47 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=242425

            Bug ID: 242425
           Summary: avoid invalidating SVG resources when referencing
                    element changes style
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: SVG
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: heycam at apple.com
                CC: sabouhallawa at apple.com,
                    webkit-bug-importer at group.apple.com,
                    zimmermann at kde.org

SVGResourcesCache::clientStyleChanged will destroy then recreate the SVG resources for an element when it is restyled and the StyleDifference is not Repaint or RepaintIfText.  This is not necessary for many property changes.  We only need to do this if there is a change in which resource is being referenced (i.e., the clip-path, mask-image, fill, etc. property changed), or if there is a property change on the element that a cached resource depends on.

One specific example is when the transform of a client RenderElement changes.  With the work to make resources handle client layout changes lazily in bug 242420, transforms will be taken into account as part of the resource validation process at paint time, if needed.  So if the transform changes we don't need to destroy and recreate the full set of SVG resources here in clientStyleChanged.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220707/6f864aec/attachment.htm>


More information about the webkit-unassigned mailing list