-
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 more smart pointers in editing node
https://bugs.webkit.org/show_bug.cgi?id=261572 Reviewed by Darin Adler and Brent Fulgham. * Source/WebCore/dom/DocumentMarker.h: (WebCore::DocumentMarker::DocumentMarker): * Source/WebCore/dom/DocumentMarkerController.cpp: (WebCore::DocumentMarkerController::markersFor): (WebCore::DocumentMarkerController::markersInRange): (): Deleted. * Source/WebCore/dom/DocumentMarkerController.h: * Source/WebCore/editing/AlternativeTextController.cpp: (WebCore::markersHaveIdenticalDescription): (WebCore::AlternativeTextController::respondToChangedSelection): (WebCore::AlternativeTextController::recordSpellcheckerResponseForModifiedCorrection): (WebCore::AlternativeTextController::applyDictationAlternative): * Source/WebCore/editing/ApplyStyleCommand.cpp: (WebCore::ApplyStyleCommand::applyInlineStyleChange): * Source/WebCore/editing/CompositeEditCommand.cpp: (WebCore::copyMarkers): (WebCore::CompositeEditCommand::moveParagraphs): * Source/WebCore/editing/DeleteSelectionCommand.cpp: (WebCore::DeleteSelectionCommand::initializePositionData): (WebCore::DeleteSelectionCommand::handleGeneralDelete): (WebCore::DeleteSelectionCommand::originalStringForAutocorrectionAtBeginningOfSelection): * Source/WebCore/editing/EditCommand.h: (WebCore::EditCommand::protectedDocument const): * Source/WebCore/editing/Editing.cpp: (WebCore::enclosingEmptyListItem): * Source/WebCore/editing/Editor.cpp: (WebCore::Editor::updateMarkersForWordsAffectedByEditing): (WebCore::Editor::selectionStartHasMarkerFor const): * Source/WebCore/editing/FrameSelection.cpp: (WebCore::FrameSelection::updateFromAssociatedLiveRange): * Source/WebCore/editing/IndentOutdentCommand.cpp: (WebCore::IndentOutdentCommand::tryIndentingAsListItem): (WebCore::IndentOutdentCommand::outdentParagraph): * Source/WebCore/editing/InsertListCommand.cpp: (WebCore::adjacentEnclosingList): * Source/WebCore/editing/ModifySelectionListLevel.cpp: (WebCore::getStartEndListChildren): (WebCore::canIncreaseListLevel): (WebCore::IncreaseSelectionListLevelCommand::doApply): (WebCore::IncreaseSelectionListLevelCommand::canIncreaseSelectionListLevel): (WebCore::canDecreaseListLevel): (WebCore::DecreaseSelectionListLevelCommand::doApply): (WebCore::DecreaseSelectionListLevelCommand::canDecreaseSelectionListLevel): * Source/WebCore/editing/ReplaceNodeWithSpanCommand.cpp: (WebCore::ReplaceNodeWithSpanCommand::doUnapply): * Source/WebCore/editing/ReplaceSelectionCommand.cpp: (WebCore::positionAvoidingPrecedingNodes): (WebCore::ReplaceSelectionCommand::doApply): * Source/WebCore/editing/TextIterator.cpp: (WebCore::TextIterator::TextIterator): (WebCore::TextIterator::init): (WebCore::TextIterator::advance): (WebCore::TextIterator::handleTextNode): (WebCore::TextIterator::handleTextRun): (WebCore::TextIterator::handleReplacedElement): (WebCore::TextIterator::shouldRepresentNodeOffsetZero): (WebCore::TextIterator::representNodeOffsetZero): (WebCore::TextIterator::handleNonTextNode): (WebCore::TextIterator::exitNode): (WebCore::TextIterator::protectedCurrentNode const): (WebCore::SimplifiedBackwardsTextIterator::handleReplacedElement): (WebCore::SimplifiedBackwardsTextIterator::handleNonTextNode): (WebCore::SimplifiedBackwardsTextIterator::exitNode): * Source/WebCore/editing/TextIterator.h: (WebCore::SimplifiedBackwardsTextIterator::node const): (WebCore::SimplifiedBackwardsTextIterator::protectedNode const): * Source/WebCore/editing/VisibleSelection.cpp: (WebCore::VisibleSelection::adjustSelectionRespectingGranularity): (WebCore::VisibleSelection::adjustSelectionToAvoidCrossingEditingBoundaries): * Source/WebCore/editing/cocoa/WebContentReaderCocoa.mm: (WebCore::replaceRichContentWithAttachments): * Source/WebCore/editing/markup.cpp: (WebCore::restoreAttachmentElementsInFragment): * Source/WebCore/page/ios/FrameIOS.mm: (WebCore::LocalFrame::interpretationsForCurrentRoot const): * Source/WebCore/rendering/MarkedText.cpp: (WebCore::MarkedText::collectForDocumentMarkers): * Source/WebCore/rendering/RenderReplaced.cpp: (WebCore::draggedContentContainsReplacedElement): * Source/WebCore/rendering/RenderText.cpp: (WebCore::RenderText::draggedContentRangesBetweenOffsets const): * Source/WebCore/testing/Internals.cpp: * Source/WebKit/WebProcess/WebPage/Cocoa/TextCheckingControllerProxy.mm: (WebKit::TextCheckingControllerProxy::annotatedSubstringBetweenPositions): * Source/WebKit/WebProcess/WebPage/Cocoa/WebPageCocoa.mm: (WebKit::WebPage::dictationAlternativesAtSelection): * Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm: (WebKit::WebPage::getPlatformEditorState const): * Source/WebKitLegacy/ios/WebCoreSupport/WebVisiblePosition.mm: (-[WebVisiblePosition enclosingRangeWithDictationPhraseAlternatives:]): (-[WebVisiblePosition enclosingRangeWithCorrectionIndicator]): * Source/WebKitLegacy/mac/WebView/WebFrame.mm: (-[WebFrame getDictationResultRanges:andMetadatas:]): Canonical link: https://commits.webkit.org/268054@main
- Loading branch information
Showing
59 changed files
with
593 additions
and
555 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
Oops, something went wrong.