Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1274b2e8578441d52ca523154721d24ccd4f8335
      
https://github.com/WebKit/WebKit/commit/1274b2e8578441d52ca523154721d24ccd4f8335
  Author: Matthieu Dubet <[email protected]>
  Date:   2023-03-17 (Fri, 17 Mar 2023)

  Changed paths:
    M Source/WebCore/css/CSSStyleRule.cpp
    M Source/WebCore/css/StyleRule.cpp
    M Source/WebCore/css/StyleRule.h

  Log Message:
  -----------
  Fix test crash because of missing copy() method
https://bugs.webkit.org/show_bug.cgi?id=253723
rdar://106561354

Reviewed by Brent Fulgham.

The visitDerived() dispatcher was calling StyleRule::copy()
because there was no implementation for StyleRuleWithNesting::copy().

A follow-up patch could improve the static assertion in copy() to catch that
at compile-time.

* Source/WebCore/css/CSSStyleRule.cpp:
(WebCore::CSSStyleRule::reattach):
* Source/WebCore/css/StyleRule.cpp:
(WebCore::StyleRuleWithNesting::copy const):
(WebCore::StyleRuleWithNesting::StyleRuleWithNesting):
(WebCore::m_originalSelectorList):
* Source/WebCore/css/StyleRule.h:

Canonical link: https://commits.webkit.org/261815@main


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to