Chromium Code Reviews| 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 2814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2825 | 2825 |
| 2826 void FrameView::updateLayoutAndStyleForPainting() | 2826 void FrameView::updateLayoutAndStyleForPainting() |
| 2827 { | 2827 { |
| 2828 // Updating layout can run script, which can tear down the FrameView. | 2828 // Updating layout can run script, which can tear down the FrameView. |
| 2829 RefPtr<FrameView> protector(this); | 2829 RefPtr<FrameView> protector(this); |
| 2830 | 2830 |
| 2831 updateLayoutAndStyleIfNeededRecursive(); | 2831 updateLayoutAndStyleIfNeededRecursive(); |
| 2832 | 2832 |
| 2833 if (RenderView* view = renderView()) { | 2833 if (RenderView* view = renderView()) { |
| 2834 InspectorInstrumentation::willUpdateLayerTree(view->frame()); | 2834 InspectorInstrumentation::willUpdateLayerTree(view->frame()); |
| 2835 | |
| 2835 view->compositor()->updateIfNeededRecursive(); | 2836 view->compositor()->updateIfNeededRecursive(); |
| 2837 | |
| 2838 // FIXME: Is it really possible to be inCompositingMode and not have a S crollingCoordinator? | |
|
ojan
2014/06/12 03:49:57
I tried removing the inCompositingMode check once
| |
| 2839 // FIXME: Is it really possible to have a RenderView and not have a Page ? | |
|
ojan
2014/06/12 03:49:57
I don't think so. This code is littered with impos
ojan
2014/06/12 03:49:57
I don't think so. This code is littered with impos
| |
| 2840 if (view->compositor()->inCompositingMode() && m_frame->isMainFrame() && m_frame->page() && m_frame->page()->scrollingCoordinator()) | |
| 2841 m_frame->page()->scrollingCoordinator()->updateAfterCompositingChang eIfNeeded(); | |
| 2842 | |
| 2836 InspectorInstrumentation::didUpdateLayerTree(view->frame()); | 2843 InspectorInstrumentation::didUpdateLayerTree(view->frame()); |
| 2837 } | 2844 } |
| 2838 | 2845 |
| 2839 scrollContentsIfNeededRecursive(); | 2846 scrollContentsIfNeededRecursive(); |
| 2840 } | 2847 } |
| 2841 | 2848 |
| 2842 void FrameView::updateLayoutAndStyleIfNeededRecursive() | 2849 void FrameView::updateLayoutAndStyleIfNeededRecursive() |
| 2843 { | 2850 { |
| 2844 // We have to crawl our entire tree looking for any FrameViews that need | 2851 // We have to crawl our entire tree looking for any FrameViews that need |
| 2845 // layout and make sure they are up to date. | 2852 // layout and make sure they are up to date. |
| (...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3273 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o rientation) | 3280 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o rientation) |
| 3274 { | 3281 { |
| 3275 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); | 3282 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); |
| 3276 if (AXObjectCache* cache = axObjectCache()) { | 3283 if (AXObjectCache* cache = axObjectCache()) { |
| 3277 cache->remove(scrollbar); | 3284 cache->remove(scrollbar); |
| 3278 cache->handleScrollbarUpdate(this); | 3285 cache->handleScrollbarUpdate(this); |
| 3279 } | 3286 } |
| 3280 } | 3287 } |
| 3281 | 3288 |
| 3282 } // namespace WebCore | 3289 } // namespace WebCore |
| OLD | NEW |