| Index: third_party/WebKit/Source/core/editing/VisibleUnits.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/VisibleUnits.cpp b/third_party/WebKit/Source/core/editing/VisibleUnits.cpp
|
| index 7e2fa2ab4574295da3dcfb4581c3e71d33ac20bf..d1a09bf8e121ff27ee436be9dfe43d09826ae7d9 100644
|
| --- a/third_party/WebKit/Source/core/editing/VisibleUnits.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/VisibleUnits.cpp
|
| @@ -1241,10 +1241,7 @@ bool inSameLineAlgorithm(const PositionWithAffinityTemplate<Strategy>& position1
|
| if (position1.isNull() || position2.isNull())
|
| return false;
|
| DCHECK_EQ(position1.position().document(), position2.position().document());
|
| -
|
| - // TODO(xiaochengh): The use of updateStyleAndLayoutIgnorePendingStylesheets
|
| - // needs to be audited. See http://crbug.com/590369 for more details.
|
| - position1.position().document()->updateStyleAndLayoutIgnorePendingStylesheets();
|
| + DCHECK(!position1.position().document()->needsLayoutTreeUpdate());
|
|
|
| PositionWithAffinityTemplate<Strategy> startOfLine1 = startOfLine(position1);
|
| PositionWithAffinityTemplate<Strategy> startOfLine2 = startOfLine(position2);
|
|
|