| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
| 3 * 1999 Lars Knoll <knoll@kde.org> | 3 * 1999 Lars Knoll <knoll@kde.org> |
| 4 * 1999 Antti Koivisto <koivisto@kde.org> | 4 * 1999 Antti Koivisto <koivisto@kde.org> |
| 5 * 2000 Dirk Mueller <mueller@kde.org> | 5 * 2000 Dirk Mueller <mueller@kde.org> |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
| 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 9 * Copyright (C) 2009 Google Inc. All rights reserved. | 9 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 10 * | 10 * |
| (...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 669 bool FrameView::usesCompositedScrolling() const | 669 bool FrameView::usesCompositedScrolling() const |
| 670 { | 670 { |
| 671 LayoutView* layoutView = this->layoutView(); | 671 LayoutView* layoutView = this->layoutView(); |
| 672 if (!layoutView) | 672 if (!layoutView) |
| 673 return false; | 673 return false; |
| 674 if (m_frame->settings() && m_frame->settings()->preferCompositingToLCDTextEn
abled()) | 674 if (m_frame->settings() && m_frame->settings()->preferCompositingToLCDTextEn
abled()) |
| 675 return layoutView->compositor()->inCompositingMode(); | 675 return layoutView->compositor()->inCompositingMode(); |
| 676 return false; | 676 return false; |
| 677 } | 677 } |
| 678 | 678 |
| 679 GraphicsLayer* FrameView::layerForScrollbarContainer() const |
| 680 { |
| 681 if (m_frame->isMainFrame()) |
| 682 return page()->frameHost().visualViewport().layerForScrollbarContainer()
; |
| 683 return layerForContainer(); |
| 684 } |
| 685 |
| 679 GraphicsLayer* FrameView::layerForScrolling() const | 686 GraphicsLayer* FrameView::layerForScrolling() const |
| 680 { | 687 { |
| 681 LayoutView* layoutView = this->layoutView(); | 688 LayoutView* layoutView = this->layoutView(); |
| 682 if (!layoutView) | 689 if (!layoutView) |
| 683 return nullptr; | 690 return nullptr; |
| 684 return layoutView->compositor()->frameScrollLayer(); | 691 return layoutView->compositor()->frameScrollLayer(); |
| 685 } | 692 } |
| 686 | 693 |
| 687 GraphicsLayer* FrameView::layerForHorizontalScrollbar() const | 694 GraphicsLayer* FrameView::layerForHorizontalScrollbar() const |
| 688 { | 695 { |
| (...skipping 3269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3958 | 3965 |
| 3959 if (!graphicsLayer) | 3966 if (!graphicsLayer) |
| 3960 return; | 3967 return; |
| 3961 | 3968 |
| 3962 DeprecatedPaintLayer::mapRectToPaintInvalidationBacking(localFrame->contentL
ayoutObject(), paintInvalidationContainer, viewRect); | 3969 DeprecatedPaintLayer::mapRectToPaintInvalidationBacking(localFrame->contentL
ayoutObject(), paintInvalidationContainer, viewRect); |
| 3963 | 3970 |
| 3964 graphicsLayerTimingRequests.add(graphicsLayer, Vector<std::pair<int64_t, Web
Rect>>()).storedValue->value.append(std::make_pair(m_frame->frameID(), enclosing
IntRect(viewRect))); | 3971 graphicsLayerTimingRequests.add(graphicsLayer, Vector<std::pair<int64_t, Web
Rect>>()).storedValue->value.append(std::make_pair(m_frame->frameID(), enclosing
IntRect(viewRect))); |
| 3965 } | 3972 } |
| 3966 | 3973 |
| 3967 } // namespace blink | 3974 } // namespace blink |
| OLD | NEW |