[webkit-changes] [WebKit/WebKit] 365141: [CSSOM] Fix insertion of rule into orphaned style ...

Matthieu Dubet noreply at github.com
Wed Jun 14 08:22:40 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 36514195098dc050e1be84bf346f632b2c1234f7
      https://github.com/WebKit/WebKit/commit/36514195098dc050e1be84bf346f632b2c1234f7
  Author: Matthieu Dubet <m_dubet at apple.com>
  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




More information about the webkit-changes mailing list