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 2661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2672 LayoutViewItem view = layoutViewItem(); | 2672 LayoutViewItem view = layoutViewItem(); |
| 2673 ASSERT(!view.isNull()); | 2673 ASSERT(!view.isNull()); |
| 2674 forAllNonThrottledFrameViews([](FrameView& frameView) { frameView.lifecycle( ).advanceTo(DocumentLifecycle::InPaint); }); | 2674 forAllNonThrottledFrameViews([](FrameView& frameView) { frameView.lifecycle( ).advanceTo(DocumentLifecycle::InPaint); }); |
| 2675 | 2675 |
| 2676 // A null graphics layer can occur for painting of SVG images that are not p arented into the main frame tree, | 2676 // A null graphics layer can occur for painting of SVG images that are not p arented into the main frame tree, |
| 2677 // or when the FrameView is the main frame view of a page overlay. The page overlay is in the layer tree of | 2677 // or when the FrameView is the main frame view of a page overlay. The page overlay is in the layer tree of |
| 2678 // the host page and will be painted during synchronized painting of the hos t page. | 2678 // the host page and will be painted during synchronized painting of the hos t page. |
| 2679 if (GraphicsLayer* rootGraphicsLayer = view.compositor()->rootGraphicsLayer( )) { | 2679 if (GraphicsLayer* rootGraphicsLayer = view.compositor()->rootGraphicsLayer( )) { |
| 2680 synchronizedPaintRecursively(rootGraphicsLayer); | 2680 synchronizedPaintRecursively(rootGraphicsLayer); |
| 2681 } | 2681 } |
| 2682 if (GraphicsLayer* layerForHorizontalScrollbar = view.compositor()->layerFor HorizontalScrollbar()) { | 2682 if (m_viewportScrollableArea) { |
|
bokan
2016/09/02 16:01:54
This can be a DCHECK since we're the main frame.
MuVen
2016/09/06 10:07:29
Need if(m_viewportScrollableArea) check as without
bokan
2016/09/07 15:00:44
Interesting, those tests need to be fixed. Please
| |
| 2683 synchronizedPaintRecursively(layerForHorizontalScrollbar); | 2683 if (GraphicsLayer* layerForHorizontalScrollbar = m_viewportScrollableAre a->layerForHorizontalScrollbar()) { |
| 2684 } | 2684 synchronizedPaintRecursively(layerForHorizontalScrollbar); |
| 2685 if (GraphicsLayer* layerForVerticalScrollbar = view.compositor()->layerForVe rticalScrollbar()) { | 2685 } |
| 2686 synchronizedPaintRecursively(layerForVerticalScrollbar); | 2686 if (GraphicsLayer* layerForVerticalScrollbar = m_viewportScrollableArea- >layerForVerticalScrollbar()) { |
| 2687 } | 2687 synchronizedPaintRecursively(layerForVerticalScrollbar); |
| 2688 if (GraphicsLayer* layerForScrollCorner = view.compositor()->layerForScrollC orner()) { | 2688 } |
| 2689 synchronizedPaintRecursively(layerForScrollCorner); | 2689 if (GraphicsLayer* layerForScrollCorner = m_viewportScrollableArea->laye rForScrollCorner()) { |
| 2690 synchronizedPaintRecursively(layerForScrollCorner); | |
| 2691 } | |
| 2690 } | 2692 } |
| 2691 | 2693 |
| 2692 forAllNonThrottledFrameViews([](FrameView& frameView) { | 2694 forAllNonThrottledFrameViews([](FrameView& frameView) { |
| 2693 frameView.lifecycle().advanceTo(DocumentLifecycle::PaintClean); | 2695 frameView.lifecycle().advanceTo(DocumentLifecycle::PaintClean); |
| 2694 LayoutViewItem layoutViewItem = frameView.layoutViewItem(); | 2696 LayoutViewItem layoutViewItem = frameView.layoutViewItem(); |
| 2695 if (!layoutViewItem.isNull()) | 2697 if (!layoutViewItem.isNull()) |
| 2696 layoutViewItem.layer()->clearNeedsRepaintRecursively(); | 2698 layoutViewItem.layer()->clearNeedsRepaintRecursively(); |
| 2697 }); | 2699 }); |
| 2698 } | 2700 } |
| 2699 | 2701 |
| (...skipping 1622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4322 } | 4324 } |
| 4323 | 4325 |
| 4324 bool FrameView::canThrottleRendering() const | 4326 bool FrameView::canThrottleRendering() const |
| 4325 { | 4327 { |
| 4326 if (!RuntimeEnabledFeatures::renderingPipelineThrottlingEnabled()) | 4328 if (!RuntimeEnabledFeatures::renderingPipelineThrottlingEnabled()) |
| 4327 return false; | 4329 return false; |
| 4328 return m_subtreeThrottled || (m_hiddenForThrottling && m_crossOriginForThrot tling); | 4330 return m_subtreeThrottled || (m_hiddenForThrottling && m_crossOriginForThrot tling); |
| 4329 } | 4331 } |
| 4330 | 4332 |
| 4331 } // namespace blink | 4333 } // namespace blink |
| OLD | NEW |