Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2543913002: Generalize visible descendant dirty bits to prepare for more properties. (Closed)
Patch Set: none Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 2827 matching lines...) Expand 10 before | Expand all | Expand 10 after
2838 { 2838 {
2839 TRACE_EVENT1("devtools.timeline", "UpdateLayerTree", "data", 2839 TRACE_EVENT1("devtools.timeline", "UpdateLayerTree", "data",
2840 InspectorUpdateLayerTreeEvent::data(m_frame.get())); 2840 InspectorUpdateLayerTreeEvent::data(m_frame.get()));
2841 2841
2842 if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { 2842 if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
2843 view.compositor()->updateIfNeededRecursive(); 2843 view.compositor()->updateIfNeededRecursive();
2844 } else { 2844 } else {
2845 DocumentAnimations::updateAnimations(layoutView()->document()); 2845 DocumentAnimations::updateAnimations(layoutView()->document());
2846 2846
2847 forAllNonThrottledFrameViews([](FrameView& frameView) { 2847 forAllNonThrottledFrameViews([](FrameView& frameView) {
2848 frameView.layoutView()->layer()->updateDescendantDependentFlags();
2848 frameView.layoutView()->commitPendingSelection(); 2849 frameView.layoutView()->commitPendingSelection();
2849 }); 2850 });
2850 } 2851 }
2851 2852
2852 scrollContentsIfNeededRecursive(); 2853 scrollContentsIfNeededRecursive();
2853 DCHECK(RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled() || 2854 DCHECK(RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled() ||
2854 lifecycle().state() >= DocumentLifecycle::CompositingClean); 2855 lifecycle().state() >= DocumentLifecycle::CompositingClean);
2855 2856
2856 m_frame->host()->globalRootScrollerController().didUpdateCompositing(); 2857 m_frame->host()->globalRootScrollerController().didUpdateCompositing();
2857 2858
(...skipping 1787 matching lines...) Expand 10 before | Expand all | Expand 10 after
4645 DCHECK(m_frame->isMainFrame()); 4646 DCHECK(m_frame->isMainFrame());
4646 return m_initialViewportSize.width(); 4647 return m_initialViewportSize.width();
4647 } 4648 }
4648 4649
4649 int FrameView::initialViewportHeight() const { 4650 int FrameView::initialViewportHeight() const {
4650 DCHECK(m_frame->isMainFrame()); 4651 DCHECK(m_frame->isMainFrame());
4651 return m_initialViewportSize.height(); 4652 return m_initialViewportSize.height();
4652 } 4653 }
4653 4654
4654 } // namespace blink 4655 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698