| Index: third_party/WebKit/Source/core/editing/EditingStyle.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/EditingStyle.cpp b/third_party/WebKit/Source/core/editing/EditingStyle.cpp
|
| index 2de2356513eb0261bce04b3b930249ffd414ae68..37c6177d142e6b33411b727cccb8dfc9a7f6e54c 100644
|
| --- a/third_party/WebKit/Source/core/editing/EditingStyle.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/EditingStyle.cpp
|
| @@ -1335,6 +1335,14 @@ EditingStyle* EditingStyle::styleAtSelectionStart(const VisibleSelection& select
|
| if (selection.isNone())
|
| return nullptr;
|
|
|
| + Document& document = *selection.start().document();
|
| +
|
| + // TODO(xiaochengh): The use of updateStyleAndLayoutIgnorePendingStylesheets
|
| + // needs to be audited. see http://crbug.com/590369 for more details.
|
| + document.updateStyleAndLayoutIgnorePendingStylesheets();
|
| +
|
| + DocumentLifecycle::DisallowTransitionScope disallowTransition(document.lifecycle());
|
| +
|
| Position position = adjustedSelectionStartForStyleComputation(selection);
|
|
|
| // If the pos is at the end of a text node, then this node is not fully selected.
|
|
|