Index: third_party/WebKit/Source/core/editing/SurroundingText.cpp |
diff --git a/third_party/WebKit/Source/core/editing/SurroundingText.cpp b/third_party/WebKit/Source/core/editing/SurroundingText.cpp |
index 7e9926dd7e6693f3bf58d8d0f66d208bcc7ee036..a4db50ce882c9ef697ab2b754c5edf6f876b7f16 100644 |
--- a/third_party/WebKit/Source/core/editing/SurroundingText.cpp |
+++ b/third_party/WebKit/Source/core/editing/SurroundingText.cpp |
@@ -74,7 +74,7 @@ void SurroundingText::Initialize(const Position& start_position, |
CharacterIterator forward_iterator( |
end_position, |
- Position::LastPositionInNode(root_element).ParentAnchoredEquivalent(), |
+ Position::LastPositionInNode(*root_element).ParentAnchoredEquivalent(), |
TextIteratorBehavior::Builder().SetStopsOnFormControls(true).Build()); |
// FIXME: why do we stop going trough the text if we were not able to select |
// something on the right? |