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 CompositingInputsUpdater_h | 5 #ifndef CompositingInputsUpdater_h |
6 #define CompositingInputsUpdater_h | 6 #define CompositingInputsUpdater_h |
7 | 7 |
8 #include "core/layout/LayoutGeometryMap.h" | 8 #include "core/layout/LayoutGeometryMap.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 12 matching lines...) Expand all Loading... |
23 #endif | 23 #endif |
24 | 24 |
25 private: | 25 private: |
26 enum UpdateType { | 26 enum UpdateType { |
27 DoNotForceUpdate, | 27 DoNotForceUpdate, |
28 ForceUpdate, | 28 ForceUpdate, |
29 }; | 29 }; |
30 | 30 |
31 struct AncestorInfo { | 31 struct AncestorInfo { |
32 AncestorInfo() | 32 AncestorInfo() |
33 : ancestorStackingContext(0) | 33 : ancestorStackingContext(nullptr) |
34 , enclosingCompositedLayer(0) | 34 , enclosingCompositedLayer(nullptr) |
35 , lastScrollingAncestor(0) | 35 , lastScrollingAncestor(nullptr) |
36 , hasAncestorWithClipOrOverflowClip(false) | 36 , hasAncestorWithClipOrOverflowClip(false) |
37 , hasAncestorWithClipPath(false) | 37 , hasAncestorWithClipPath(false) |
38 { | 38 { |
39 } | 39 } |
40 | 40 |
41 DeprecatedPaintLayer* ancestorStackingContext; | 41 DeprecatedPaintLayer* ancestorStackingContext; |
42 DeprecatedPaintLayer* enclosingCompositedLayer; | 42 DeprecatedPaintLayer* enclosingCompositedLayer; |
43 // Notice that lastScrollingAncestor isn't the same thing as | 43 // Notice that lastScrollingAncestor isn't the same thing as |
44 // ancestorScrollingLayer. The former is just the nearest scrolling | 44 // ancestorScrollingLayer. The former is just the nearest scrolling |
45 // along the DeprecatedPaintLayer::parent() chain. The latter is the lay
er that | 45 // along the DeprecatedPaintLayer::parent() chain. The latter is the lay
er that |
46 // actually controls the scrolling of this layer, which we find on the | 46 // actually controls the scrolling of this layer, which we find on the |
47 // containing block chain. | 47 // containing block chain. |
48 DeprecatedPaintLayer* lastScrollingAncestor; | 48 DeprecatedPaintLayer* lastScrollingAncestor; |
49 bool hasAncestorWithClipOrOverflowClip; | 49 bool hasAncestorWithClipOrOverflowClip; |
50 bool hasAncestorWithClipPath; | 50 bool hasAncestorWithClipPath; |
51 }; | 51 }; |
52 | 52 |
53 void updateRecursive(DeprecatedPaintLayer*, UpdateType, AncestorInfo); | 53 void updateRecursive(DeprecatedPaintLayer*, UpdateType, AncestorInfo); |
54 | 54 |
55 LayoutGeometryMap m_geometryMap; | 55 LayoutGeometryMap m_geometryMap; |
56 DeprecatedPaintLayer* m_rootLayer; | 56 DeprecatedPaintLayer* m_rootLayer; |
57 }; | 57 }; |
58 | 58 |
59 } // namespace blink | 59 } // namespace blink |
60 | 60 |
61 #endif // CompositingInputsUpdater_h | 61 #endif // CompositingInputsUpdater_h |
OLD | NEW |