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

Unified Diff: third_party/WebKit/Source/core/events/Event.cpp

Issue 2641953006: Remove setting cancelBubble to false. (Closed)
Patch Set: Remove deprecation message Created 3 years, 11 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/Event.cpp
diff --git a/third_party/WebKit/Source/core/events/Event.cpp b/third_party/WebKit/Source/core/events/Event.cpp
index 3c9428ad35de9d91b75fd4c960f8ae9597d4369d..3b27344d18f2bc32c0bc7bcfa66a1f8fc208276a 100644
--- a/third_party/WebKit/Source/core/events/Event.cpp
+++ b/third_party/WebKit/Source/core/events/Event.cpp
@@ -87,7 +87,6 @@ Event::Event(const AtomicString& eventType,
m_immediatePropagationStopped(false),
m_defaultPrevented(false),
m_defaultHandled(false),
- m_cancelBubble(false),
m_wasInitialized(true),
m_isTrusted(false),
m_preventDefaultCalledOnUncancelableEvent(false),
@@ -337,11 +336,8 @@ double Event::timeStamp(ScriptState* scriptState) const {
}
void Event::setCancelBubble(ExecutionContext* context, bool cancel) {
- if (!m_cancelBubble && cancel)
- UseCounter::count(context, UseCounter::EventCancelBubbleWasChangedToTrue);
- else if (m_cancelBubble && !cancel)
- UseCounter::count(context, UseCounter::EventCancelBubbleWasChangedToFalse);
- m_cancelBubble = cancel;
+ if (cancel)
+ m_propagationStopped = true;
}
DEFINE_TRACE(Event) {
« no previous file with comments | « third_party/WebKit/Source/core/events/Event.h ('k') | third_party/WebKit/Source/core/events/EventDispatcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698