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

Unified Diff: Source/core/page/Page.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/page/Page.cpp
diff --git a/Source/core/page/Page.cpp b/Source/core/page/Page.cpp
index 74e12311efe2152b6991c95eed9f73b2545f7ad6..16f0096ef32cd0e00a9faa13f5c3c7e8ede422fe 100644
--- a/Source/core/page/Page.cpp
+++ b/Source/core/page/Page.cpp
@@ -43,6 +43,7 @@
#include "core/page/ChromeClient.h"
#include "core/page/ContextMenuController.h"
#include "core/page/DragController.h"
+#include "core/page/EventHandlerRegistry.h"
#include "core/page/FocusController.h"
#include "core/page/FrameTree.h"
#include "core/page/PageLifecycleNotifier.h"
@@ -205,6 +206,7 @@ void Page::documentDetached(Document* document)
m_contextMenuController->documentDetached(document);
if (m_validationMessageClient)
m_validationMessageClient->documentDetached(*document);
+ EventHandlerRegistry::from(*this)->documentDetached(*document);
}
bool Page::openedByDOM() const
@@ -552,6 +554,7 @@ void Page::clearWeakMembers(Visitor* visitor)
if (input)
input->clearWeakMembers(visitor);
#endif
+ EventHandlerRegistry::from(*this)->clearWeakMembers(visitor);
}
void Page::willBeDestroyed()

Powered by Google App Engine
This is Rietveld 408576698