| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 , m_spellCheckerClient(pageClients.spellCheckerClient) | 130 , m_spellCheckerClient(pageClients.spellCheckerClient) |
| 131 , m_storageClient(pageClients.storageClient) | 131 , m_storageClient(pageClients.storageClient) |
| 132 , m_subframeCount(0) | 132 , m_subframeCount(0) |
| 133 , m_openedByDOM(false) | 133 , m_openedByDOM(false) |
| 134 , m_tabKeyCyclesThroughElements(true) | 134 , m_tabKeyCyclesThroughElements(true) |
| 135 , m_defersLoading(false) | 135 , m_defersLoading(false) |
| 136 , m_deviceScaleFactor(1) | 136 , m_deviceScaleFactor(1) |
| 137 , m_timerAlignmentInterval(DOMTimer::visiblePageAlignmentInterval()) | 137 , m_timerAlignmentInterval(DOMTimer::visiblePageAlignmentInterval()) |
| 138 , m_visibilityState(PageVisibilityStateVisible) | 138 , m_visibilityState(PageVisibilityStateVisible) |
| 139 , m_isCursorVisible(true) | 139 , m_isCursorVisible(true) |
| 140 #ifndef NDEBUG | 140 #if ENABLE(ASSERT) |
| 141 , m_isPainting(false) | 141 , m_isPainting(false) |
| 142 #endif | 142 #endif |
| 143 , m_frameHost(FrameHost::create(*this)) | 143 , m_frameHost(FrameHost::create(*this)) |
| 144 { | 144 { |
| 145 ASSERT(m_editorClient); | 145 ASSERT(m_editorClient); |
| 146 | 146 |
| 147 ASSERT(!allPages().contains(this)); | 147 ASSERT(!allPages().contains(this)); |
| 148 allPages().add(this); | 148 allPages().add(this); |
| 149 | 149 |
| 150 #ifndef NDEBUG | 150 #ifndef NDEBUG |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 if (frame->isLocalFrame() && toLocalFrame(frame)->document()) | 425 if (frame->isLocalFrame() && toLocalFrame(frame)->document()) |
| 426 toLocalFrame(frame)->document()->didChangeTimerAlignmentInterval(); | 426 toLocalFrame(frame)->document()->didChangeTimerAlignmentInterval(); |
| 427 } | 427 } |
| 428 } | 428 } |
| 429 | 429 |
| 430 double Page::timerAlignmentInterval() const | 430 double Page::timerAlignmentInterval() const |
| 431 { | 431 { |
| 432 return m_timerAlignmentInterval; | 432 return m_timerAlignmentInterval; |
| 433 } | 433 } |
| 434 | 434 |
| 435 #if ASSERT_ENABLED | 435 #if ENABLE(ASSERT) |
| 436 void Page::checkSubframeCountConsistency() const | 436 void Page::checkSubframeCountConsistency() const |
| 437 { | 437 { |
| 438 ASSERT(m_subframeCount >= 0); | 438 ASSERT(m_subframeCount >= 0); |
| 439 | 439 |
| 440 int subframeCount = 0; | 440 int subframeCount = 0; |
| 441 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext()
) | 441 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext()
) |
| 442 ++subframeCount; | 442 ++subframeCount; |
| 443 | 443 |
| 444 ASSERT(m_subframeCount + 1 == subframeCount); | 444 ASSERT(m_subframeCount + 1 == subframeCount); |
| 445 } | 445 } |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 654 , spellCheckerClient(0) | 654 , spellCheckerClient(0) |
| 655 , storageClient(0) | 655 , storageClient(0) |
| 656 { | 656 { |
| 657 } | 657 } |
| 658 | 658 |
| 659 Page::PageClients::~PageClients() | 659 Page::PageClients::~PageClients() |
| 660 { | 660 { |
| 661 } | 661 } |
| 662 | 662 |
| 663 } // namespace WebCore | 663 } // namespace WebCore |
| OLD | NEW |