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 b958b89089ed270a78e7d1c8bc5464aa4ad8c40b..16743c4b7ae288cc271dac1cec1fb9409e179ba5 100644 |
--- a/third_party/WebKit/Source/core/events/EventPath.cpp |
+++ b/third_party/WebKit/Source/core/events/EventPath.cpp |
@@ -54,15 +54,7 @@ static inline bool shouldStopAtShadowRoot(Event& event, ShadowRoot& shadowRoot, |
// See https://bugs.webkit.org/show_bug.cgi?id=52195 for details. |
const AtomicString eventType = event.type(); |
return target.toNode() && target.toNode()->shadowHost() == shadowRoot.host() |
- && (eventType == EventTypeNames::abort |
- || eventType == EventTypeNames::change |
- || eventType == EventTypeNames::error |
- || eventType == EventTypeNames::load |
- || eventType == EventTypeNames::reset |
- || eventType == EventTypeNames::resize |
- || eventType == EventTypeNames::scroll |
- || eventType == EventTypeNames::select |
- || eventType == EventTypeNames::selectstart); |
+ && event.scoped(); |
} |
EventPath::EventPath(Node& node, Event* event) |