Index: WebCore/rendering/RenderObject.cpp |
=================================================================== |
--- WebCore/rendering/RenderObject.cpp (revision 68301) |
+++ WebCore/rendering/RenderObject.cpp (working copy) |
@@ -1988,10 +1988,10 @@ |
transform.multLeft(layer->currentTransform()); |
#if ENABLE(3D_RENDERING) |
- if (containerObject && containerObject->isBox() && containerObject->hasLayer() && containerObject->style()->hasPerspective()) { |
+ if (containerObject && containerObject->hasLayer() && containerObject->style()->hasPerspective()) { |
// Perpsective on the container affects us, so we have to factor it in here. |
ASSERT(containerObject->hasLayer()); |
- FloatPoint perspectiveOrigin = toRenderBox(containerObject)->layer()->perspectiveOrigin(); |
+ FloatPoint perspectiveOrigin = toRenderBoxModelObject(containerObject)->layer()->perspectiveOrigin(); |
TransformationMatrix perspectiveMatrix; |
perspectiveMatrix.applyPerspective(containerObject->style()->perspective()); |