| 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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 // resulting transform has transform-origin baked in. If the layer does not
have a transform, | 395 // resulting transform has transform-origin baked in. If the layer does not
have a transform, |
| 396 // returns the identity matrix. | 396 // returns the identity matrix. |
| 397 TransformationMatrix currentTransform() const; | 397 TransformationMatrix currentTransform() const; |
| 398 TransformationMatrix renderableTransform(GlobalPaintFlags) const; | 398 TransformationMatrix renderableTransform(GlobalPaintFlags) const; |
| 399 | 399 |
| 400 // Get the perspective transform, which is applied to transformed sublayers. | 400 // Get the perspective transform, which is applied to transformed sublayers. |
| 401 // Returns true if the layer has a -webkit-perspective. | 401 // Returns true if the layer has a -webkit-perspective. |
| 402 // Note that this transform does not have the perspective-origin baked in. | 402 // Note that this transform does not have the perspective-origin baked in. |
| 403 TransformationMatrix perspectiveTransform() const; | 403 TransformationMatrix perspectiveTransform() const; |
| 404 FloatPoint perspectiveOrigin() const; | 404 FloatPoint perspectiveOrigin() const; |
| 405 bool preserves3D() const { return layoutObject()->style()->transformStyle3D(
) == TransformStyle3DPreserve3D; } | 405 bool preserves3D() const { return layoutObject()->style()->preserves3D(); } |
| 406 bool has3DTransform() const { return m_rareData && m_rareData->transform &&
!m_rareData->transform->isAffine(); } | 406 bool has3DTransform() const { return m_rareData && m_rareData->transform &&
!m_rareData->transform->isAffine(); } |
| 407 | 407 |
| 408 // FIXME: reflections should force transform-style to be flat in the style:
https://bugs.webkit.org/show_bug.cgi?id=106959 | 408 // FIXME: reflections should force transform-style to be flat in the style:
https://bugs.webkit.org/show_bug.cgi?id=106959 |
| 409 bool shouldPreserve3D() const { return !layoutObject()->hasReflection() && l
ayoutObject()->style()->transformStyle3D() == TransformStyle3DPreserve3D; } | 409 bool shouldPreserve3D() const { return !layoutObject()->hasReflection() && l
ayoutObject()->style()->preserves3D(); } |
| 410 | 410 |
| 411 void filterNeedsPaintInvalidation(); | 411 void filterNeedsPaintInvalidation(); |
| 412 | 412 |
| 413 // Returns |true| if any property that renders using filter operations is | 413 // Returns |true| if any property that renders using filter operations is |
| 414 // used (including, but not limited to, 'filter'). | 414 // used (including, but not limited to, 'filter'). |
| 415 bool hasFilterInducingProperty() const { return layoutObject()->hasFilterInd
ucingProperty(); } | 415 bool hasFilterInducingProperty() const { return layoutObject()->hasFilterInd
ucingProperty(); } |
| 416 | 416 |
| 417 void* operator new(size_t); | 417 void* operator new(size_t); |
| 418 // Only safe to call from LayoutBoxModelObject::destroyLayer() | 418 // Only safe to call from LayoutBoxModelObject::destroyLayer() |
| 419 void operator delete(void*); | 419 void operator delete(void*); |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 896 | 896 |
| 897 } // namespace blink | 897 } // namespace blink |
| 898 | 898 |
| 899 #ifndef NDEBUG | 899 #ifndef NDEBUG |
| 900 // Outside the WebCore namespace for ease of invocation from gdb. | 900 // Outside the WebCore namespace for ease of invocation from gdb. |
| 901 void showLayerTree(const blink::PaintLayer*); | 901 void showLayerTree(const blink::PaintLayer*); |
| 902 void showLayerTree(const blink::LayoutObject*); | 902 void showLayerTree(const blink::LayoutObject*); |
| 903 #endif | 903 #endif |
| 904 | 904 |
| 905 #endif // Layer_h | 905 #endif // Layer_h |
| OLD | NEW |