| OLD | NEW |
| 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 "CSSPropertyNames.h" | 8 #include "CSSPropertyNames.h" |
| 9 #include "HTMLNames.h" | 9 #include "HTMLNames.h" |
| 10 #include "core/frame/FrameView.h" | 10 #include "core/frame/FrameView.h" |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 | 135 |
| 136 return renderer->hasFilter(); | 136 return renderer->hasFilter(); |
| 137 } | 137 } |
| 138 | 138 |
| 139 CompositingReasons CompositingReasonFinder::nonStyleDeterminedDirectReasons(cons
t RenderLayer* layer, bool* needToRecomputeCompositingRequirements) const | 139 CompositingReasons CompositingReasonFinder::nonStyleDeterminedDirectReasons(cons
t RenderLayer* layer, bool* needToRecomputeCompositingRequirements) const |
| 140 { | 140 { |
| 141 CompositingReasons directReasons = CompositingReasonNone; | 141 CompositingReasons directReasons = CompositingReasonNone; |
| 142 RenderObject* renderer = layer->renderer(); | 142 RenderObject* renderer = layer->renderer(); |
| 143 | 143 |
| 144 if (hasOverflowScrollTrigger()) { | 144 if (hasOverflowScrollTrigger()) { |
| 145 if (layer->isUnclippedDescendant()) | 145 if (layer->ancestorDependentProperties().isUnclippedDescendant) |
| 146 directReasons |= CompositingReasonOutOfFlowClipping; | 146 directReasons |= CompositingReasonOutOfFlowClipping; |
| 147 | 147 |
| 148 if (layer->scrollParent()) | 148 if (layer->scrollParent()) |
| 149 directReasons |= CompositingReasonOverflowScrollingParent; | 149 directReasons |= CompositingReasonOverflowScrollingParent; |
| 150 | 150 |
| 151 if (layer->needsCompositedScrolling()) | 151 if (layer->needsCompositedScrolling()) |
| 152 directReasons |= CompositingReasonOverflowScrollingTouch; | 152 directReasons |= CompositingReasonOverflowScrollingTouch; |
| 153 } | 153 } |
| 154 | 154 |
| 155 if (requiresCompositingForPositionSticky(renderer, layer)) | 155 if (requiresCompositingForPositionSticky(renderer, layer)) |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 if (viewportConstrainedNotCompositedReason) | 257 if (viewportConstrainedNotCompositedReason) |
| 258 *viewportConstrainedNotCompositedReason = RenderLayer::NotCompos
itedForBoundsOutOfView; | 258 *viewportConstrainedNotCompositedReason = RenderLayer::NotCompos
itedForBoundsOutOfView; |
| 259 return false; | 259 return false; |
| 260 } | 260 } |
| 261 } | 261 } |
| 262 | 262 |
| 263 return true; | 263 return true; |
| 264 } | 264 } |
| 265 | 265 |
| 266 } | 266 } |
| OLD | NEW |