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

Unified Diff: Source/core/dom/ActiveDOMObject.h

Issue 401603003: Remove ActiveDOMObject::{,un}setPendingActivity (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 6 years, 5 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 | « Source/core/css/FontFaceSet.cpp ('k') | Source/core/dom/ActiveDOMObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ActiveDOMObject.h
diff --git a/Source/core/dom/ActiveDOMObject.h b/Source/core/dom/ActiveDOMObject.h
index 082788b0c6e8194ddc42711dda8ba4fe3c8fa017..cfa4eb532e2f6e24154678926662742ac5250e2e 100644
--- a/Source/core/dom/ActiveDOMObject.h
+++ b/Source/core/dom/ActiveDOMObject.h
@@ -45,9 +45,6 @@ public:
// Should return true if there's any pending asynchronous activity, and so
// this object must not be garbage collected.
- //
- // Default implementation is that it returns true iff
- // m_pendingActivityCount is non-zero.
virtual bool hasPendingActivity() const;
// These methods have an empty default implementation so that subclasses
@@ -61,22 +58,7 @@ public:
protected:
virtual ~ActiveDOMObject();
- template<class T> void setPendingActivity(T* thisObject)
- {
- ASSERT(thisObject == this);
- thisObject->ref();
- m_pendingActivityCount++;
- }
-
- template<class T> void unsetPendingActivity(T* thisObject)
- {
- ASSERT(m_pendingActivityCount > 0);
- --m_pendingActivityCount;
- thisObject->deref();
- }
-
private:
- unsigned m_pendingActivityCount;
#if ENABLE(ASSERT)
bool m_suspendIfNeededCalled;
#endif
« no previous file with comments | « Source/core/css/FontFaceSet.cpp ('k') | Source/core/dom/ActiveDOMObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698