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

Unified Diff: third_party/WebKit/Source/core/dom/Node.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/dom/Node.cpp
diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
index 8d534cad86a1cda348f842cd000b2ef448cb470b..d70c2af2f4ebba72d4c0640b9872514d14655194 100644
--- a/third_party/WebKit/Source/core/dom/Node.cpp
+++ b/third_party/WebKit/Source/core/dom/Node.cpp
@@ -2099,7 +2099,8 @@ void Node::HandleLocalEvents(Event& event) {
if (!HasEventTargetData())
return;
- if (IsDisabledFormControl(this) && event.IsMouseEvent()) {
+ if (IsDisabledFormControl(this) && event.IsMouseEvent() &&
+ !RuntimeEnabledFeatures::sendMouseEventsDisabledFormControlsEnabled()) {
UseCounter::Count(GetDocument(),
UseCounter::kDispatchMouseEventOnDisabledFormControl);
return;

Powered by Google App Engine
This is Rietveld 408576698