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

Unified Diff: third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.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/ApplyBlockElementCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.cpp b/third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.cpp
index d30fc4ae35b18151cfb990e35a450c778ca90609..eb76b9898a3349727c647a127620d83f97bcce2d 100644
--- a/third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.cpp
@@ -59,8 +59,8 @@ void ApplyBlockElementCommand::doApply(EditingState* editingState)
if (!endingSelection().rootEditableElement())
return;
- VisiblePosition visibleEnd = endingSelection().visibleEnd();
- VisiblePosition visibleStart = endingSelection().visibleStart();
+ VisiblePosition visibleEnd = endingSelection().visibleEndDeprecated();
+ VisiblePosition visibleStart = endingSelection().visibleStartDeprecated();
if (visibleStart.isNull() || visibleStart.isOrphan() || visibleEnd.isNull() || visibleEnd.isOrphan())
return;
@@ -80,8 +80,8 @@ void ApplyBlockElementCommand::doApply(EditingState* editingState)
}
VisibleSelection selection = selectionForParagraphIteration(endingSelection());
- VisiblePosition startOfSelection = selection.visibleStart();
- VisiblePosition endOfSelection = selection.visibleEnd();
+ VisiblePosition startOfSelection = selection.visibleStartDeprecated();
+ VisiblePosition endOfSelection = selection.visibleEndDeprecated();
DCHECK(!startOfSelection.isNull());
DCHECK(!endOfSelection.isNull());
ContainerNode* startScope = nullptr;

Powered by Google App Engine
This is Rietveld 408576698