| 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 749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 760 { | 760 { |
| 761 RenderView* root = rootRenderer(this); | 761 RenderView* root = rootRenderer(this); |
| 762 if (!root) | 762 if (!root) |
| 763 return; | 763 return; |
| 764 | 764 |
| 765 RenderLayerCompositor* compositor = root->compositor(); | 765 RenderLayerCompositor* compositor = root->compositor(); |
| 766 compositor->enableCompositingMode(true); | 766 compositor->enableCompositingMode(true); |
| 767 compositor->updateCompositingLayers(CompositingUpdateAfterLayout); | 767 compositor->updateCompositingLayers(CompositingUpdateAfterLayout); |
| 768 } | 768 } |
| 769 | 769 |
| 770 bool FrameView::usesCompositedScrolling() const |
| 771 { |
| 772 if (m_frame->settings() && m_frame->settings()->compositedScrollingForFrames
Enabled()) { |
| 773 RenderView* root = rootRenderer(this); |
| 774 return root && root->compositor()->inForcedCompositingMode(); |
| 775 } |
| 776 return false; |
| 777 } |
| 778 |
| 770 GraphicsLayer* FrameView::layerForHorizontalScrollbar() const | 779 GraphicsLayer* FrameView::layerForHorizontalScrollbar() const |
| 771 { | 780 { |
| 772 RenderView* root = rootRenderer(this); | 781 RenderView* root = rootRenderer(this); |
| 773 if (!root) | 782 if (!root) |
| 774 return 0; | 783 return 0; |
| 775 return root->compositor()->layerForHorizontalScrollbar(); | 784 return root->compositor()->layerForHorizontalScrollbar(); |
| 776 } | 785 } |
| 777 | 786 |
| 778 GraphicsLayer* FrameView::layerForVerticalScrollbar() const | 787 GraphicsLayer* FrameView::layerForVerticalScrollbar() const |
| 779 { | 788 { |
| (...skipping 3020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3800 { | 3809 { |
| 3801 #if USE(ACCELERATED_COMPOSITING) | 3810 #if USE(ACCELERATED_COMPOSITING) |
| 3802 if (TiledBacking* tiledBacking = this->tiledBacking()) | 3811 if (TiledBacking* tiledBacking = this->tiledBacking()) |
| 3803 tiledBacking->setScrollingPerformanceLoggingEnabled(flag); | 3812 tiledBacking->setScrollingPerformanceLoggingEnabled(flag); |
| 3804 #else | 3813 #else |
| 3805 UNUSED_PARAM(flag); | 3814 UNUSED_PARAM(flag); |
| 3806 #endif | 3815 #endif |
| 3807 } | 3816 } |
| 3808 | 3817 |
| 3809 } // namespace WebCore | 3818 } // namespace WebCore |
| OLD | NEW |