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 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 | 613 |
614 adjustViewSize(); | 614 adjustViewSize(); |
615 updateScrollbarGeometry(); | 615 updateScrollbarGeometry(); |
616 } | 616 } |
617 | 617 |
618 bool FrameView::usesCompositedScrolling() const | 618 bool FrameView::usesCompositedScrolling() const |
619 { | 619 { |
620 RenderView* renderView = this->renderView(); | 620 RenderView* renderView = this->renderView(); |
621 if (!renderView) | 621 if (!renderView) |
622 return false; | 622 return false; |
623 if (m_frame->settings() && m_frame->settings()->compositedScrollingForFrames
Enabled()) | 623 if (m_frame->settings() && m_frame->settings()->preferCompositingToLCDTextEn
abled()) |
624 return renderView->compositor()->inCompositingMode(); | 624 return renderView->compositor()->inCompositingMode(); |
625 return false; | 625 return false; |
626 } | 626 } |
627 | 627 |
628 GraphicsLayer* FrameView::layerForScrolling() const | 628 GraphicsLayer* FrameView::layerForScrolling() const |
629 { | 629 { |
630 RenderView* renderView = this->renderView(); | 630 RenderView* renderView = this->renderView(); |
631 if (!renderView) | 631 if (!renderView) |
632 return 0; | 632 return 0; |
633 return renderView->compositor()->scrollLayer(); | 633 return renderView->compositor()->scrollLayer(); |
(...skipping 2495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3129 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o
rientation) | 3129 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o
rientation) |
3130 { | 3130 { |
3131 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); | 3131 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); |
3132 if (AXObjectCache* cache = axObjectCache()) { | 3132 if (AXObjectCache* cache = axObjectCache()) { |
3133 cache->remove(scrollbar); | 3133 cache->remove(scrollbar); |
3134 cache->handleScrollbarUpdate(this); | 3134 cache->handleScrollbarUpdate(this); |
3135 } | 3135 } |
3136 } | 3136 } |
3137 | 3137 |
3138 } // namespace blink | 3138 } // namespace blink |
OLD | NEW |