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