-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://bugs.webkit.org/show_bug.cgi?id=274048 rdar://127948676 Reviewed by Ryosuke Niwa. When changing class attribute via parserSetAttributes, 1. We may be able to skip SpaceSplitString creation. If the ElementData is shareable one, it is possible that it already has SpaceSplitString materialized before. We check the keyString, and if it is true, then skip the creation. 2. Cache / style invalidation is not necessary at this point yet since it is not attached to the tree, and never rendered before. * Source/WebCore/dom/Element.cpp: (WebCore::Element::attributeChanged): (WebCore::Element::classAttributeChanged): * Source/WebCore/dom/Element.h: * Source/WebCore/dom/SpaceSplitString.h: (WebCore::SpaceSplitStringData::keyString const): (WebCore::SpaceSplitString::keyString const): * Source/WebCore/svg/SVGElement.cpp: (WebCore::SVGElement::svgAttributeChanged): Canonical link: https://commits.webkit.org/278733@main
- Loading branch information
1 parent
75e0b11
commit bff7571
Showing
4 changed files
with
31 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters