| 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 * Copyright (C) 2013 Intel Corporation. All rights reserved. | 3 * Copyright (C) 2013 Intel Corporation. All rights reserved. |
| 4 * | 4 * |
| 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
| 6 * | 6 * |
| 7 * Other contributors: | 7 * Other contributors: |
| 8 * Robert O'Callahan <roc+@cs.cmu.edu> | 8 * Robert O'Callahan <roc+@cs.cmu.edu> |
| 9 * David Baron <dbaron@fas.harvard.edu> | 9 * David Baron <dbaron@fas.harvard.edu> |
| 10 * Christian Biesinger <cbiesinger@web.de> | 10 * Christian Biesinger <cbiesinger@web.de> |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 | 264 |
| 265 bool hasTransformRelatedProperty() const { return layoutObject()->hasTransfo
rmRelatedProperty(); } | 265 bool hasTransformRelatedProperty() const { return layoutObject()->hasTransfo
rmRelatedProperty(); } |
| 266 // Note that this transform has the transform-origin baked in. | 266 // Note that this transform has the transform-origin baked in. |
| 267 TransformationMatrix* transform() const { return m_transform.get(); } | 267 TransformationMatrix* transform() const { return m_transform.get(); } |
| 268 void setTransform(PassOwnPtr<TransformationMatrix> transform) { m_transform
= transform; } | 268 void setTransform(PassOwnPtr<TransformationMatrix> transform) { m_transform
= transform; } |
| 269 void clearTransform() { m_transform.clear(); } | 269 void clearTransform() { m_transform.clear(); } |
| 270 | 270 |
| 271 // currentTransform computes a transform which takes accelerated animations
into account. The | 271 // currentTransform computes a transform which takes accelerated animations
into account. The |
| 272 // resulting transform has transform-origin baked in. If the layer does not
have a transform, | 272 // resulting transform has transform-origin baked in. If the layer does not
have a transform, |
| 273 // returns the identity matrix. | 273 // returns the identity matrix. |
| 274 TransformationMatrix currentTransform(ComputedStyle::ApplyTransformOrigin =
ComputedStyle::IncludeTransformOrigin) const; | 274 TransformationMatrix currentTransform() const; |
| 275 TransformationMatrix renderableTransform(PaintBehavior) const; | 275 TransformationMatrix renderableTransform(PaintBehavior) const; |
| 276 | 276 |
| 277 // Get the perspective transform, which is applied to transformed sublayers. | 277 // Get the perspective transform, which is applied to transformed sublayers. |
| 278 // Returns true if the layer has a -webkit-perspective. | 278 // Returns true if the layer has a -webkit-perspective. |
| 279 // Note that this transform does not have the perspective-origin baked in. | 279 // Note that this transform does not have the perspective-origin baked in. |
| 280 TransformationMatrix perspectiveTransform() const; | 280 TransformationMatrix perspectiveTransform() const; |
| 281 FloatPoint perspectiveOrigin() const; | 281 FloatPoint perspectiveOrigin() const; |
| 282 bool preserves3D() const { return layoutObject()->style()->transformStyle3D(
) == TransformStyle3DPreserve3D; } | 282 bool preserves3D() const { return layoutObject()->style()->transformStyle3D(
) == TransformStyle3DPreserve3D; } |
| 283 bool has3DTransform() const { return m_transform && !m_transform->isAffine()
; } | 283 bool has3DTransform() const { return m_transform && !m_transform->isAffine()
; } |
| 284 | 284 |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 | 710 |
| 711 } // namespace blink | 711 } // namespace blink |
| 712 | 712 |
| 713 #ifndef NDEBUG | 713 #ifndef NDEBUG |
| 714 // Outside the WebCore namespace for ease of invocation from gdb. | 714 // Outside the WebCore namespace for ease of invocation from gdb. |
| 715 void showLayerTree(const blink::DeprecatedPaintLayer*); | 715 void showLayerTree(const blink::DeprecatedPaintLayer*); |
| 716 void showLayerTree(const blink::LayoutObject*); | 716 void showLayerTree(const blink::LayoutObject*); |
| 717 #endif | 717 #endif |
| 718 | 718 |
| 719 #endif // Layer_h | 719 #endif // Layer_h |
| OLD | NEW |