| 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 rects = scrollingCoordinator->computeShouldHandleScrollGestureOnMainThre
adRegion(frame, IntPoint()).rects(); | 195 rects = scrollingCoordinator->computeShouldHandleScrollGestureOnMainThre
adRegion(frame, IntPoint()).rects(); |
| 196 | 196 |
| 197 Vector<FloatQuad> quads(rects.size()); | 197 Vector<FloatQuad> quads(rects.size()); |
| 198 for (size_t i = 0; i < rects.size(); ++i) | 198 for (size_t i = 0; i < rects.size(); ++i) |
| 199 quads[i] = FloatRect(rects[i]); | 199 quads[i] = FloatRect(rects[i]); |
| 200 return ClientRectList::create(quads); | 200 return ClientRectList::create(quads); |
| 201 } | 201 } |
| 202 | 202 |
| 203 void Page::setMainFrame(Frame* mainFrame) | 203 void Page::setMainFrame(Frame* mainFrame) |
| 204 { | 204 { |
| 205 ASSERT(!m_mainFrame); // Should only be called during initialization | 205 // Should only be called during initialization or swaps between local and |
| 206 // remote frames. |
| 207 // FIXME: Unfortunately we can't assert on this at the moment, because this |
| 208 // is called in the base constructor for both LocalFrame and RemoteFrame, |
| 209 // when the vtables for the derived classes have not yet been setup. |
| 206 m_mainFrame = mainFrame; | 210 m_mainFrame = mainFrame; |
| 207 } | 211 } |
| 208 | 212 |
| 209 void Page::documentDetached(Document* document) | 213 void Page::documentDetached(Document* document) |
| 210 { | 214 { |
| 211 m_multisamplingChangedObservers.clear(); | 215 m_multisamplingChangedObservers.clear(); |
| 212 m_pointerLockController->documentDetached(document); | 216 m_pointerLockController->documentDetached(document); |
| 213 m_contextMenuController->documentDetached(document); | 217 m_contextMenuController->documentDetached(document); |
| 214 if (m_validationMessageClient) | 218 if (m_validationMessageClient) |
| 215 m_validationMessageClient->documentDetached(*document); | 219 m_validationMessageClient->documentDetached(*document); |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 650 , spellCheckerClient(0) | 654 , spellCheckerClient(0) |
| 651 , storageClient(0) | 655 , storageClient(0) |
| 652 { | 656 { |
| 653 } | 657 } |
| 654 | 658 |
| 655 Page::PageClients::~PageClients() | 659 Page::PageClients::~PageClients() |
| 656 { | 660 { |
| 657 } | 661 } |
| 658 | 662 |
| 659 } // namespace WebCore | 663 } // namespace WebCore |
| OLD | NEW |