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 2855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2866 frameView.m_allowsLayoutInvalidationAfterLayoutClean = false; | 2866 frameView.m_allowsLayoutInvalidationAfterLayoutClean = false; |
| 2867 }); | 2867 }); |
| 2868 | 2868 |
| 2869 { | 2869 { |
| 2870 TRACE_EVENT1("devtools.timeline", "UpdateLayerTree", "data", | 2870 TRACE_EVENT1("devtools.timeline", "UpdateLayerTree", "data", |
| 2871 InspectorUpdateLayerTreeEvent::data(m_frame.get())); | 2871 InspectorUpdateLayerTreeEvent::data(m_frame.get())); |
| 2872 | 2872 |
| 2873 if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { | 2873 if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { |
| 2874 view.compositor()->updateIfNeededRecursive(); | 2874 view.compositor()->updateIfNeededRecursive(); |
| 2875 } else { | 2875 } else { |
| 2876 DocumentAnimations::updateAnimations(layoutView()->document()); | |
| 2877 | |
| 2878 forAllNonThrottledFrameViews([](FrameView& frameView) { | 2876 forAllNonThrottledFrameViews([](FrameView& frameView) { |
| 2879 frameView.layoutView()->layer()->updateDescendantDependentFlags(); | 2877 frameView.layoutView()->layer()->updateDescendantDependentFlags(); |
| 2880 frameView.layoutView()->commitPendingSelection(); | 2878 frameView.layoutView()->commitPendingSelection(); |
| 2881 }); | 2879 }); |
| 2882 } | 2880 } |
| 2883 | 2881 |
| 2884 scrollContentsIfNeededRecursive(); | 2882 scrollContentsIfNeededRecursive(); |
| 2885 DCHECK(RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled() || | 2883 DCHECK(RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled() || |
| 2886 lifecycle().state() >= DocumentLifecycle::CompositingClean); | 2884 lifecycle().state() >= DocumentLifecycle::CompositingClean); |
| 2887 | 2885 |
| 2888 m_frame->host()->globalRootScrollerController().didUpdateCompositing(); | 2886 m_frame->host()->globalRootScrollerController().didUpdateCompositing(); |
| 2889 | 2887 |
| 2890 if (targetState >= DocumentLifecycle::PrePaintClean) { | 2888 if (targetState >= DocumentLifecycle::PrePaintClean) { |
| 2891 if (!RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()) | 2889 if (!RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()) |
| 2892 invalidateTreeIfNeededRecursive(); | 2890 invalidateTreeIfNeededRecursive(); |
| 2893 | 2891 |
| 2894 if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { | 2892 if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { |
| 2895 if (view.compositor()->inCompositingMode()) | 2893 if (view.compositor()->inCompositingMode()) |
| 2896 scrollingCoordinator()->updateAfterCompositingChangeIfNeeded(); | 2894 scrollingCoordinator()->updateAfterCompositingChangeIfNeeded(); |
| 2897 } | 2895 } |
| 2898 | 2896 |
| 2899 updateCompositedSelectionIfNeeded(); | 2897 updateCompositedSelectionIfNeeded(); |
| 2900 } | 2898 } |
| 2899 | |
| 2900 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) | |
| 2901 DocumentAnimations::updateAnimations(layoutView()->document()); | |
|
chrishtr
2016/12/13 00:13:53
It needs to be after updatePaintProperties, if ani
wkorman
2016/12/15 20:14:04
Indeed. Done.
| |
| 2901 } | 2902 } |
| 2902 | 2903 |
| 2903 if (targetState >= DocumentLifecycle::PrePaintClean) { | 2904 if (targetState >= DocumentLifecycle::PrePaintClean) { |
| 2904 updatePaintProperties(); | 2905 updatePaintProperties(); |
| 2905 } | 2906 } |
| 2906 | 2907 |
| 2907 if (targetState == DocumentLifecycle::PaintClean) { | 2908 if (targetState == DocumentLifecycle::PaintClean) { |
| 2908 if (!m_frame->document()->printing()) | 2909 if (!m_frame->document()->printing()) |
| 2909 synchronizedPaint(); | 2910 synchronizedPaint(); |
| 2910 | 2911 |
| (...skipping 1758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4669 DCHECK(m_frame->isMainFrame()); | 4670 DCHECK(m_frame->isMainFrame()); |
| 4670 return m_initialViewportSize.width(); | 4671 return m_initialViewportSize.width(); |
| 4671 } | 4672 } |
| 4672 | 4673 |
| 4673 int FrameView::initialViewportHeight() const { | 4674 int FrameView::initialViewportHeight() const { |
| 4674 DCHECK(m_frame->isMainFrame()); | 4675 DCHECK(m_frame->isMainFrame()); |
| 4675 return m_initialViewportSize.height(); | 4676 return m_initialViewportSize.height(); |
| 4676 } | 4677 } |
| 4677 | 4678 |
| 4678 } // namespace blink | 4679 } // namespace blink |
| OLD | NEW |