| 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 bb77ee83656705c66d6993fcf8617f0ec3811272..3a0316e13f2b17747ccb16faf7b9bb6f06fe2eac 100644
|
| --- a/third_party/WebKit/Source/core/editing/SurroundingText.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/SurroundingText.cpp
|
| @@ -63,6 +63,7 @@ void SurroundingText::initialize(const Position& startPosition, const Position&
|
| // The position will have no document if it is null (as in no position).
|
| if (!document || !document->documentElement())
|
| return;
|
| + DCHECK(!document->needsLayoutTreeUpdate());
|
|
|
| // The forward range starts at the selection end and ends at the document's
|
| // end. It will then be updated to only contain the text in the text in the
|
|
|