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

Unified Diff: sky/engine/core/events/Event.cpp

Issue 867903002: Remove UseCounter (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « sky/engine/core/editing/htmlediting.cpp ('k') | sky/engine/core/events/EventTarget.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « sky/engine/core/editing/htmlediting.cpp ('k') | sky/engine/core/events/EventTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698