| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 } | 135 } |
| 136 | 136 |
| 137 ScrollingCoordinator* Page::scrollingCoordinator() | 137 ScrollingCoordinator* Page::scrollingCoordinator() |
| 138 { | 138 { |
| 139 if (!m_scrollingCoordinator) | 139 if (!m_scrollingCoordinator) |
| 140 m_scrollingCoordinator = ScrollingCoordinator::create(this); | 140 m_scrollingCoordinator = ScrollingCoordinator::create(this); |
| 141 | 141 |
| 142 return m_scrollingCoordinator.get(); | 142 return m_scrollingCoordinator.get(); |
| 143 } | 143 } |
| 144 | 144 |
| 145 String Page::mainThreadScrollingReasonsAsText() | |
| 146 { | |
| 147 if (ScrollingCoordinator* scrollingCoordinator = this->scrollingCoordinator(
)) | |
| 148 return scrollingCoordinator->mainThreadScrollingReasonsAsText(); | |
| 149 | |
| 150 return String(); | |
| 151 } | |
| 152 | |
| 153 PassRefPtr<ClientRectList> Page::nonFastScrollableRects(const LocalFrame* frame) | 145 PassRefPtr<ClientRectList> Page::nonFastScrollableRects(const LocalFrame* frame) |
| 154 { | 146 { |
| 155 if (mainFrame()->document()) | 147 if (mainFrame()->document()) |
| 156 mainFrame()->document()->updateLayout(); | 148 mainFrame()->document()->updateLayout(); |
| 157 | 149 |
| 158 Vector<IntRect> rects; | 150 Vector<IntRect> rects; |
| 159 if (ScrollingCoordinator* scrollingCoordinator = this->scrollingCoordinator(
)) | 151 if (ScrollingCoordinator* scrollingCoordinator = this->scrollingCoordinator(
)) |
| 160 rects = scrollingCoordinator->computeShouldHandleScrollGestureOnMainThre
adRegion(frame, IntPoint()).rects(); | 152 rects = scrollingCoordinator->computeShouldHandleScrollGestureOnMainThre
adRegion(frame, IntPoint()).rects(); |
| 161 | 153 |
| 162 Vector<FloatQuad> quads(rects.size()); | 154 Vector<FloatQuad> quads(rects.size()); |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 , editorClient(0) | 378 , editorClient(0) |
| 387 , spellCheckerClient(0) | 379 , spellCheckerClient(0) |
| 388 { | 380 { |
| 389 } | 381 } |
| 390 | 382 |
| 391 Page::PageClients::~PageClients() | 383 Page::PageClients::~PageClients() |
| 392 { | 384 { |
| 393 } | 385 } |
| 394 | 386 |
| 395 } // namespace blink | 387 } // namespace blink |
| OLD | NEW |