Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 36514195098dc050e1be84bf346f632b2c1234f7
https://github.com/WebKit/WebKit/commit/36514195098dc050e1be84bf346f632b2c1234f7
Author: Matthieu Dubet <[email protected]>
Date: 2023-06-14 (Wed, 14 Jun 2023)
Changed paths:
A LayoutTests/fast/css/cssom-mutation-stylerule-expected.html
A LayoutTests/fast/css/cssom-mutation-stylerule.html
M Source/WebCore/css/CSSStyleRule.cpp
Log Message:
-----------
[CSSOM] Fix insertion of rule into orphaned style rule
https://bugs.webkit.org/show_bug.cgi?id=258017
rdar://110629287
Reviewed by Antti Koivisto.
When a StyleRule is orphaned, we don't need any specific mechanism (such as
RuleMutationScope)
and convert it directly to a StyleRuleWithNesting.
* LayoutTests/fast/css/cssom-mutation-stylerule-expected.html: Added.
* LayoutTests/fast/css/cssom-mutation-stylerule.html: Added.
* Source/WebCore/css/CSSStyleRule.cpp:
(WebCore::CSSStyleRule::insertRule):
Canonical link: https://commits.webkit.org/265154@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes