-
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.
Avoid traversing all custom properties in Styleable::updateCSSTransit…
…ions when not needed https://bugs.webkit.org/show_bug.cgi?id=267536 rdar://121002539 Reviewed by Antoine Quint. * Source/WebCore/css/CSSCustomPropertyValue.cpp: (WebCore::CSSCustomPropertyValue::isAnimatable const): Factor into a function. * Source/WebCore/css/CSSCustomPropertyValue.h: * Source/WebCore/rendering/style/StyleCustomPropertyData.cpp: (WebCore::StyleCustomPropertyData::StyleCustomPropertyData): (WebCore::StyleCustomPropertyData::set): Check if the newly set property is animatable. (WebCore::StyleCustomPropertyData::size const): Deleted. * Source/WebCore/rendering/style/StyleCustomPropertyData.h: (WebCore::StyleCustomPropertyData::size const): (WebCore::StyleCustomPropertyData::mayHaveAnimatableProperties const): * Source/WebCore/style/Styleable.cpp: (WebCore::Styleable::updateCSSTransitions const): Bail out if before traversing if we already know the properties are not animatable. Canonical link: https://commits.webkit.org/273045@main
- Loading branch information
Showing
5 changed files
with
16 additions
and
9 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
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