OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 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 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1055 } | 1055 } |
1056 | 1056 |
1057 FloatPoint RenderLayer::perspectiveOrigin() const | 1057 FloatPoint RenderLayer::perspectiveOrigin() const |
1058 { | 1058 { |
1059 if (!renderer()->hasTransform()) | 1059 if (!renderer()->hasTransform()) |
1060 return FloatPoint(); | 1060 return FloatPoint(); |
1061 | 1061 |
1062 const LayoutRect borderBox = toRenderBox(renderer())->borderBoxRect(); | 1062 const LayoutRect borderBox = toRenderBox(renderer())->borderBoxRect(); |
1063 RenderStyle* style = renderer()->style(); | 1063 RenderStyle* style = renderer()->style(); |
1064 | 1064 |
1065 return FloatPoint(floatValueForLength(style->perspectiveOriginX(), borderBox
.width()), | 1065 return FloatPoint(floatValueForLength(style->perspectiveOriginX(), borderBox
.width().toFloat()), floatValueForLength(style->perspectiveOriginY(), borderBox.
height().toFloat())); |
1066 floatValueForLength(style->perspectiveOriginY(), borderBox
.height())); | |
1067 } | 1066 } |
1068 | 1067 |
1069 static inline bool isFixedPositionedContainer(RenderLayer* layer) | 1068 static inline bool isFixedPositionedContainer(RenderLayer* layer) |
1070 { | 1069 { |
1071 return layer->isRootLayer() || layer->hasTransform(); | 1070 return layer->isRootLayer() || layer->hasTransform(); |
1072 } | 1071 } |
1073 | 1072 |
1074 RenderLayer* RenderLayer::enclosingPositionedAncestor() const | 1073 RenderLayer* RenderLayer::enclosingPositionedAncestor() const |
1075 { | 1074 { |
1076 RenderLayer* curr = parent(); | 1075 RenderLayer* curr = parent(); |
(...skipping 2987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4064 } | 4063 } |
4065 } | 4064 } |
4066 | 4065 |
4067 void showLayerTree(const WebCore::RenderObject* renderer) | 4066 void showLayerTree(const WebCore::RenderObject* renderer) |
4068 { | 4067 { |
4069 if (!renderer) | 4068 if (!renderer) |
4070 return; | 4069 return; |
4071 showLayerTree(renderer->enclosingLayer()); | 4070 showLayerTree(renderer->enclosingLayer()); |
4072 } | 4071 } |
4073 #endif | 4072 #endif |
OLD | NEW |