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

Side by Side Diff: Source/core/rendering/compositing/CompositingReasonFinder.cpp

Issue 322163003: Rename AncestorDependentProperties to CompositingInputs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Moar renaming Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "core/rendering/compositing/CompositingReasonFinder.h" 6 #include "core/rendering/compositing/CompositingReasonFinder.h"
7 7
8 #include "core/frame/FrameView.h" 8 #include "core/frame/FrameView.h"
9 #include "core/frame/Settings.h" 9 #include "core/frame/Settings.h"
10 #include "core/page/Page.h" 10 #include "core/page/Page.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 return renderer->hasFilter(); 117 return renderer->hasFilter();
118 } 118 }
119 119
120 CompositingReasons CompositingReasonFinder::nonStyleDeterminedDirectReasons(cons t RenderLayer* layer) const 120 CompositingReasons CompositingReasonFinder::nonStyleDeterminedDirectReasons(cons t RenderLayer* layer) const
121 { 121 {
122 CompositingReasons directReasons = CompositingReasonNone; 122 CompositingReasons directReasons = CompositingReasonNone;
123 RenderObject* renderer = layer->renderer(); 123 RenderObject* renderer = layer->renderer();
124 124
125 if (hasOverflowScrollTrigger()) { 125 if (hasOverflowScrollTrigger()) {
126 // IsUnclippedDescendant is only actually stale during the chicken/egg c ode path. 126 // IsUnclippedDescendant is only actually stale during the chicken/egg c ode path.
127 // FIXME: Use ancestorDependentProperties().isUnclippedDescendant to ASS ERT that 127 // FIXME: Use compositingInputs().isUnclippedDescendant to ASSERT that
128 // this value isn't stale. 128 // this value isn't stale.
129 if (layer->potentiallyStaleIsUnclippedDescendant()) 129 if (layer->potentiallyStaleIsUnclippedDescendant())
130 directReasons |= CompositingReasonOutOfFlowClipping; 130 directReasons |= CompositingReasonOutOfFlowClipping;
131 131
132 if (layer->scrollParent()) 132 if (layer->scrollParent())
133 directReasons |= CompositingReasonOverflowScrollingParent; 133 directReasons |= CompositingReasonOverflowScrollingParent;
134 134
135 if (layer->needsCompositedScrolling()) 135 if (layer->needsCompositedScrolling())
136 directReasons |= CompositingReasonOverflowScrollingTouch; 136 directReasons |= CompositingReasonOverflowScrollingTouch;
137 } 137 }
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 if (viewportConstrainedNotCompositedReason) 246 if (viewportConstrainedNotCompositedReason)
247 *viewportConstrainedNotCompositedReason = RenderLayer::NotCompos itedForBoundsOutOfView; 247 *viewportConstrainedNotCompositedReason = RenderLayer::NotCompos itedForBoundsOutOfView;
248 return false; 248 return false;
249 } 249 }
250 } 250 }
251 251
252 return true; 252 return true;
253 } 253 }
254 254
255 } 255 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698