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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScheduledAction.cpp

Issue 2568103002: Revert of Eagerly dispose of ScheduledActions. (Closed)
Patch Set: Created 4 years 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/bindings/core/v8/ScheduledAction.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScheduledAction.cpp b/third_party/WebKit/Source/bindings/core/v8/ScheduledAction.cpp
index f0c1db8d9b36888368e3114af066449d64f0a572..403c3d14ba72dfbed30bcb54ea92f4982612322a 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScheduledAction.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScheduledAction.cpp
@@ -61,17 +61,7 @@
visitor->trace(m_code);
}
-ScheduledAction::~ScheduledAction() {
- // Verify that owning DOMTimer has eagerly disposed.
- DCHECK(m_info.IsEmpty());
-}
-
-void ScheduledAction::dispose() {
- m_code.dispose();
- m_info.Clear();
- m_function.clear();
- m_scriptState.clear();
-}
+ScheduledAction::~ScheduledAction() {}
void ScheduledAction::execute(ExecutionContext* context) {
if (context->isDocument()) {

Powered by Google App Engine
This is Rietveld 408576698