| OLD | NEW |
| 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 14 matching lines...) Expand all Loading... |
| 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/events/ThreadLocalEventNames.h" | 30 #include "core/events/ThreadLocalEventNames.h" |
| 31 #include "core/fetch/ResourceFetcher.h" | 31 #include "core/fetch/ResourceFetcher.h" |
| 32 #include "core/frame/DOMTimer.h" | 32 #include "core/frame/DOMTimer.h" |
| 33 #include "core/frame/DOMWindow.h" | 33 #include "core/frame/DOMWindow.h" |
| 34 #include "core/frame/Frame.h" | 34 #include "core/frame/Frame.h" |
| 35 #include "core/frame/FrameHost.h" |
| 35 #include "core/frame/FrameView.h" | 36 #include "core/frame/FrameView.h" |
| 36 #include "core/history/HistoryItem.h" | 37 #include "core/history/HistoryItem.h" |
| 37 #include "core/inspector/InspectorController.h" | 38 #include "core/inspector/InspectorController.h" |
| 38 #include "core/inspector/InspectorInstrumentation.h" | 39 #include "core/inspector/InspectorInstrumentation.h" |
| 39 #include "core/loader/FrameLoader.h" | 40 #include "core/loader/FrameLoader.h" |
| 40 #include "core/loader/ProgressTracker.h" | 41 #include "core/loader/ProgressTracker.h" |
| 41 #include "core/page/AutoscrollController.h" | 42 #include "core/page/AutoscrollController.h" |
| 42 #include "core/page/Chrome.h" | 43 #include "core/page/Chrome.h" |
| 43 #include "core/page/ChromeClient.h" | 44 #include "core/page/ChromeClient.h" |
| 44 #include "core/page/ContextMenuController.h" | 45 #include "core/page/ContextMenuController.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 , m_pageScaleFactor(1) | 124 , m_pageScaleFactor(1) |
| 124 , m_deviceScaleFactor(1) | 125 , m_deviceScaleFactor(1) |
| 125 , m_group(0) | 126 , m_group(0) |
| 126 , m_timerAlignmentInterval(DOMTimer::visiblePageAlignmentInterval()) | 127 , m_timerAlignmentInterval(DOMTimer::visiblePageAlignmentInterval()) |
| 127 , m_visibilityState(PageVisibilityStateVisible) | 128 , m_visibilityState(PageVisibilityStateVisible) |
| 128 , m_isCursorVisible(true) | 129 , m_isCursorVisible(true) |
| 129 #ifndef NDEBUG | 130 #ifndef NDEBUG |
| 130 , m_isPainting(false) | 131 , m_isPainting(false) |
| 131 #endif | 132 #endif |
| 132 , m_console(PageConsole::create(this)) | 133 , m_console(PageConsole::create(this)) |
| 134 , m_frameHost(FrameHost::create(*this)) |
| 133 { | 135 { |
| 134 ASSERT(m_editorClient); | 136 ASSERT(m_editorClient); |
| 135 | 137 |
| 136 if (!allPages) | 138 if (!allPages) |
| 137 allPages = new HashSet<Page*>; | 139 allPages = new HashSet<Page*>; |
| 138 | 140 |
| 139 ASSERT(!allPages->contains(this)); | 141 ASSERT(!allPages->contains(this)); |
| 140 allPages->add(this); | 142 allPages->add(this); |
| 141 | 143 |
| 142 #ifndef NDEBUG | 144 #ifndef NDEBUG |
| 143 pageCounter.increment(); | 145 pageCounter.increment(); |
| 144 #endif | 146 #endif |
| 145 } | 147 } |
| 146 | 148 |
| 147 Page::~Page() | 149 Page::~Page() |
| 148 { | 150 { |
| 149 m_mainFrame->setView(0); | 151 m_mainFrame->setView(0); |
| 150 clearPageGroup(); | 152 clearPageGroup(); |
| 151 allPages->remove(this); | 153 allPages->remove(this); |
| 152 | 154 |
| 153 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext()
) { | 155 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext()
) { |
| 154 frame->willDetachPage(); | 156 frame->willDetachFrameHost(); |
| 155 frame->detachFromPage(); | 157 frame->detachFromFrameHost(); |
| 156 } | 158 } |
| 157 | 159 |
| 158 m_inspectorController->inspectedPageDestroyed(); | 160 m_inspectorController->inspectedPageDestroyed(); |
| 159 | 161 |
| 160 if (m_scrollingCoordinator) | 162 if (m_scrollingCoordinator) |
| 161 m_scrollingCoordinator->pageDestroyed(); | 163 m_scrollingCoordinator->pageDestroyed(); |
| 162 | 164 |
| 163 #ifndef NDEBUG | 165 #ifndef NDEBUG |
| 164 pageCounter.decrement(); | 166 pageCounter.decrement(); |
| 165 #endif | 167 #endif |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 , backForwardClient(0) | 553 , backForwardClient(0) |
| 552 , spellCheckerClient(0) | 554 , spellCheckerClient(0) |
| 553 { | 555 { |
| 554 } | 556 } |
| 555 | 557 |
| 556 Page::PageClients::~PageClients() | 558 Page::PageClients::~PageClients() |
| 557 { | 559 { |
| 558 } | 560 } |
| 559 | 561 |
| 560 } // namespace WebCore | 562 } // namespace WebCore |
| OLD | NEW |