Commit 1dcc86ee authored by Jeremy Roman's avatar Jeremy Roman Committed by Commit Bot

Make EventListenerMap::ContainsCapturing after a failed search of the listener vector.

There can never be two separate map entries with different event names, so
continuing to search is pointless.

Change-Id: I4a91e17b99bfa723b965349e564613ab64bfc69a
Reviewed-on: https://chromium-review.googlesource.com/581428Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Jeremy Roman <jbroman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#488739}
parent 4f349075
......@@ -72,6 +72,7 @@ bool EventListenerMap::ContainsCapturing(const AtomicString& event_type) const {
if (event_listener.Capture())
return true;
}
return false;
}
}
return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment