Index: third_party/WebKit/Source/core/editing/DOMSelection.cpp |
diff --git a/third_party/WebKit/Source/core/editing/DOMSelection.cpp b/third_party/WebKit/Source/core/editing/DOMSelection.cpp |
index 07702b4d928d495df4253bb303f5b2e652da7bc2..dc2cf138088c947afc6df4dec7a1e7e13628381e 100644 |
--- a/third_party/WebKit/Source/core/editing/DOMSelection.cpp |
+++ b/third_party/WebKit/Source/core/editing/DOMSelection.cpp |
@@ -442,6 +442,10 @@ void DOMSelection::modify(const String& alter_string, |
else |
return; |
+ // TODO(editing-dev): The use of updateStyleAndLayoutIgnorePendingStylesheets |
+ // needs to be audited. See http://crbug.com/590369 for more details. |
+ GetFrame()->GetDocument()->UpdateStyleAndLayoutIgnorePendingStylesheets(); |
+ |
Element* focused_element = GetFrame()->GetDocument()->FocusedElement(); |
GetFrame()->Selection().Modify(alter, direction, granularity); |
if (GetFrame() && GetFrame()->GetDocument() && |