| 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/Noncopyable.h" | 10 #include "wtf/Noncopyable.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 bool requiresCompositingForScrollableFrame() const; | 30 bool requiresCompositingForScrollableFrame() const; |
| 31 bool requiresCompositingForAnimation(const ComputedStyle&) const; | 31 bool requiresCompositingForAnimation(const ComputedStyle&) const; |
| 32 | 32 |
| 33 private: | 33 private: |
| 34 bool isMainFrame() const; | 34 bool isMainFrame() const; |
| 35 | 35 |
| 36 CompositingReasons nonStyleDeterminedDirectReasons(const DeprecatedPaintLaye
r*) const; | 36 CompositingReasons nonStyleDeterminedDirectReasons(const DeprecatedPaintLaye
r*) const; |
| 37 | 37 |
| 38 bool requiresCompositingForTransform(LayoutObject*) const; | 38 bool requiresCompositingForTransform(LayoutObject*) const; |
| 39 bool requiresCompositingForPositionFixed(const DeprecatedPaintLayer*) const; | 39 bool requiresCompositingForPositionFixed(const DeprecatedPaintLayer*) const; |
| 40 bool requiresCompositingForScrollBlocksOn(const LayoutObject*) const; | |
| 41 | 40 |
| 42 LayoutView& m_layoutView; | 41 LayoutView& m_layoutView; |
| 43 CompositingTriggerFlags m_compositingTriggers; | 42 CompositingTriggerFlags m_compositingTriggers; |
| 44 }; | 43 }; |
| 45 | 44 |
| 46 } // namespace blink | 45 } // namespace blink |
| 47 | 46 |
| 48 #endif // CompositingReasonFinder_h | 47 #endif // CompositingReasonFinder_h |
| OLD | NEW |