[webkit-changes] [WebKit/WebKit] bc4881: Null check containingShadowRoot in more places

Rob Buis noreply at github.com
Wed Oct 26 03:59:40 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: bc488196fd2d1577ab2c413467a3f072b146516e
      https://github.com/WebKit/WebKit/commit/bc488196fd2d1577ab2c413467a3f072b146516e
  Author: Rob Buis <rbuis at igalia.com>
  Date:   2022-10-26 (Wed, 26 Oct 2022)

  Changed paths:
    M Source/WebCore/style/ElementRuleCollector.cpp
    M Source/WebCore/style/StyleInvalidationFunctions.h

  Log Message:
  -----------
  Null check containingShadowRoot in more places
https://bugs.webkit.org/show_bug.cgi?id=247051
rdar://99343630

Reviewed by Ryosuke Niwa.

Elements can be marked as being in a shadow tree and at the same time
containingShadowRoot can be null (for example when removing/disconnecting
elements), so null check containingShadowRoot in more places.

* Source/WebCore/style/ElementRuleCollector.cpp:
(WebCore::Style::ElementRuleCollector::matchShadowPseudoElementRules):
(WebCore::Style::ElementRuleCollector::matchPartPseudoElementRules):
* Source/WebCore/style/StyleInvalidationFunctions.h:
(WebCore::Style::traverseRuleFeatures):

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




More information about the webkit-changes mailing list