-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use CheckedPtr<Element> / CheckedRef<Element> less for non-stack vari…
…ables https://bugs.webkit.org/show_bug.cgi?id=266286 Reviewed by Ryosuke Niwa. Use CheckedPtr<Element> / CheckedRef<Element> less for non-stack variables since it introduces crashes that are not actionable. Use WeakRef<Element> / WeakPtr<Element> instead. This tested as performance neutral on Speedometer 2 & 3. * Source/WebCore/dom/Attr.h: * Source/WebCore/dom/DatasetDOMStringMap.h: * Source/WebCore/dom/Document.cpp: (WebCore::findNearestCommonComposedAncestor): (WebCore::Document::registerArticleElement): (WebCore::Document::unregisterArticleElement): (WebCore::Document::updateMainArticleElementAfterLayout): * Source/WebCore/dom/Document.h: * Source/WebCore/dom/Element.cpp: (WebCore::Element::addShadowRoot): * Source/WebCore/dom/NamedNodeMap.h: * Source/WebCore/dom/RadioButtonGroups.cpp: * Source/WebCore/dom/ScriptElement.h: * Source/WebCore/dom/ShadowRoot.cpp: * Source/WebCore/dom/ShadowRoot.h: * Source/WebCore/dom/SimulatedClick.cpp: (WebCore::simulateClick): * Source/WebCore/html/HTMLCollection.h: * Source/WebCore/html/HTMLCollectionInlines.h: (WebCore::CollectionNamedElementCache::findElementsWithId const): (WebCore::CollectionNamedElementCache::findElementsWithName const): (WebCore::CollectionNamedElementCache::find const): (WebCore::CollectionNamedElementCache::append): Canonical link: https://commits.webkit.org/271949@main
- Loading branch information
Showing
13 changed files
with
28 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters