Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index 56203732bc1f5132cde33a1d48691e506bdb9391..98ed10f128d4e4aba43edc28529941234e88ff67 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -71,7 +71,6 @@ |
#include "core/dom/Element.h" |
#include "core/dom/ElementDataCache.h" |
#include "core/dom/ElementTraversal.h" |
-#include "core/dom/EventHandlerRegistry.h" |
#include "core/dom/ExceptionCode.h" |
#include "core/dom/ExecutionContextTask.h" |
#include "core/dom/MainThreadTaskRunner.h" |
@@ -5644,13 +5643,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) |