Index: third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp b/third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp |
index a53fc9794597c93112a3f7034487cd05d9cf4a6f..0dff370fb725f2ce6402f88c05b23ef7d11e6025 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp |
@@ -254,8 +254,13 @@ void HTMLTextAreaElement::updateFocusAppearance(SelectionBehaviorOnFocus selecti |
case SelectionBehaviorOnFocus::None: |
return; |
} |
- if (document().frame()) |
+ if (document().frame()) { |
+ // TODO(xiaochengh): The use of updateStyleAndLayoutIgnorePendingStylesheets |
+ // needs to be audited. See http://crbug.com/590369 for more details. |
+ document().updateStyleAndLayoutIgnorePendingStylesheets(); |
+ |
document().frame()->selection().revealSelection(); |
+ } |
} |
void HTMLTextAreaElement::defaultEventHandler(Event* event) |