OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010 Apple Inc. All Rights 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 Page::~Page() | 208 Page::~Page() |
209 { | 209 { |
210 m_mainFrame->setView(0); | 210 m_mainFrame->setView(0); |
211 setGroupName(String()); | 211 setGroupName(String()); |
212 allPages->remove(this); | 212 allPages->remove(this); |
213 | 213 |
214 for (Frame* frame = mainFrame(); frame; frame = frame->tree()->traverseNext(
)) | 214 for (Frame* frame = mainFrame(); frame; frame = frame->tree()->traverseNext(
)) |
215 frame->pageDestroyed(); | 215 frame->pageDestroyed(); |
216 | 216 |
217 m_editorClient->pageDestroyed(); | 217 m_editorClient->pageDestroyed(); |
| 218 if (m_pluginData) |
| 219 m_pluginData->disconnectPage(); |
| 220 |
218 #if ENABLE(INSPECTOR) | 221 #if ENABLE(INSPECTOR) |
219 m_inspectorController->inspectedPageDestroyed(); | 222 m_inspectorController->inspectedPageDestroyed(); |
220 #endif | 223 #endif |
221 | 224 |
222 backForwardList()->close(); | 225 backForwardList()->close(); |
223 | 226 |
224 #ifndef NDEBUG | 227 #ifndef NDEBUG |
225 pageCounter.decrement(); | 228 pageCounter.decrement(); |
226 | 229 |
227 // Cancel keepAlive timers, to ensure we release all Frames before exiting. | 230 // Cancel keepAlive timers, to ensure we release all Frames before exiting. |
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
843 ASSERT(m_frameCount >= 0); | 846 ASSERT(m_frameCount >= 0); |
844 | 847 |
845 int frameCount = 0; | 848 int frameCount = 0; |
846 for (Frame* frame = mainFrame(); frame; frame = frame->tree()->traverseNext(
)) | 849 for (Frame* frame = mainFrame(); frame; frame = frame->tree()->traverseNext(
)) |
847 ++frameCount; | 850 ++frameCount; |
848 | 851 |
849 ASSERT(m_frameCount + 1 == frameCount); | 852 ASSERT(m_frameCount + 1 == frameCount); |
850 } | 853 } |
851 #endif | 854 #endif |
852 } // namespace WebCore | 855 } // namespace WebCore |
OLD | NEW |