Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All |
| 3 * Rights Reserved. | 3 * Rights Reserved. |
| 4 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. | 4 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. |
| 5 * (http://www.torchmobile.com/) | 5 * (http://www.torchmobile.com/) |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 173 } | 173 } |
| 174 | 174 |
| 175 ClientRectList* Page::nonFastScrollableRects(const LocalFrame* frame) { | 175 ClientRectList* Page::nonFastScrollableRects(const LocalFrame* frame) { |
| 176 if (ScrollingCoordinator* scrollingCoordinator = | 176 if (ScrollingCoordinator* scrollingCoordinator = |
| 177 this->scrollingCoordinator()) { | 177 this->scrollingCoordinator()) { |
| 178 // Hits in compositing/iframes/iframe-composited-scrolling.html | 178 // Hits in compositing/iframes/iframe-composited-scrolling.html |
| 179 DisableCompositingQueryAsserts disabler; | 179 DisableCompositingQueryAsserts disabler; |
| 180 scrollingCoordinator->updateAfterCompositingChangeIfNeeded(); | 180 scrollingCoordinator->updateAfterCompositingChangeIfNeeded(); |
| 181 } | 181 } |
| 182 | 182 |
| 183 if (!frame->view()->layerForScrolling()) | 183 return frame->view() |
| 184 return ClientRectList::create(); | 184 ->layoutViewportScrollableArea() |
| 185 | 185 ->nonFastScrollableRects(); |
|
skobes
2017/01/27 20:14:18
Could this just read layoutViewportScrollableArea(
szager1
2017/01/27 22:32:49
layerForScrolling()
layer()->compositedLayerMappi
| |
| 186 // Now retain non-fast scrollable regions | |
| 187 return ClientRectList::create(frame->view() | |
| 188 ->layerForScrolling() | |
| 189 ->platformLayer() | |
| 190 ->nonFastScrollableRegion()); | |
| 191 } | 186 } |
| 192 | 187 |
| 193 void Page::setMainFrame(Frame* mainFrame) { | 188 void Page::setMainFrame(Frame* mainFrame) { |
| 194 // Should only be called during initialization or swaps between local and | 189 // Should only be called during initialization or swaps between local and |
| 195 // remote frames. | 190 // remote frames. |
| 196 // FIXME: Unfortunately we can't assert on this at the moment, because this | 191 // FIXME: Unfortunately we can't assert on this at the moment, because this |
| 197 // is called in the base constructor for both LocalFrame and RemoteFrame, | 192 // is called in the base constructor for both LocalFrame and RemoteFrame, |
| 198 // when the vtables for the derived classes have not yet been setup. | 193 // when the vtables for the derived classes have not yet been setup. |
| 199 m_mainFrame = mainFrame; | 194 m_mainFrame = mainFrame; |
| 200 } | 195 } |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 543 : chromeClient(nullptr), | 538 : chromeClient(nullptr), |
| 544 contextMenuClient(nullptr), | 539 contextMenuClient(nullptr), |
| 545 editorClient(nullptr), | 540 editorClient(nullptr), |
| 546 spellCheckerClient(nullptr) {} | 541 spellCheckerClient(nullptr) {} |
| 547 | 542 |
| 548 Page::PageClients::~PageClients() {} | 543 Page::PageClients::~PageClients() {} |
| 549 | 544 |
| 550 template class CORE_TEMPLATE_EXPORT Supplement<Page>; | 545 template class CORE_TEMPLATE_EXPORT Supplement<Page>; |
| 551 | 546 |
| 552 } // namespace blink | 547 } // namespace blink |
| OLD | NEW |