| 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 #ifndef CompositingReasonFinder_h | 5 #ifndef CompositingReasonFinder_h |
| 6 #define CompositingReasonFinder_h | 6 #define CompositingReasonFinder_h |
| 7 | 7 |
| 8 #include "core/rendering/RenderLayer.h" | 8 #include "core/rendering/RenderLayer.h" |
| 9 #include "core/rendering/compositing/CompositingTriggers.h" | 9 #include "core/rendering/compositing/CompositingTriggers.h" |
| 10 #include "platform/graphics/CompositingReasons.h" | 10 #include "platform/graphics/CompositingReasons.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 bool hasOverflowScrollTrigger() const; | 28 bool hasOverflowScrollTrigger() const; |
| 29 | 29 |
| 30 bool requiresCompositingForScrollableFrame() const; | 30 bool requiresCompositingForScrollableFrame() const; |
| 31 bool requiresCompositingForPosition(RenderObject*, const RenderLayer*, Rende
rLayer::ViewportConstrainedNotCompositedReason*, bool* needToRecomputeCompositin
gRequirements) const; | 31 bool requiresCompositingForPosition(RenderObject*, const RenderLayer*, Rende
rLayer::ViewportConstrainedNotCompositedReason*, bool* needToRecomputeCompositin
gRequirements) const; |
| 32 | 32 |
| 33 private: | 33 private: |
| 34 bool isMainFrame() const; | 34 bool isMainFrame() const; |
| 35 | 35 |
| 36 CompositingReasons nonStyleDeterminedDirectReasons(const RenderLayer*, bool*
needToRecomputeCompositingRequirements) const; | 36 CompositingReasons nonStyleDeterminedDirectReasons(const RenderLayer*, bool*
needToRecomputeCompositingRequirements) const; |
| 37 | 37 |
| 38 bool requiresCompositingForAnimation(RenderObject*) const; | |
| 39 bool requiresCompositingForTransform(RenderObject*) const; | 38 bool requiresCompositingForTransform(RenderObject*) const; |
| 40 bool requiresCompositingForBackfaceVisibilityHidden(RenderObject*) const; | |
| 41 bool requiresCompositingForFilters(RenderObject*) const; | 39 bool requiresCompositingForFilters(RenderObject*) const; |
| 42 bool requiresCompositingForOverflowScrollingParent(const RenderLayer*) const
; | |
| 43 bool requiresCompositingForOutOfFlowClipping(const RenderLayer*) const; | |
| 44 bool requiresCompositingForOverflowScrolling(const RenderLayer*) const; | |
| 45 bool requiresCompositingForPositionSticky(RenderObject*, const RenderLayer*)
const; | 40 bool requiresCompositingForPositionSticky(RenderObject*, const RenderLayer*)
const; |
| 46 bool requiresCompositingForPositionFixed(RenderObject*, const RenderLayer*,
RenderLayer::ViewportConstrainedNotCompositedReason*, bool* needToRecomputeCompo
sitingRequirements) const; | 41 bool requiresCompositingForPositionFixed(RenderObject*, const RenderLayer*,
RenderLayer::ViewportConstrainedNotCompositedReason*, bool* needToRecomputeCompo
sitingRequirements) const; |
| 47 bool requiresCompositingForWillChangeCompositingHint(const RenderObject*) co
nst; | |
| 48 | 42 |
| 49 RenderView& m_renderView; | 43 RenderView& m_renderView; |
| 50 CompositingTriggerFlags m_compositingTriggers; | 44 CompositingTriggerFlags m_compositingTriggers; |
| 51 }; | 45 }; |
| 52 | 46 |
| 53 } // namespace WebCore | 47 } // namespace WebCore |
| 54 | 48 |
| 55 #endif // CompositingReasonFinder_h | 49 #endif // CompositingReasonFinder_h |
| OLD | NEW |