[webkit-changes] [WebKit/WebKit] bfdea7: Use CheckedPtr more for Node types now that Node s...

Chris Dumez noreply at github.com
Wed Sep 20 14:05:37 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: bfdea7f1b0cabdce68bc719edfabe473c6ff5edd
      https://github.com/WebKit/WebKit/commit/bfdea7f1b0cabdce68bc719edfabe473c6ff5edd
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2023-09-20 (Wed, 20 Sep 2023)

  Changed paths:
    M Source/WebCore/accessibility/AccessibilityNodeObject.h
    M Source/WebCore/animation/DeclarativeAnimation.cpp
    M Source/WebCore/animation/DeclarativeAnimation.h
    M Source/WebCore/dom/Attr.cpp
    M Source/WebCore/dom/Attr.h
    M Source/WebCore/dom/Document.cpp
    M Source/WebCore/dom/Document.h
    M Source/WebCore/dom/Element.cpp
    M Source/WebCore/dom/Node.cpp
    M Source/WebCore/dom/ShadowRoot.cpp
    M Source/WebCore/dom/ShadowRoot.h
    M Source/WebCore/editing/TextManipulationController.cpp
    M Source/WebCore/editing/TextManipulationController.h
    M Source/WebCore/page/scrolling/ScrollAnchoringController.h
    M Source/WebCore/xml/XSLStyleSheet.h

  Log Message:
  -----------
  Use CheckedPtr more for Node types now that Node subclasses CanMakeCheckedPtr
https://bugs.webkit.org/show_bug.cgi?id=261796

Reviewed by Darin Adler.

Use CheckedPtr more for Node types now that Node subclasses CanMakeCheckedPtr.
It is more efficient in the case where we don't need the pointer to get
automatically nulled out.

* Source/WebCore/accessibility/AccessibilityNodeObject.h:
* Source/WebCore/animation/DeclarativeAnimation.cpp:
(WebCore::DeclarativeAnimation::initialize):
(WebCore::DeclarativeAnimation::shouldFireDOMEvents const):
* Source/WebCore/animation/DeclarativeAnimation.h:
* Source/WebCore/dom/Attr.cpp:
(WebCore::Attr::attachToElement):
* Source/WebCore/dom/Attr.h:
* Source/WebCore/dom/Document.cpp:
(WebCore::Document::registerArticleElement):
(WebCore::Document::unregisterArticleElement):
(WebCore::Document::updateMainArticleElementAfterLayout):
* Source/WebCore/dom/Document.h:
* Source/WebCore/dom/Element.cpp:
(WebCore::elementIdentifiersMap):
(WebCore::Element::~Element):
(WebCore::Element::addShadowRoot):
(WebCore::Element::identifier const):
(WebCore::Element::fromIdentifier):
* Source/WebCore/dom/Node.cpp:
(WebCore::liveNodeSet):
(WebCore::Node::dumpStatistics):
(WebCore::Node::trackForDebugging):
(WebCore::Node::~Node):
* Source/WebCore/dom/ShadowRoot.cpp:
* Source/WebCore/dom/ShadowRoot.h:
* Source/WebCore/editing/TextManipulationController.cpp:
(WebCore::TextManipulationController::removeNode):
* Source/WebCore/editing/TextManipulationController.h:
* Source/WebCore/page/scrolling/ScrollAnchoringController.h:
* Source/WebCore/xml/XSLStyleSheet.h:

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




More information about the webkit-changes mailing list