Chromium Code Reviews| 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..8bd40282fe7a70298b079e1d935db4e136105d3a 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() { |
| + for (size_t i = 0; i < size(); ++i) { |
|
jbroman
2017/04/24 18:19:49
super-nit: I'd ordinarily suggest a range-based fo
dtapuska
2017/04/24 19:14:39
Done.
|
| + Node* target_node = at(i).GetNode(); |
| + if (target_node && IsDisabledFormControl(target_node)) |
| + return true; |
| + } |
| + return false; |
| +} |
| + |
| NodeEventContext& EventPath::TopNodeEventContext() { |
| DCHECK(!IsEmpty()); |
| return Last(); |