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

Side by Side Diff: Source/core/page/Page.cpp

Issue 415203003: Delay unregistering handlers when a document is detached (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R ights Reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R ights Reserved.
3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 12 matching lines...) Expand all
23 #include "core/dom/ClientRectList.h" 23 #include "core/dom/ClientRectList.h"
24 #include "core/dom/DocumentMarkerController.h" 24 #include "core/dom/DocumentMarkerController.h"
25 #include "core/dom/StyleEngine.h" 25 #include "core/dom/StyleEngine.h"
26 #include "core/dom/VisitedLinkState.h" 26 #include "core/dom/VisitedLinkState.h"
27 #include "core/editing/Caret.h" 27 #include "core/editing/Caret.h"
28 #include "core/editing/UndoStack.h" 28 #include "core/editing/UndoStack.h"
29 #include "core/events/Event.h" 29 #include "core/events/Event.h"
30 #include "core/fetch/ResourceFetcher.h" 30 #include "core/fetch/ResourceFetcher.h"
31 #include "core/frame/DOMTimer.h" 31 #include "core/frame/DOMTimer.h"
32 #include "core/frame/LocalDOMWindow.h" 32 #include "core/frame/LocalDOMWindow.h"
33 #include "core/frame/EventHandlerRegistry.h"
34 #include "core/frame/FrameHost.h" 33 #include "core/frame/FrameHost.h"
35 #include "core/frame/FrameView.h" 34 #include "core/frame/FrameView.h"
36 #include "core/frame/LocalFrame.h" 35 #include "core/frame/LocalFrame.h"
37 #include "core/frame/RemoteFrame.h" 36 #include "core/frame/RemoteFrame.h"
38 #include "core/frame/RemoteFrameView.h" 37 #include "core/frame/RemoteFrameView.h"
39 #include "core/frame/Settings.h" 38 #include "core/frame/Settings.h"
40 #include "core/inspector/InspectorController.h" 39 #include "core/inspector/InspectorController.h"
41 #include "core/inspector/InspectorInstrumentation.h" 40 #include "core/inspector/InspectorInstrumentation.h"
42 #include "core/loader/FrameLoader.h" 41 #include "core/loader/FrameLoader.h"
43 #include "core/loader/HistoryItem.h" 42 #include "core/loader/HistoryItem.h"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 m_mainFrame = mainFrame; 209 m_mainFrame = mainFrame;
211 } 210 }
212 211
213 void Page::documentDetached(Document* document) 212 void Page::documentDetached(Document* document)
214 { 213 {
215 m_multisamplingChangedObservers.clear(); 214 m_multisamplingChangedObservers.clear();
216 m_pointerLockController->documentDetached(document); 215 m_pointerLockController->documentDetached(document);
217 m_contextMenuController->documentDetached(document); 216 m_contextMenuController->documentDetached(document);
218 if (m_validationMessageClient) 217 if (m_validationMessageClient)
219 m_validationMessageClient->documentDetached(*document); 218 m_validationMessageClient->documentDetached(*document);
220 m_frameHost->eventHandlerRegistry().documentDetached(*document);
221 } 219 }
222 220
223 bool Page::openedByDOM() const 221 bool Page::openedByDOM() const
224 { 222 {
225 return m_openedByDOM; 223 return m_openedByDOM;
226 } 224 }
227 225
228 void Page::setOpenedByDOM() 226 void Page::setOpenedByDOM()
229 { 227 {
230 m_openedByDOM = true; 228 m_openedByDOM = true;
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 , spellCheckerClient(0) 654 , spellCheckerClient(0)
657 , storageClient(0) 655 , storageClient(0)
658 { 656 {
659 } 657 }
660 658
661 Page::PageClients::~PageClients() 659 Page::PageClients::~PageClients()
662 { 660 {
663 } 661 }
664 662
665 } // namespace blink 663 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698