[webkit-changes] [WebKit/WebKit] b733d1: Allow explicit inherit in matched declarations cache
Antti Koivisto
noreply at github.com
Wed Aug 16 21:55:30 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b733d192e11b8379df67740799a87cecaa565a85
https://github.com/WebKit/WebKit/commit/b733d192e11b8379df67740799a87cecaa565a85
Author: Antti Koivisto <antti at apple.com>
Date: 2023-08-16 (Wed, 16 Aug 2023)
Changed paths:
M Source/WebCore/style/ElementRuleCollector.cpp
M Source/WebCore/style/PropertyCascade.cpp
M Source/WebCore/style/PropertyCascade.h
M Source/WebCore/style/StyleResolver.cpp
Log Message:
-----------
Allow explicit inherit in matched declarations cache
https://bugs.webkit.org/show_bug.cgi?id=260199
rdar://113902520
Reviewed by Alan Baradlay.
If explicit inherit is involved we just need to apply it on top of the cached value.
* Source/WebCore/style/ElementRuleCollector.cpp:
(WebCore::Style::ElementRuleCollector::addMatchedProperties):
* Source/WebCore/style/PropertyCascade.cpp:
(WebCore::Style::PropertyCascade::addMatch):
Check for explicit inherit if needed.
* Source/WebCore/style/PropertyCascade.h:
* Source/WebCore/style/StyleResolver.cpp:
(WebCore::Style::Resolver::applyMatchedProperties):
Canonical link: https://commits.webkit.org/266986@main
More information about the webkit-changes
mailing list