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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 CompositingReasonReflectionWithCompositedDescendants = 1 << 18, | 109 CompositingReasonReflectionWithCompositedDescendants = 1 << 18, |
110 CompositingReasonFilterWithCompositedDescendants = 1 << 19, | 110 CompositingReasonFilterWithCompositedDescendants = 1 << 19, |
111 CompositingReasonBlendingWithCompositedDescendants = 1 << 20, | 111 CompositingReasonBlendingWithCompositedDescendants = 1 << 20, |
112 CompositingReasonClipsCompositingDescendants = 1 << 21, | 112 CompositingReasonClipsCompositingDescendants = 1 << 21, |
113 CompositingReasonPerspective = 1 << 22, | 113 CompositingReasonPerspective = 1 << 22, |
114 CompositingReasonPreserve3D = 1 << 23, | 114 CompositingReasonPreserve3D = 1 << 23, |
115 CompositingReasonReflectionOfCompositedParent = 1 << 24, | 115 CompositingReasonReflectionOfCompositedParent = 1 << 24, |
116 | 116 |
117 // The root layer is a special case that may be forced to be a layer, but al
so it needs to be | 117 // 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. | 118 // a layer if anything else in the subtree is composited. |
119 CompositingReasonRoot = 1 << 25 | 119 CompositingReasonRoot = 1 << 25, |
| 120 |
| 121 // RenderLayerBacking internal hierarchy reasons |
| 122 CompositingReasonLayerForClip = 1 << 26, |
| 123 CompositingReasonLayerForDescendantClip = 1 << 27, |
| 124 CompositingReasonLayerForScrollbar = 1 << 28, |
| 125 CompositingReasonsLayerForScrollingContainer = 1 << 29, |
| 126 CompositingReasonsLayerForForeground = 1 << 30 |
| 127 |
| 128 // Note: if you add more reasons here, you will need to update the WebCompos
itingReasons enum as well. |
120 }; | 129 }; |
121 typedef unsigned CompositingReasons; | 130 typedef unsigned CompositingReasons; |
122 | 131 |
123 class ClipRect { | 132 class ClipRect { |
124 public: | 133 public: |
125 ClipRect() | 134 ClipRect() |
126 : m_hasRadius(false) | 135 : m_hasRadius(false) |
127 { } | 136 { } |
128 | 137 |
129 ClipRect(const LayoutRect& rect) | 138 ClipRect(const LayoutRect& rect) |
(...skipping 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1344 | 1353 |
1345 } // namespace WebCore | 1354 } // namespace WebCore |
1346 | 1355 |
1347 #ifndef NDEBUG | 1356 #ifndef NDEBUG |
1348 // Outside the WebCore namespace for ease of invocation from gdb. | 1357 // Outside the WebCore namespace for ease of invocation from gdb. |
1349 void showLayerTree(const WebCore::RenderLayer*); | 1358 void showLayerTree(const WebCore::RenderLayer*); |
1350 void showLayerTree(const WebCore::RenderObject*); | 1359 void showLayerTree(const WebCore::RenderObject*); |
1351 #endif | 1360 #endif |
1352 | 1361 |
1353 #endif // RenderLayer_h | 1362 #endif // RenderLayer_h |
OLD | NEW |