[webkit-changes] [WebKit/WebKit] ce1ed5: [SVG] Faster property access for <rect> and <circle>
Matthieu Dubet
noreply at github.com
Fri May 24 18:59:20 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ce1ed5b53fe6cf9e093f6797798bff4d263fb078
https://github.com/WebKit/WebKit/commit/ce1ed5b53fe6cf9e093f6797798bff4d263fb078
Author: Matthieu Dubet <m_dubet at apple.com>
Date: 2024-05-24 (Fri, 24 May 2024)
Changed paths:
M Source/WebCore/svg/SVGCircleElement.cpp
M Source/WebCore/svg/SVGCircleElement.h
M Source/WebCore/svg/SVGElement.h
M Source/WebCore/svg/SVGRectElement.cpp
M Source/WebCore/svg/SVGRectElement.h
M Source/WebCore/svg/properties/SVGPropertyOwnerRegistry.h
Log Message:
-----------
[SVG] Faster property access for <rect> and <circle>
https://bugs.webkit.org/show_bug.cgi?id=273293
rdar://127085305
Reviewed by Simon Fraser, Sam Weinig and Yusuke Suzuki.
This patch avoids looking for the property via the PropertyRegistry hashmap.
It's a small improvement on MotionMark on Intel.
* Source/WebCore/svg/SVGCircleElement.cpp:
(WebCore::SVGCircleElement::propertyForAttribute const):
* Source/WebCore/svg/SVGCircleElement.h:
* Source/WebCore/svg/SVGElement.h:
* Source/WebCore/svg/SVGRectElement.cpp:
(WebCore::SVGRectElement::propertyForAttribute const):
* Source/WebCore/svg/SVGRectElement.h:
* Source/WebCore/svg/properties/SVGPropertyOwnerRegistry.h:
(WebCore::requires):
(WebCore::SVGPropertyOwnerRegistry::fastAnimatedPropertyLookup):
Canonical link: https://commits.webkit.org/279304@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list