Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(914)

Unified Diff: third_party/WebKit/Source/core/html/HTMLSelectElement.cpp

Issue 2844593002: Protect against lifecycle updates that delete a layout object for autoscroll (Closed)
Patch Set: none Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/input/MouseEventManager.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d843d29162b0f2941283580ddfb6218e1a5e8c40..e1939d2810f9dbf8e66091459837246d84d0b66d 100644
--- a/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
@@ -1518,6 +1518,9 @@ void HTMLSelectElement::ListBoxDefaultEventHandler(Event* event) {
!mouse_event->ButtonDown())
return;
+ if (LayoutObject* object = GetLayoutObject())
mstensho (USE GERRIT) 2017/04/26 09:46:28 I don't know if it matters, or if it's possible at
chrishtr 2017/04/26 23:11:06 StartAutoscrollForSelection will be a no-op if lay
mstensho (USE GERRIT) 2017/04/27 20:16:11 I was more thinking of the possibility of a layout
+ object->GetFrameView()->UpdateAllLifecyclePhasesExceptPaint();
+
if (Page* page = GetDocument().GetPage())
page->GetAutoscrollController().StartAutoscrollForSelection(
GetLayoutObject());
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/input/MouseEventManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698