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

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

Issue 2532373002: (CANCELED) Ensure before/after is within the editable in moveParagraphWithClones (Closed)
Patch Set: Rebaseline Created 4 years, 1 month 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/CompositeEditCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
index ebbb4448045ba7e261463ccc4d95b5974397afbc..602aaeb898cc2d06729abd6edb0da83cab412543 100644
--- a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
@@ -1417,8 +1417,10 @@ void CompositeEditCommand::moveParagraphWithClones(
DCHECK(outerNode);
DCHECK(blockElement);
- VisiblePosition beforeParagraph = previousPositionOf(startOfParagraphToMove);
- VisiblePosition afterParagraph = nextPositionOf(endOfParagraphToMove);
+ VisiblePosition beforeParagraph =
+ previousPositionOf(startOfParagraphToMove, CannotCrossEditingBoundary);
+ VisiblePosition afterParagraph =
+ nextPositionOf(endOfParagraphToMove, CannotCrossEditingBoundary);
// We upstream() the end and downstream() the start so that we don't include
// collapsed whitespace in the move. When we paste a fragment, spaces after

Powered by Google App Engine
This is Rietveld 408576698