[webkit-changes] [WebKit/WebKit] c51ed1: Use a HashTable for animationRareData.
mattwoodrow
noreply at github.com
Thu Oct 31 23:57:05 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c51ed1c168eb02036f575c667400d4ed26c99c6e
https://github.com/WebKit/WebKit/commit/c51ed1c168eb02036f575c667400d4ed26c99c6e
Author: Matt Woodrow <mattwoodrow at apple.com>
Date: 2024-10-31 (Thu, 31 Oct 2024)
Changed paths:
M Source/WebCore/animation/ElementAnimationRareData.cpp
M Source/WebCore/animation/ElementAnimationRareData.h
M Source/WebCore/dom/ElementRareData.cpp
M Source/WebCore/dom/ElementRareData.h
M Source/WebCore/style/PseudoElementIdentifier.h
Log Message:
-----------
Use a HashTable for animationRareData.
https://bugs.webkit.org/show_bug.cgi?id=282375
<rdar://138980396>
Reviewed by Tim Nguyen.
ViewTransitions can add a lot of pseudo elements to the document node, we should
use a hash table instead of iterating a list.
* Source/WebCore/animation/ElementAnimationRareData.cpp:
(WebCore::ElementAnimationRareData::ElementAnimationRareData):
* Source/WebCore/animation/ElementAnimationRareData.h:
(WebCore::ElementAnimationRareData::pseudoElementIdentifier): Deleted.
* Source/WebCore/dom/ElementRareData.cpp:
* Source/WebCore/dom/ElementRareData.h:
(WebCore::ElementRareData::animationRareData const):
(WebCore::ElementRareData::ensureAnimationRareData):
* Source/WebCore/style/PseudoElementIdentifier.h:
(WTF::HashTraits<std::optional<WebCore::Style::PseudoElementIdentifier>>::constructDeletedValue):
(WTF::HashTraits<std::optional<WebCore::Style::PseudoElementIdentifier>>::isDeletedValue):
Canonical link: https://commits.webkit.org/285997@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