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 7caedcc30d6a54fe8c5779c905a6395e15eb6253..df10703544a33e2ce1d019202d94a22f391e0976 100644 |
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
@@ -1199,6 +1199,11 @@ WebString WebLocalFrameImpl::rangeAsText(const WebRange& webRange) |
void WebLocalFrameImpl::moveRangeSelectionExtent(const WebPoint& point) |
{ |
TRACE_EVENT0("blink", "WebLocalFrameImpl::moveRangeSelectionExtent"); |
+ |
+ // TODO(xiaochengh): The use of updateStyleAndLayoutIgnorePendingStylesheets |
+ // needs to be audited. See http://crbug.com/590369 for more details. |
+ frame()->document()->updateStyleAndLayoutIgnorePendingStylesheets(); |
+ |
frame()->selection().moveRangeSelectionExtent(frame()->view()->viewportToContents(point)); |
} |