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

Unified Diff: Source/core/rendering/RenderListBox.cpp

Issue 120373005: OnChange event should fire if the multiple selection changes in listbox using mouse (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: removed unnecessary blank lines in layout test Created 7 years 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
Index: Source/core/rendering/RenderListBox.cpp
diff --git a/Source/core/rendering/RenderListBox.cpp b/Source/core/rendering/RenderListBox.cpp
old mode 100644
new mode 100755
index 602b716ea95665724b86224f52d8f6c4d22d95e8..996c3c24c6254dcfa4ba5a039c22dbc9a84f59f7
--- a/Source/core/rendering/RenderListBox.cpp
+++ b/Source/core/rendering/RenderListBox.cpp
@@ -591,7 +591,10 @@ void RenderListBox::stopAutoscroll()
if (selectElement()->isDisabledFormControl())
return;
- selectElement()->listBoxOnChange();
+ if (!selectElement()->isOnChangeFired() && !selectElement()->isLastOnChangeSelectionEmpty()) {
+ selectElement()->listBoxOnChange();
+ selectElement()->setOnChangeFired(true);
+ }
}
bool RenderListBox::scrollToRevealElementAtListIndex(int index)
« Source/core/html/HTMLSelectElement.cpp ('K') | « Source/core/page/AutoscrollController.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698