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/layout/compositing/CompositingTriggers.h" | 8 #include "core/layout/compositing/CompositingTriggers.h" |
9 #include "platform/graphics/CompositingReasons.h" | 9 #include "platform/graphics/CompositingReasons.h" |
10 #include "wtf/Allocator.h" | 10 #include "wtf/Allocator.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 bool hasOverflowScrollTrigger() const; | 31 bool hasOverflowScrollTrigger() const; |
32 bool requiresCompositingForScrollableFrame() const; | 32 bool requiresCompositingForScrollableFrame() const; |
33 bool requiresCompositingForAnimation(const ComputedStyle&) const; | 33 bool requiresCompositingForAnimation(const ComputedStyle&) const; |
34 | 34 |
35 private: | 35 private: |
36 bool isMainFrame() const; | 36 bool isMainFrame() const; |
37 | 37 |
38 CompositingReasons nonStyleDeterminedDirectReasons(const PaintLayer*) const; | 38 CompositingReasons nonStyleDeterminedDirectReasons(const PaintLayer*) const; |
39 | 39 |
40 bool requiresCompositingForTransform(LayoutObject*) const; | 40 bool requiresCompositingForTransform(LayoutObject*) const; |
41 bool requiresCompositingForPositionFixed(const PaintLayer*) const; | 41 bool requiresCompositingForScrollDependentPosition(const PaintLayer*) const; |
42 | 42 |
43 LayoutView& m_layoutView; | 43 LayoutView& m_layoutView; |
44 CompositingTriggerFlags m_compositingTriggers; | 44 CompositingTriggerFlags m_compositingTriggers; |
45 }; | 45 }; |
46 | 46 |
47 } // namespace blink | 47 } // namespace blink |
48 | 48 |
49 #endif // CompositingReasonFinder_h | 49 #endif // CompositingReasonFinder_h |
OLD | NEW |