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

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

Issue 2561693002: Move sticky position constraints update to the pre-paint tree walk. (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 2921 matching lines...) Expand 10 before | Expand all | Expand 10 after
2932 void FrameView::updatePaintProperties() { 2932 void FrameView::updatePaintProperties() {
2933 TRACE_EVENT0("blink", "FrameView::updatePaintProperties"); 2933 TRACE_EVENT0("blink", "FrameView::updatePaintProperties");
2934 2934
2935 if (!m_paintController) 2935 if (!m_paintController)
2936 m_paintController = PaintController::create(); 2936 m_paintController = PaintController::create();
2937 2937
2938 forAllNonThrottledFrameViews([](FrameView& frameView) { 2938 forAllNonThrottledFrameViews([](FrameView& frameView) {
2939 frameView.lifecycle().advanceTo(DocumentLifecycle::InPrePaint); 2939 frameView.lifecycle().advanceTo(DocumentLifecycle::InPrePaint);
2940 }); 2940 });
2941 2941
2942 // TODO(chrishtr): merge this into the actual pre-paint tree walk.
2943 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
2944 forAllNonThrottledFrameViews([](FrameView& frameView) {
2945 CompositingInputsUpdater(frameView.layoutView()->layer()).update();
2946 });
2947
2948 if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()) 2942 if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled())
2949 PrePaintTreeWalk().walk(*this); 2943 PrePaintTreeWalk().walk(*this);
2950 2944
2951 forAllNonThrottledFrameViews([](FrameView& frameView) { 2945 forAllNonThrottledFrameViews([](FrameView& frameView) {
2952 frameView.lifecycle().advanceTo(DocumentLifecycle::PrePaintClean); 2946 frameView.lifecycle().advanceTo(DocumentLifecycle::PrePaintClean);
2953 }); 2947 });
2954 } 2948 }
2955 2949
2956 void FrameView::synchronizedPaint() { 2950 void FrameView::synchronizedPaint() {
2957 TRACE_EVENT0("blink", "FrameView::synchronizedPaint"); 2951 TRACE_EVENT0("blink", "FrameView::synchronizedPaint");
(...skipping 1704 matching lines...) Expand 10 before | Expand all | Expand 10 after
4662 DCHECK(m_frame->isMainFrame()); 4656 DCHECK(m_frame->isMainFrame());
4663 return m_initialViewportSize.width(); 4657 return m_initialViewportSize.width();
4664 } 4658 }
4665 4659
4666 int FrameView::initialViewportHeight() const { 4660 int FrameView::initialViewportHeight() const {
4667 DCHECK(m_frame->isMainFrame()); 4661 DCHECK(m_frame->isMainFrame());
4668 return m_initialViewportSize.height(); 4662 return m_initialViewportSize.height();
4669 } 4663 }
4670 4664
4671 } // namespace blink 4665 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698