| Index: sky/engine/core/events/Event.cpp
|
| diff --git a/sky/engine/core/events/Event.cpp b/sky/engine/core/events/Event.cpp
|
| index bf45abf3dabd8a6b6ee7dd4ea291845d3b56ac29..740f147e9d37e3e13b86a99622a11dd6c0d5e2a9 100644
|
| --- a/sky/engine/core/events/Event.cpp
|
| +++ b/sky/engine/core/events/Event.cpp
|
| @@ -27,7 +27,6 @@
|
| #include "gen/sky/core/EventInterfaces.h"
|
| #include "sky/engine/core/dom/StaticNodeList.h"
|
| #include "sky/engine/core/events/EventTarget.h"
|
| -#include "sky/engine/core/frame/UseCounter.h"
|
| #include "sky/engine/wtf/CurrentTime.h"
|
|
|
| namespace blink {
|
| @@ -96,20 +95,11 @@ void Event::initEvent(const AtomicString& eventTypeArg, bool canBubbleArg, bool
|
|
|
| bool Event::legacyReturnValue(ExecutionContext* executionContext) const
|
| {
|
| - bool returnValue = !defaultPrevented();
|
| - if (returnValue)
|
| - UseCounter::count(executionContext, UseCounter::EventGetReturnValueTrue);
|
| - else
|
| - UseCounter::count(executionContext, UseCounter::EventGetReturnValueFalse);
|
| - return returnValue;
|
| + return !defaultPrevented();
|
| }
|
|
|
| void Event::setLegacyReturnValue(ExecutionContext* executionContext, bool returnValue)
|
| {
|
| - if (returnValue)
|
| - UseCounter::count(executionContext, UseCounter::EventSetReturnValueTrue);
|
| - else
|
| - UseCounter::count(executionContext, UseCounter::EventSetReturnValueFalse);
|
| setDefaultPrevented(!returnValue);
|
| }
|
|
|
|
|