Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 8249ec2a7b199f145256e194ad2fc97c61dbe404
https://github.com/WebKit/WebKit/commit/8249ec2a7b199f145256e194ad2fc97c61dbe404
Author: Chris Dumez <[email protected]>
Date: 2023-08-30 (Wed, 30 Aug 2023)
Changed paths:
M Source/WebCore/dom/StyledElement.cpp
M Source/WebCore/dom/StyledElement.h
M Source/WebCore/html/HTMLImageElement.h
M Source/WebCore/svg/SVGElement.cpp
Log Message:
-----------
Optimize StyledElement::rebuildPresentationalHintStyle()
https://bugs.webkit.org/show_bug.cgi?id=258316
rdar://111406451
Reviewed by Darin Adler.
Optimize StyledElement::rebuildPresentationalHintStyle() by leveraging
the NodeName enumeration to avoid a large HashMap lookup.
* Source/WebCore/dom/StyledElement.cpp:
(WebCore::StyledElement::rebuildPresentationalHintStyle):
* Source/WebCore/dom/StyledElement.h:
(WebCore::StyledElement::additionalPresentationalHintStyle const):
(WebCore::StyledElement::collectExtraStyleForPresentationalHints): Deleted.
* Source/WebCore/html/HTMLImageElement.h:
* Source/WebCore/svg/SVGElement.cpp:
(WebCore::SVGElement::cssPropertyIdForSVGAttributeName):
(WebCore::createAttributeNameToCSSPropertyIDMap): Deleted.
Canonical link: https://commits.webkit.org/267482@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes