Index: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
index 306cafeb0070d0079fe460c794ddffa23187b071..a0bd0e00382e0c2f5c5eb6f88f675903c210a626 100644 |
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
@@ -1220,6 +1220,11 @@ void WebLocalFrameImpl::moveCaretSelection(const WebPoint& pointInViewport) |
bool WebLocalFrameImpl::setEditableSelectionOffsets(int start, int end) |
{ |
TRACE_EVENT0("blink", "WebLocalFrameImpl::setEditableSelectionOffsets"); |
+ |
+ // TODO(xiaochengh): The use of updateStyleAndLayoutIgnorePendingStylesheets |
+ // needs to be audited. See http://crbug.com/590369 for more details. |
+ frame()->document()->updateStyleAndLayoutIgnorePendingStylesheets(); |
+ |
return frame()->inputMethodController().setEditableSelectionOffsets(PlainTextRange(start, end)); |
} |