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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
633 ASSERT(renderView); | 633 ASSERT(renderView); |
634 if (!renderView->needsOverflowRecalcAfterStyleChange()) | 634 if (!renderView->needsOverflowRecalcAfterStyleChange()) |
635 return; | 635 return; |
636 | 636 |
637 renderView->recalcOverflowAfterStyleChange(); | 637 renderView->recalcOverflowAfterStyleChange(); |
638 | 638 |
639 // FIXME: We should adjust frame scrollbar here, but that will make many | 639 // FIXME: We should adjust frame scrollbar here, but that will make many |
640 // tests flake in debug build. | 640 // tests flake in debug build. |
641 } | 641 } |
642 | 642 |
643 void FrameView::updateCompositingLayersAfterStyleChange() | |
ojan
2014/06/06 18:35:20
I considered removing this method and was on the f
| |
644 { | |
645 RenderView* renderView = this->renderView(); | |
646 if (!renderView) | |
647 return; | |
648 renderView->compositor()->setNeedsCompositingUpdate(CompositingUpdateAfterSt yleChange); | |
649 } | |
650 | |
651 bool FrameView::usesCompositedScrolling() const | 643 bool FrameView::usesCompositedScrolling() const |
652 { | 644 { |
653 RenderView* renderView = this->renderView(); | 645 RenderView* renderView = this->renderView(); |
654 if (!renderView) | 646 if (!renderView) |
655 return false; | 647 return false; |
656 if (m_frame->settings() && m_frame->settings()->compositedScrollingForFrames Enabled()) | 648 if (m_frame->settings() && m_frame->settings()->compositedScrollingForFrames Enabled()) |
657 return renderView->compositor()->inCompositingMode(); | 649 return renderView->compositor()->inCompositingMode(); |
658 return false; | 650 return false; |
659 } | 651 } |
660 | 652 |
(...skipping 2612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3273 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o rientation) | 3265 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o rientation) |
3274 { | 3266 { |
3275 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); | 3267 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); |
3276 if (AXObjectCache* cache = axObjectCache()) { | 3268 if (AXObjectCache* cache = axObjectCache()) { |
3277 cache->remove(scrollbar); | 3269 cache->remove(scrollbar); |
3278 cache->handleScrollbarUpdate(this); | 3270 cache->handleScrollbarUpdate(this); |
3279 } | 3271 } |
3280 } | 3272 } |
3281 | 3273 |
3282 } // namespace WebCore | 3274 } // namespace WebCore |
OLD | NEW |