[webkit-changes] [WebKit/WebKit] 280b81: Eliminate duplicate declarations in ElementRuleCol...
Antti Koivisto
noreply at github.com
Thu Oct 12 10:29:16 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 280b81ede18414fc4c3938df7c955729d952169d
https://github.com/WebKit/WebKit/commit/280b81ede18414fc4c3938df7c955729d952169d
Author: Antti Koivisto <antti at apple.com>
Date: 2023-10-12 (Thu, 12 Oct 2023)
Changed paths:
M Source/WebCore/style/ElementRuleCollector.cpp
Log Message:
-----------
Eliminate duplicate declarations in ElementRuleCollector
https://bugs.webkit.org/show_bug.cgi?id=263068
rdar://116854633
Reviewed by Alan Baradlay.
Sometimes there are multiple matching rules with the same exact declaration. We can eliminate them early.
* Source/WebCore/style/ElementRuleCollector.cpp:
(WebCore::Style::ElementRuleCollector::addMatchedProperties):
Because declaration deduplication this is just a pointer comparison.
Canonical link: https://commits.webkit.org/269261@main
More information about the webkit-changes
mailing list