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 253830d2f5df062bb647f0fa894825b1b86b4ac4..21d0a7b64ca3aca9f9ee5bd041aeebd7fa2deae1 100644 |
--- a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp |
+++ b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp |
@@ -1504,7 +1504,7 @@ void CompositeEditCommand::MoveParagraphs( |
GetDocument().UpdateStyleAndLayoutIgnorePendingStylesheets(); |
destination_index = TextIterator::RangeLength( |
- Position::FirstPositionInNode(GetDocument().documentElement()), |
+ Position::FirstPositionInNode(*GetDocument().documentElement()), |
destination.ToParentAnchoredPosition(), |
TextIteratorBehavior::AllVisiblePositionsRangeLengthBehavior()); |
@@ -1678,7 +1678,7 @@ bool CompositeEditCommand::BreakOutOfEmptyListItem( |
return false; |
SetEndingSelection(SelectionInDOMTree::Builder() |
- .Collapse(Position::FirstPositionInNode(new_block)) |
+ .Collapse(Position::FirstPositionInNode(*new_block)) |
.SetIsDirectional(EndingSelection().IsDirectional()) |
.Build()); |