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

Unified Diff: third_party/WebKit/Source/core/editing/commands/InsertTextCommand.cpp

Issue 2370253002: Mark calls of visible{Start,End} with dirty layout deprecated (Closed)
Patch Set: Created 4 years, 3 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/InsertTextCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/InsertTextCommand.cpp b/third_party/WebKit/Source/core/editing/commands/InsertTextCommand.cpp
index 46e2b6caab627cbb2048593c5f44e9ae7aae9307..e1e94fb875ac252d8a78f430efcaa3edda024005 100644
--- a/third_party/WebKit/Source/core/editing/commands/InsertTextCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/InsertTextCommand.cpp
@@ -101,7 +101,7 @@ bool InsertTextCommand::performTrivialReplace(const String& text, bool selectIns
setEndingSelectionWithoutValidation(start, endPosition);
if (!selectInsertedText)
- setEndingSelection(VisibleSelection(endingSelection().visibleEnd(), endingSelection().isDirectional()));
+ setEndingSelection(VisibleSelection(endingSelection().visibleEndDeprecated(), endingSelection().isDirectional()));
return true;
}
@@ -124,7 +124,7 @@ bool InsertTextCommand::performOverwrite(const String& text, bool selectInserted
Position endPosition = Position(textNode, start.offsetInContainerNode() + text.length());
setEndingSelectionWithoutValidation(start, endPosition);
if (!selectInsertedText)
- setEndingSelection(VisibleSelection(endingSelection().visibleEnd(), endingSelection().isDirectional()));
+ setEndingSelection(VisibleSelection(endingSelection().visibleEndDeprecated(), endingSelection().isDirectional()));
return true;
}
@@ -141,7 +141,7 @@ void InsertTextCommand::doApply(EditingState* editingState)
if (endingSelection().isRange()) {
if (performTrivialReplace(m_text, m_selectInsertedText))
return;
- bool endOfSelectionWasAtStartOfBlock = isStartOfBlock(endingSelection().visibleEnd());
+ bool endOfSelectionWasAtStartOfBlock = isStartOfBlock(endingSelection().visibleEndDeprecated());
deleteSelection(editingState, false, true, false, false);
if (editingState->isAborted())
return;

Powered by Google App Engine
This is Rietveld 408576698