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 re
mote frames. |
| 206 ASSERT(!m_mainFrame || m_mainFrame->isLocalFrame() != mainFrame->isLocalFram
e()); |
206 m_mainFrame = mainFrame; | 207 m_mainFrame = mainFrame; |
207 } | 208 } |
208 | 209 |
209 void Page::documentDetached(Document* document) | 210 void Page::documentDetached(Document* document) |
210 { | 211 { |
211 m_multisamplingChangedObservers.clear(); | 212 m_multisamplingChangedObservers.clear(); |
212 m_pointerLockController->documentDetached(document); | 213 m_pointerLockController->documentDetached(document); |
213 m_contextMenuController->documentDetached(document); | 214 m_contextMenuController->documentDetached(document); |
214 if (m_validationMessageClient) | 215 if (m_validationMessageClient) |
215 m_validationMessageClient->documentDetached(*document); | 216 m_validationMessageClient->documentDetached(*document); |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
650 , spellCheckerClient(0) | 651 , spellCheckerClient(0) |
651 , storageClient(0) | 652 , storageClient(0) |
652 { | 653 { |
653 } | 654 } |
654 | 655 |
655 Page::PageClients::~PageClients() | 656 Page::PageClients::~PageClients() |
656 { | 657 { |
657 } | 658 } |
658 | 659 |
659 } // namespace WebCore | 660 } // namespace WebCore |
OLD | NEW |