[webkit-changes] [WebKit/WebKit] 02f9dd: Adopt more smart pointers in DOM code

Chris Dumez noreply at github.com
Fri Oct 27 17:56:19 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 02f9dd1869da489a1d8ccc25e7e9b8a86aadef58
      https://github.com/WebKit/WebKit/commit/02f9dd1869da489a1d8ccc25e7e9b8a86aadef58
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2023-10-27 (Fri, 27 Oct 2023)

  Changed paths:
    M Source/WebCore/dom/ChildNodeList.h
    M Source/WebCore/dom/LiveNodeList.h
    M Source/WebCore/dom/NameNodeList.cpp
    M Source/WebCore/dom/NativeNodeFilter.cpp
    M Source/WebCore/dom/NodeIterator.cpp
    M Source/WebCore/dom/NodeRareData.h
    M Source/WebCore/dom/PendingScript.cpp
    M Source/WebCore/dom/PendingScript.h
    M Source/WebCore/dom/PendingScriptClient.h
    M Source/WebCore/dom/Position.cpp
    M Source/WebCore/dom/ScriptRunner.h
    M Source/WebCore/dom/SelectorQuery.cpp
    M Source/WebCore/dom/ShadowRoot.cpp
    M Source/WebCore/dom/ShadowRoot.h

  Log Message:
  -----------
  Adopt more smart pointers in DOM code
https://bugs.webkit.org/show_bug.cgi?id=263787

Reviewed by Ryosuke Niwa.

* Source/WebCore/dom/ChildNodeList.h:
* Source/WebCore/dom/LiveNodeList.h:
(WebCore::LiveNodeList::protectedOwnerNode const):
* Source/WebCore/dom/NameNodeList.cpp:
(WebCore::NameNodeList::~NameNodeList):
* Source/WebCore/dom/NativeNodeFilter.cpp:
(WebCore::NativeNodeFilter::acceptNode):
* Source/WebCore/dom/NodeIterator.cpp:
(WebCore::NodeIterator::NodePointer::moveToNext):
(WebCore::NodeIterator::NodePointer::moveToPrevious):
(WebCore::NodeIterator::NodeIterator):
(WebCore::NodeIterator::nextNode):
(WebCore::NodeIterator::previousNode):
(WebCore::NodeIterator::updateForNodeRemoval const):
* Source/WebCore/dom/NodeRareData.h:
(WebCore::NodeListsNodeData::ensureChildNodeList):
(WebCore::NodeListsNodeData::ensureEmptyChildNodeList):
(WebCore::NodeListsNodeData::addCacheWithAtomName):
(WebCore::NodeListsNodeData::addCachedTagCollectionNS):
(WebCore::NodeListsNodeData::addCachedCollection):
(WebCore::NodeListsNodeData::removeCacheWithAtomName):
(WebCore::NodeListsNodeData::removeCachedTagCollectionNS):
* Source/WebCore/dom/PendingScript.cpp:
(WebCore::PendingScript::~PendingScript):
* Source/WebCore/dom/PendingScript.h:
* Source/WebCore/dom/PendingScriptClient.h:
* Source/WebCore/dom/Position.cpp:
(WebCore::nextRenderedEditable):
(WebCore::previousRenderedEditable):
(WebCore::Position::offsetForPositionAfterAnchor const):
(WebCore::Position::parentAnchoredEquivalent const):
* Source/WebCore/dom/ScriptRunner.h:
* Source/WebCore/dom/SelectorQuery.cpp:
(WebCore::SelectorDataList::matches const):
* Source/WebCore/dom/ShadowRoot.cpp:
(WebCore::ShadowRoot::~ShadowRoot):
(WebCore::ShadowRoot::insertedIntoAncestor):
(WebCore::ShadowRoot::checkedStyleScope const):
* Source/WebCore/dom/ShadowRoot.h:

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




More information about the webkit-changes mailing list