| Index: third_party/WebKit/Source/core/editing/VisibleSelection.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/VisibleSelection.cpp b/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
|
| index e37a347e87db9bbc0c736e345b96ef097cd96830..ec7f7da35795bc7a17af6222ee77d0cf97a05295 100644
|
| --- a/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
|
| @@ -97,7 +97,7 @@ VisibleSelection createVisibleSelectionDeprecated(
|
| const PositionWithAffinity& pos,
|
| bool isDirectional) {
|
| if (pos.isNotNull())
|
| - pos.position().document()->updateStyleAndLayoutIgnorePendingStylesheets();
|
| + pos.document()->updateStyleAndLayoutIgnorePendingStylesheets();
|
| return VisibleSelection::create(pos.position(), pos.position(),
|
| pos.affinity(), isDirectional);
|
| }
|
| @@ -165,7 +165,7 @@ VisibleSelectionInFlatTree createVisibleSelectionDeprecated(
|
| const PositionInFlatTreeWithAffinity& pos,
|
| bool isDirectional) {
|
| if (pos.isNotNull())
|
| - pos.position().document()->updateStyleAndLayoutIgnorePendingStylesheets();
|
| + pos.document()->updateStyleAndLayoutIgnorePendingStylesheets();
|
| return VisibleSelectionInFlatTree::create(pos.position(), pos.position(),
|
| pos.affinity(), isDirectional);
|
| }
|
|
|