Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adopt even more smart pointers in DOM code
https://bugs.webkit.org/show_bug.cgi?id=263505 Reviewed by Darin Adler. * Source/WebCore/dom/Document.cpp: (WebCore::Document::protectedWindowProxy const): (WebCore::Document::checkedSelection): (WebCore::Document::checkedSelection const): * Source/WebCore/dom/Document.h: * Source/WebCore/dom/DocumentParser.cpp: (WebCore::DocumentParser::protectedDocument const): * Source/WebCore/dom/DocumentParser.h: * Source/WebCore/dom/PendingScript.h: * Source/WebCore/dom/Range.cpp: (WebCore::Range::Range): (WebCore::Range::~Range): (WebCore::Range::protectedOwnerDocument): (WebCore::Range::updateAssociatedSelection): (WebCore::Range::updateAssociatedHighlight): (WebCore::Range::updateDocument): (WebCore::childOfCommonRootBeforeOffset): (WebCore::Range::protectedStartContainer const): (WebCore::Range::protectedEndContainer const): (WebCore::Range::processContents): (WebCore::processContentsBetweenOffsets): (WebCore::processAncestorsAndTheirSiblings): (WebCore::Range::insertNode): (WebCore::Range::toString const): (WebCore::Range::createContextualFragment): (WebCore::Range::checkNodeOffsetPair): (WebCore::Range::cloneRange const): (WebCore::Range::setStartAfter): (WebCore::Range::setEndBefore): (WebCore::Range::setEndAfter): (WebCore::Range::selectNode): (WebCore::Range::surroundContents): (WebCore::Range::setStartBefore): (WebCore::Range::updateRangeForParentlessNodeMovedToNewDocument): (WebCore::boundaryTextNodesMerged): (WebCore::boundaryTextNodesSplit): (WebCore::Range::expand): (WebCore::Range::getClientRects const): (WebCore::Range::getBoundingClientRect const): (WebCore::setBothEndpoints): (WebCore::makeSimpleRange): (WebCore::createLiveRange): * Source/WebCore/dom/Range.h: * Source/WebCore/dom/RangeBoundaryPoint.h: (WebCore::RangeBoundaryPoint::set): (WebCore::RangeBoundaryPoint::setToAfterNode): * Source/WebCore/dom/RawDataDocumentParser.h: * Source/WebCore/dom/RejectedPromiseTracker.cpp: (WebCore::RejectedPromiseTracker::reportUnhandledRejections): (WebCore::RejectedPromiseTracker::reportRejectionHandled): * Source/WebCore/dom/ScopedEventQueue.cpp: (WebCore::ScopedEventQueue::dispatchEvent const): * Source/WebCore/dom/ScriptElement.cpp: (WebCore::ScriptElement::ref const): (WebCore::ScriptElement::deref const): (WebCore::ScriptElement::ref): Deleted. (WebCore::ScriptElement::deref): Deleted. * Source/WebCore/dom/ScriptElement.h: * Source/WebCore/dom/ScriptRunner.cpp: (WebCore::ScriptRunner::~ScriptRunner): (WebCore::ScriptRunner::queueScriptForExecution): (WebCore::ScriptRunner::resume): (WebCore::ScriptRunner::notifyFinished): (WebCore::ScriptRunner::timerFired): * Source/WebCore/dom/ScriptRunner.h: * Source/WebCore/dom/ScriptableDocumentParser.cpp: (WebCore::ScriptableDocumentParser::scriptsWaitingForStylesheetsExecutionTimerFired): * Source/WebCore/dom/ScriptedAnimationController.cpp: (WebCore::ScriptedAnimationController::registerCallback): (WebCore::ScriptedAnimationController::cancelCallback): (WebCore::ScriptedAnimationController::serviceRequestAnimationFrameCallbacks): (WebCore::ScriptedAnimationController::scheduleAnimation): (WebCore::ScriptedAnimationController::protectedDocument): * Source/WebCore/dom/ScriptedAnimationController.h: * Source/WebCore/dom/SecurityContext.cpp: (WebCore::SecurityContext::inheritPolicyContainerFrom): (WebCore::SecurityContext::checkedContentSecurityPolicy): * Source/WebCore/dom/SecurityContext.h: * Source/WebCore/dom/ShadowRoot.cpp: (WebCore::ShadowRoot::insertedIntoAncestor): (WebCore::ShadowRoot::removedFromAncestor): (WebCore::ShadowRoot::moveShadowRootToNewParentScope): (WebCore::ShadowRoot::removeAllEventListeners): (WebCore::ShadowRoot::findAssignedSlot): (WebCore::ShadowRoot::assignedNodesForSlot): (WebCore::assignedShadowRootsIfSlotted): (): Deleted. * Source/WebCore/dom/ShadowRoot.h: * Source/WebCore/dom/SimpleRange.cpp: (WebCore::makeRangeSelectingNode): * Source/WebCore/dom/SimulatedClick.cpp: (WebCore::simulateMouseEvent): (WebCore::simulateClick): * Source/WebCore/dom/SlotAssignment.cpp: (WebCore::NamedSlotAssignment::addSlotElementByName): (WebCore::NamedSlotAssignment::didChangeSlot): (WebCore::NamedSlotAssignment::assignSlots): (WebCore::ManualSlotAssignment::addSlotElementByName): (WebCore::ManualSlotAssignment::slotManualAssignmentDidChange): (WebCore::ManualSlotAssignment::didRemoveManuallyAssignedNode): * Source/WebCore/dom/StaticRange.cpp: (WebCore::StaticRange::create): * Source/WebCore/dom/StringCallback.cpp: (WebCore::StringCallback::scheduleCallback): * Source/WebCore/dom/StyledElement.cpp: (WebCore::StyledElement::setInlineStyleFromString): (WebCore::StyledElement::invalidateStyleAttribute): (WebCore::StyledElement::addSubresourceAttributeURLs const): * Source/WebCore/dom/TagCollection.cpp: (WebCore::TagCollectionNS::~TagCollectionNS): (WebCore::TagCollection::~TagCollection): (WebCore::HTMLTagCollection::~HTMLTagCollection): * Source/WebCore/dom/TemplateContentDocumentFragment.h: * Source/WebCore/dom/Text.cpp: (WebCore::Text::splitText): (WebCore::Text::replaceWholeText): (WebCore::Text::virtualCreate): (WebCore::Text::updateRendererAfterContentChange): (WebCore::Text::setDataAndUpdate): * Source/WebCore/dom/TextDecoderStreamDecoder.cpp: (WebCore::TextDecoderStreamDecoder::decode): (WebCore::TextDecoderStreamDecoder::flush): (WebCore::TextDecoderStreamDecoder::protectedTextDecoder): * Source/WebCore/dom/TextDecoderStreamDecoder.h: * Source/WebCore/editing/FrameSelection.h: * Source/WebCore/page/csp/ContentSecurityPolicy.h: Canonical link: https://commits.webkit.org/269644@main
- Loading branch information