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

Unified Diff: Source/core/dom/Document.cpp

Issue 255983003: Oilpan: Move all supplements of Page, Document, and WorkerClients to the managed heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: using namespace WebCore Created 6 years, 8 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/dom/ContextFeatures.cpp ('k') | Source/core/dom/DocumentSupplementable.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 4845c046c1615d0eb68e82d89e5535b9dc29501c..8fe2b724da46ccfa4d903a89284e6d5a3b3a1a94 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -5658,13 +5658,6 @@ void Document::clearWeakMembers(Visitor* visitor)
for (unsigned i = 0; i < deadNodes.size(); ++i)
didClearTouchEventHandlers(deadNodes[i]);
}
-
- EventHandlerRegistry* registry = static_cast<EventHandlerRegistry*>(DocumentSupplement::from(this, EventHandlerRegistry::supplementName()));
- // FIXME: Oilpan: This is pretty funky. The current code disables all modifications of the
- // EventHandlerRegistry when the document becomes inactive. To keep that behavior we only
- // perform weak processing of the registry when the document is active.
- if (registry && isActive())
- registry->clearWeakMembers(visitor);
}
void Document::trace(Visitor* visitor)
@@ -5673,7 +5666,7 @@ void Document::trace(Visitor* visitor)
visitor->trace(m_mediaQueryMatcher);
visitor->trace(m_visibilityObservers);
visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this);
- Supplementable<Document>::trace(visitor);
+ DocumentSupplementable::trace(visitor);
TreeScope::trace(visitor);
ContainerNode::trace(visitor);
ExecutionContext::trace(visitor);
« no previous file with comments | « Source/core/dom/ContextFeatures.cpp ('k') | Source/core/dom/DocumentSupplementable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698