| 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 ec0d6f143d51b5a5de5894404f039c80434430c8..8fd928df5ad6e8f2ca913e81170c2f11b6a55d16 100644
|
| --- a/third_party/WebKit/Source/core/events/Event.cpp
|
| +++ b/third_party/WebKit/Source/core/events/Event.cpp
|
| @@ -358,6 +358,15 @@ double Event::timeStamp(ScriptState* scriptState) const
|
| return timeStamp;
|
| }
|
|
|
| +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;
|
| +}
|
| +
|
| DEFINE_TRACE(Event)
|
| {
|
| visitor->trace(m_currentTarget);
|
|
|