Index: Source/core/html/HTMLSelectElement.cpp |
diff --git a/Source/core/html/HTMLSelectElement.cpp b/Source/core/html/HTMLSelectElement.cpp |
index 79e9e5b4c35c37f3d16cdb33ff6a440392f345b0..2a353bb472d393b91cb46404208258329310b9c8 100644 |
--- a/Source/core/html/HTMLSelectElement.cpp |
+++ b/Source/core/html/HTMLSelectElement.cpp |
@@ -177,6 +177,18 @@ bool HTMLSelectElement::valueMissing() const |
return firstSelectionIndex < 0 || (!firstSelectionIndex && hasPlaceholderLabelOption()); |
} |
+void HTMLSelectElement::listBoxSelectItem(int listIndex, bool allowMultiplySelections, bool shift, bool fireOnChangeNow) |
+{ |
+ if (!multiple()) |
+ optionSelectedByUser(listToOptionIndex(listIndex), fireOnChangeNow, false); |
+ else { |
+ updateSelectedState(listIndex, allowMultiplySelections, shift); |
+ setNeedsValidityCheck(); |
+ if (fireOnChangeNow) |
+ listBoxOnChange(); |
+ } |
+} |
+ |
bool HTMLSelectElement::usesMenuList() const |
{ |
if (RenderTheme::theme().delegatesMenuListRendering()) |