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

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

Issue 237963014: Track scroll event handlers in nested documents (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Expanded test to move child doc from attached doc to unattached one (reverse not possible AFAICT). 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
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)

Powered by Google App Engine
This is Rietveld 408576698