Index: third_party/WebKit/Source/core/html/HTMLInputElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp |
index 67968fb22965e14a21e29ec7968b98e5023a2808..0aedaadc46028aa87d0a3b3a241c8d494e32d4ba 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp |
@@ -341,8 +341,13 @@ void HTMLInputElement::updateFocusAppearance(SelectionBehaviorOnFocus selectionB |
// case of RangeSelection. crbug.com/443061. |
if (layoutObject()) |
layoutObject()->scrollRectToVisible(boundingBox()); |
- 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(); |
+ } |
} else { |
HTMLTextFormControlElement::updateFocusAppearance(selectionBehavior); |
} |