[webkit-changes] [WebKit/WebKit] 573543: Use CheckedPtr<Node> less for non-stack objects
Chris Dumez
noreply at github.com
Thu Dec 14 15:45:49 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 5735433340880c963594a5cb10f20f6af5623889
https://github.com/WebKit/WebKit/commit/5735433340880c963594a5cb10f20f6af5623889
Author: Chris Dumez <cdumez at apple.com>
Date: 2023-12-14 (Thu, 14 Dec 2023)
Changed paths:
M Source/WebCore/accessibility/AccessibilityNodeObject.h
M Source/WebCore/css/CSSStyleSheet.h
M Source/WebCore/dom/ContainerNode.cpp
M Source/WebCore/dom/MutationObserverRegistration.h
M Source/WebCore/dom/Node.cpp
M Source/WebCore/dom/TemplateContentDocumentFragment.h
M Source/WebCore/html/parser/HTMLConstructionSite.h
M Source/WebCore/html/parser/HTMLDocumentParserFastPath.cpp
M Source/WebCore/xml/XSLStyleSheet.h
M Source/WebKit/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp
Log Message:
-----------
Use CheckedPtr<Node> less for non-stack objects
https://bugs.webkit.org/show_bug.cgi?id=266416
Reviewed by Brent Fulgham.
Use CheckedPtr<Node> less for non-stack objects. Use WeakPtr<Node> instead in
order to generate more actionable crashes. This tested as performance neutral
on Speedometer 2 & 3.
* Source/WebCore/accessibility/AccessibilityNodeObject.h:
* Source/WebCore/css/CSSStyleSheet.h:
* Source/WebCore/dom/MutationObserverRegistration.h:
* Source/WebCore/dom/Node.cpp:
(WebCore::liveNodeSet):
(WebCore::Node::dumpStatistics):
(WebCore::Node::trackForDebugging):
(WebCore::Node::~Node):
* Source/WebCore/dom/TemplateContentDocumentFragment.h:
* Source/WebCore/html/parser/HTMLConstructionSite.h:
* Source/WebCore/html/parser/HTMLDocumentParserFastPath.cpp:
* Source/WebCore/xml/XSLStyleSheet.h:
* Source/WebKit/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
(WebKit::InjectedBundleNodeHandle::getOrCreate):
(WebKit::InjectedBundleNodeHandle::~InjectedBundleNodeHandle):
(WebKit::InjectedBundleNodeHandle::stop):
Canonical link: https://commits.webkit.org/272079@main
More information about the webkit-changes
mailing list