[Webkit-unassigned] [Bug 251657] New: avoid creating ElementRareData when lang="" matches the effective document language

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 2 18:48:26 PST 2023


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

            Bug ID: 251657
           Summary: avoid creating ElementRareData when lang="" matches
                    the effective document language
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: heycam at apple.com

On Wikipedia, there's a lang="" attribute on the <div> that contains the article content.  On the page I'm looking at, this lang="" matches the value on the document element.  Currently we'll create ElementRareData to store the effective language for the entire subtree, which for large articles can be several MB worth.  We can optimize this by detecting when the explicitly set lang="" matches the effective document language, and avoid the subtree traversal / restyle / ElementRareData creation.

-- 
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/20230203/8fbb8bb6/attachment-0001.htm>


More information about the webkit-unassigned mailing list