| Index: third_party/WebKit/Source/web/WebRange.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebRange.cpp b/third_party/WebKit/Source/web/WebRange.cpp
|
| index 261bbe9ce87fc0f5ea719419cc10851cbe824867..49cd2fa9642bf65d64d1b5b2eafa76b480a1d787 100644
|
| --- a/third_party/WebKit/Source/web/WebRange.cpp
|
| +++ b/third_party/WebKit/Source/web/WebRange.cpp
|
| @@ -79,6 +79,11 @@ WebRange WebRange::fromDocumentRange(WebLocalFrame* frame, int start, int length
|
| LocalFrame* webFrame = toWebLocalFrameImpl(frame)->frame();
|
| Element* selectionRoot = webFrame->selection().rootEditableElement();
|
| ContainerNode* scope = selectionRoot ? selectionRoot : webFrame->document()->documentElement();
|
| +
|
| + // TODO(dglazkov): The use of updateStyleAndLayoutIgnorePendingStylesheets needs to be audited.
|
| + // see http://crbug.com/590369 for more details.
|
| + scope->document().updateStyleAndLayoutIgnorePendingStylesheets();
|
| +
|
| return createRange(PlainTextRange(start, start + length).createRange(*scope));
|
| }
|
|
|
|
|