| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. |
| 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 942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 953 const LayoutRect borderBox = toRenderBox(renderer())->borderBoxRect(); | 953 const LayoutRect borderBox = toRenderBox(renderer())->borderBoxRect(); |
| 954 RenderStyle* style = renderer()->style(); | 954 RenderStyle* style = renderer()->style(); |
| 955 | 955 |
| 956 return FloatPoint(floatValueForLength(style->perspectiveOriginX(), borderBox
.width()), | 956 return FloatPoint(floatValueForLength(style->perspectiveOriginX(), borderBox
.width()), |
| 957 floatValueForLength(style->perspectiveOriginY(), borderBox
.height())); | 957 floatValueForLength(style->perspectiveOriginY(), borderBox
.height())); |
| 958 } | 958 } |
| 959 | 959 |
| 960 RenderLayer* RenderLayer::stackingContext() const | 960 RenderLayer* RenderLayer::stackingContext() const |
| 961 { | 961 { |
| 962 RenderLayer* layer = parent(); | 962 RenderLayer* layer = parent(); |
| 963 while (layer && !layer->isRootLayer() && !layer->renderer()->isRoot() && lay
er->renderer()->style()->hasAutoZIndex()) | 963 while (layer && !layer->isStackingContext()) |
| 964 layer = layer->parent(); | 964 layer = layer->parent(); |
| 965 |
| 966 ASSERT(!layer || layer->isStackingContext()); |
| 965 return layer; | 967 return layer; |
| 966 } | 968 } |
| 967 | 969 |
| 968 static inline bool isPositionedContainer(RenderLayer* layer) | 970 static inline bool isPositionedContainer(RenderLayer* layer) |
| 969 { | 971 { |
| 970 RenderLayerModelObject* layerRenderer = layer->renderer(); | 972 RenderLayerModelObject* layerRenderer = layer->renderer(); |
| 971 return layer->isRootLayer() || layerRenderer->isPositioned() || layer->hasTr
ansform(); | 973 return layer->isRootLayer() || layerRenderer->isPositioned() || layer->hasTr
ansform(); |
| 972 } | 974 } |
| 973 | 975 |
| 974 static inline bool isFixedPositionedContainer(RenderLayer* layer) | 976 static inline bool isFixedPositionedContainer(RenderLayer* layer) |
| (...skipping 4166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5141 } | 5143 } |
| 5142 } | 5144 } |
| 5143 | 5145 |
| 5144 void showLayerTree(const WebCore::RenderObject* renderer) | 5146 void showLayerTree(const WebCore::RenderObject* renderer) |
| 5145 { | 5147 { |
| 5146 if (!renderer) | 5148 if (!renderer) |
| 5147 return; | 5149 return; |
| 5148 showLayerTree(renderer->enclosingLayer()); | 5150 showLayerTree(renderer->enclosingLayer()); |
| 5149 } | 5151 } |
| 5150 #endif | 5152 #endif |
| OLD | NEW |