OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
5 * | 5 * |
6 * Other contributors: | 6 * Other contributors: |
7 * Robert O'Callahan <roc+@cs.cmu.edu> | 7 * Robert O'Callahan <roc+@cs.cmu.edu> |
8 * David Baron <dbaron@fas.harvard.edu> | 8 * David Baron <dbaron@fas.harvard.edu> |
9 * Christian Biesinger <cbiesinger@web.de> | 9 * Christian Biesinger <cbiesinger@web.de> |
10 * Randall Jesup <rjesup@wgate.com> | 10 * Randall Jesup <rjesup@wgate.com> |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 CompositingReasonNone = 0, | 84 CompositingReasonNone = 0, |
85 | 85 |
86 // Intrinsic reasons that can be known right away by the layer | 86 // Intrinsic reasons that can be known right away by the layer |
87 CompositingReason3DTransform = 1 << 0, | 87 CompositingReason3DTransform = 1 << 0, |
88 CompositingReasonVideo = 1 << 1, | 88 CompositingReasonVideo = 1 << 1, |
89 CompositingReasonCanvas = 1 << 2, | 89 CompositingReasonCanvas = 1 << 2, |
90 CompositingReasonPlugin = 1 << 3, | 90 CompositingReasonPlugin = 1 << 3, |
91 CompositingReasonIFrame = 1 << 4, | 91 CompositingReasonIFrame = 1 << 4, |
92 CompositingReasonBackfaceVisibilityHidden = 1 << 5, | 92 CompositingReasonBackfaceVisibilityHidden = 1 << 5, |
93 CompositingReasonAnimation = 1 << 6, | 93 CompositingReasonAnimation = 1 << 6, |
94 CompositingReasonFilters = 1 << 7, | 94 CompositingReasonTransition = 1 << 7, |
95 CompositingReasonPositionFixed = 1 << 8, | 95 CompositingReasonFilters = 1 << 8, |
96 CompositingReasonPositionSticky = 1 << 9, | 96 CompositingReasonPositionFixed = 1 << 9, |
97 CompositingReasonOverflowScrollingTouch = 1 << 10, | 97 CompositingReasonPositionSticky = 1 << 10, |
98 CompositingReasonBlending = 1 << 11, | 98 CompositingReasonOverflowScrollingTouch = 1 << 11, |
| 99 CompositingReasonBlending = 1 << 12, |
99 | 100 |
100 // Overlap reasons that require knowing what's behind you in paint-order bef
ore knowing the answer | 101 // Overlap reasons that require knowing what's behind you in paint-order bef
ore knowing the answer |
101 CompositingReasonAssumedOverlap = 1 << 12, | 102 CompositingReasonAssumedOverlap = 1 << 13, |
102 CompositingReasonOverlap = 1 << 13, | 103 CompositingReasonOverlap = 1 << 14, |
103 CompositingReasonNegativeZIndexChildren = 1 << 14, | 104 CompositingReasonNegativeZIndexChildren = 1 << 15, |
104 | 105 |
105 // Subtree reasons that require knowing what the status of your subtree is b
efore knowing the answer | 106 // Subtree reasons that require knowing what the status of your subtree is b
efore knowing the answer |
106 CompositingReasonTransformWithCompositedDescendants = 1 << 15, | 107 CompositingReasonTransformWithCompositedDescendants = 1 << 16, |
107 CompositingReasonOpacityWithCompositedDescendants = 1 << 16, | 108 CompositingReasonOpacityWithCompositedDescendants = 1 << 17, |
108 CompositingReasonMaskWithCompositedDescendants = 1 << 17, | 109 CompositingReasonMaskWithCompositedDescendants = 1 << 18, |
109 CompositingReasonReflectionWithCompositedDescendants = 1 << 18, | 110 CompositingReasonReflectionWithCompositedDescendants = 1 << 19, |
110 CompositingReasonFilterWithCompositedDescendants = 1 << 19, | 111 CompositingReasonFilterWithCompositedDescendants = 1 << 20, |
111 CompositingReasonBlendingWithCompositedDescendants = 1 << 20, | 112 CompositingReasonBlendingWithCompositedDescendants = 1 << 21, |
112 CompositingReasonClipsCompositingDescendants = 1 << 21, | 113 CompositingReasonClipsCompositingDescendants = 1 << 22, |
113 CompositingReasonPerspective = 1 << 22, | 114 CompositingReasonPerspective = 1 << 23, |
114 CompositingReasonPreserve3D = 1 << 23, | 115 CompositingReasonPreserve3D = 1 << 24, |
115 CompositingReasonReflectionOfCompositedParent = 1 << 24, | 116 CompositingReasonReflectionOfCompositedParent = 1 << 25, |
116 | 117 |
117 // The root layer is a special case that may be forced to be a layer, but al
so it needs to be | 118 // The root layer is a special case that may be forced to be a layer, but al
so it needs to be |
118 // a layer if anything else in the subtree is composited. | 119 // a layer if anything else in the subtree is composited. |
119 CompositingReasonRoot = 1 << 25 | 120 CompositingReasonRoot = 1 << 26 |
120 }; | 121 }; |
121 typedef unsigned CompositingReasons; | 122 typedef unsigned CompositingReasons; |
122 | 123 |
123 class ClipRect { | 124 class ClipRect { |
124 public: | 125 public: |
125 ClipRect() | 126 ClipRect() |
126 : m_hasRadius(false) | 127 : m_hasRadius(false) |
127 { } | 128 { } |
128 | 129 |
129 ClipRect(const LayoutRect& rect) | 130 ClipRect(const LayoutRect& rect) |
(...skipping 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1344 | 1345 |
1345 } // namespace WebCore | 1346 } // namespace WebCore |
1346 | 1347 |
1347 #ifndef NDEBUG | 1348 #ifndef NDEBUG |
1348 // Outside the WebCore namespace for ease of invocation from gdb. | 1349 // Outside the WebCore namespace for ease of invocation from gdb. |
1349 void showLayerTree(const WebCore::RenderLayer*); | 1350 void showLayerTree(const WebCore::RenderLayer*); |
1350 void showLayerTree(const WebCore::RenderObject*); | 1351 void showLayerTree(const WebCore::RenderObject*); |
1351 #endif | 1352 #endif |
1352 | 1353 |
1353 #endif // RenderLayer_h | 1354 #endif // RenderLayer_h |
OLD | NEW |