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

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

Issue 2658513002: sdf
Patch Set: sdf Created 3 years, 10 months 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 #include "platform/loader/fetch/ResourceFetcher.h" 124 #include "platform/loader/fetch/ResourceFetcher.h"
125 #include "platform/scroll/ScrollAnimatorBase.h" 125 #include "platform/scroll/ScrollAnimatorBase.h"
126 #include "platform/scroll/ScrollbarTheme.h" 126 #include "platform/scroll/ScrollbarTheme.h"
127 #include "platform/text/TextStream.h" 127 #include "platform/text/TextStream.h"
128 #include "public/platform/WebDisplayItemList.h" 128 #include "public/platform/WebDisplayItemList.h"
129 #include "wtf/CurrentTime.h" 129 #include "wtf/CurrentTime.h"
130 #include "wtf/PtrUtil.h" 130 #include "wtf/PtrUtil.h"
131 #include "wtf/StdLibExtras.h" 131 #include "wtf/StdLibExtras.h"
132 #include <memory> 132 #include <memory>
133 133
134 #include "core/paint/PaintPropertyTreePrinter.h"
135
134 // Used to check for dirty layouts violating document lifecycle rules. 136 // Used to check for dirty layouts violating document lifecycle rules.
135 // If arg evaluates to true, the program will continue. If arg evaluates to 137 // If arg evaluates to true, the program will continue. If arg evaluates to
136 // false, program will crash if DCHECK_IS_ON() or return false from the current 138 // false, program will crash if DCHECK_IS_ON() or return false from the current
137 // function. 139 // function.
138 #define CHECK_FOR_DIRTY_LAYOUT(arg) \ 140 #define CHECK_FOR_DIRTY_LAYOUT(arg) \
139 do { \ 141 do { \
140 if (!(arg)) { \ 142 if (!(arg)) { \
141 NOTREACHED(); \ 143 NOTREACHED(); \
142 return false; \ 144 return false; \
143 } \ 145 } \
(...skipping 2901 matching lines...) Expand 10 before | Expand all | Expand 10 after
3045 forAllNonThrottledFrameViews([](FrameView& frameView) { 3047 forAllNonThrottledFrameViews([](FrameView& frameView) {
3046 frameView.lifecycle().advanceTo(DocumentLifecycle::InPrePaint); 3048 frameView.lifecycle().advanceTo(DocumentLifecycle::InPrePaint);
3047 }); 3049 });
3048 3050
3049 if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()) 3051 if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled())
3050 PrePaintTreeWalk(*m_geometryMapper).walk(*this); 3052 PrePaintTreeWalk(*m_geometryMapper).walk(*this);
3051 3053
3052 forAllNonThrottledFrameViews([](FrameView& frameView) { 3054 forAllNonThrottledFrameViews([](FrameView& frameView) {
3053 frameView.lifecycle().advanceTo(DocumentLifecycle::PrePaintClean); 3055 frameView.lifecycle().advanceTo(DocumentLifecycle::PrePaintClean);
3054 }); 3056 });
3057
3058 showAllPropertyTrees(*this);
3055 } 3059 }
3056 3060
3057 void FrameView::notifyPaint(const PaintController& paintController) const { 3061 void FrameView::notifyPaint(const PaintController& paintController) const {
3058 DCHECK(m_frame->document()); 3062 DCHECK(m_frame->document());
3059 PaintTiming::from(*m_frame->document()) 3063 PaintTiming::from(*m_frame->document())
3060 .notifyPaint(paintController.firstPainted(), 3064 .notifyPaint(paintController.firstPainted(),
3061 paintController.textPainted(), 3065 paintController.textPainted(),
3062 paintController.imagePainted()); 3066 paintController.imagePainted());
3063 } 3067 }
3064 3068
(...skipping 1996 matching lines...) Expand 10 before | Expand all | Expand 10 after
5061 std::unique_ptr<CompositorAnimationTimeline> timeline) { 5065 std::unique_ptr<CompositorAnimationTimeline> timeline) {
5062 m_animationTimeline = std::move(timeline); 5066 m_animationTimeline = std::move(timeline);
5063 } 5067 }
5064 5068
5065 void FrameView::setAnimationHost( 5069 void FrameView::setAnimationHost(
5066 std::unique_ptr<CompositorAnimationHost> host) { 5070 std::unique_ptr<CompositorAnimationHost> host) {
5067 m_animationHost = std::move(host); 5071 m_animationHost = std::move(host);
5068 } 5072 }
5069 5073
5070 } // namespace blink 5074 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698