Index: third_party/WebKit/Source/core/html/HTMLSelectElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp b/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp |
index 98fe955d7a2703989571b53eb8f0b86402a1d3dd..9830da4f64792410d883ba2eec74fb7ea779f764 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp |
@@ -1518,9 +1518,13 @@ void HTMLSelectElement::ListBoxDefaultEventHandler(Event* event) { |
!mouse_event->ButtonDown()) |
return; |
- if (Page* page = GetDocument().GetPage()) |
+ if (LayoutObject* object = GetLayoutObject()) |
+ object->GetFrameView()->UpdateAllLifecyclePhasesExceptPaint(); |
+ |
+ if (Page* page = GetDocument().GetPage()) { |
page->GetAutoscrollController().StartAutoscrollForSelection( |
GetLayoutObject()); |
+ } |
// Mousedown didn't happen in this element. |
if (last_on_change_selection_.IsEmpty()) |
return; |