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

Unified Diff: third_party/WebKit/Source/core/events/EventPath.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/events/EventPath.cpp
diff --git a/third_party/WebKit/Source/core/events/EventPath.cpp b/third_party/WebKit/Source/core/events/EventPath.cpp
index ee57ba46b68ebb858cc5b297526e46009a83d31c..4f60a867f1a102c1d9953a7a8e1b084ebf3728c7 100644
--- a/third_party/WebKit/Source/core/events/EventPath.cpp
+++ b/third_party/WebKit/Source/core/events/EventPath.cpp
@@ -376,6 +376,15 @@ void EventPath::AdjustTouchList(
}
}
+bool EventPath::DisabledFormControlExistsInPath() const {
+ for (const auto& context : node_event_contexts_) {
+ const Node* target_node = context.GetNode();
+ if (target_node && IsDisabledFormControl(target_node))
+ return true;
+ }
+ return false;
+}
+
NodeEventContext& EventPath::TopNodeEventContext() {
DCHECK(!IsEmpty());
return Last();
« no previous file with comments | « third_party/WebKit/Source/core/events/EventPath.h ('k') | third_party/WebKit/Source/core/events/MouseEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698