[Webkit-unassigned] [Bug 242565] New: make FontCascade refcounted to make style diffing cheaper when only color has changed

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jul 9 23:09:06 PDT 2022


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

            Bug ID: 242565
           Summary: make FontCascade refcounted to make style diffing
                    cheaper when only color has changed
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: heycam at apple.com
                CC: webkit-bug-importer at group.apple.com

When the color property is being animated, an element will get a new StyleInheritedData, since that's where color lives.  The FontCasca object, which is moderately large, will be copied.  We can end up spending significant time under FontCascad::operator== under RenderStyle::changeRequiresLayout and RenderText::styleDidChange, comparing identical FontCascad objects.

Turning StyleInheritedData::fontCascade into a DataRef<FontCascade> would make comparison cheap when font style data is not changing.

-- 
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/20220710/9bc0f2ae/attachment-0001.htm>


More information about the webkit-unassigned mailing list