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

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

Issue 2832073003: Send mouse events for disabled form controls. (Closed)
Patch Set: Fix nits 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
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 7e64174696809ed278f35d08894a66d02bb80d36..d843d29162b0f2941283580ddfb6218e1a5e8c40 100644
--- a/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
@@ -1495,7 +1495,7 @@ void HTMLSelectElement::ListBoxDefaultEventHandler(Event* event) {
// Convert to coords relative to the list box if needed.
MouseEvent* mouse_event = ToMouseEvent(event);
if (HTMLOptionElement* option = EventTargetOption(*mouse_event)) {
- if (!IsDisabledFormControl()) {
+ if (!option->IsDisabledFormControl()) {
#if OS(MACOSX)
UpdateSelectedState(option, mouse_event->metaKey(),
mouse_event->shiftKey());
« no previous file with comments | « third_party/WebKit/Source/core/events/MouseEvent.cpp ('k') | third_party/WebKit/Source/platform/RuntimeEnabledFeatures.json5 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698