Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(521)

Unified Diff: third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.h

Issue 1695153002: Editing: Make the |EditingState*| argument of CompositeEditCommand::removeNode mandatory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ; Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.h
diff --git a/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.h b/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.h
index 4a36cb3e9d297177873277edd346f503fca0c632..09d151d23039d57957a0074c0e7e9a2c53d7cff2 100644
--- a/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.h
+++ b/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.h
@@ -94,8 +94,8 @@ private:
void removeUnrenderedTextNodesAtEnds(InsertedNodes&);
void removeRedundantStylesAndKeepStyleSpanInline(InsertedNodes&);
- void makeInsertedContentRoundTrippableWithHTMLTreeBuilder(const InsertedNodes&);
- void moveElementOutOfAncestor(PassRefPtrWillBeRawPtr<Element>, PassRefPtrWillBeRawPtr<Element> ancestor);
+ void makeInsertedContentRoundTrippableWithHTMLTreeBuilder(const InsertedNodes&, EditingState*);
+ void moveElementOutOfAncestor(PassRefPtrWillBeRawPtr<Element>, PassRefPtrWillBeRawPtr<Element> ancestor, EditingState*);
void handleStyleSpans(InsertedNodes&);
VisiblePosition positionAtStartOfInsertedContent() const;
@@ -103,10 +103,10 @@ private:
bool shouldPerformSmartReplace() const;
void addSpacesForSmartReplace();
- void completeHTMLReplacement(const Position& lastPositionToSelect);
- void mergeTextNodesAroundPosition(Position&, Position& positionOnlyToBeUpdated);
+ void completeHTMLReplacement(const Position& lastPositionToSelect, EditingState*);
+ void mergeTextNodesAroundPosition(Position&, Position& positionOnlyToBeUpdated, EditingState*);
- bool performTrivialReplace(const ReplacementFragment&);
+ bool performTrivialReplace(const ReplacementFragment&, EditingState*);
Position m_startOfInsertedContent;
Position m_endOfInsertedContent;

Powered by Google App Engine
This is Rietveld 408576698