Index: Source/core/rendering/svg/RenderSVGForeignObject.cpp |
diff --git a/Source/core/rendering/svg/RenderSVGForeignObject.cpp b/Source/core/rendering/svg/RenderSVGForeignObject.cpp |
index e6a16c8330bd85dbc52949eb932285db2dc3cd39..632e80509d4960de2970dbbeecdc0ae9c4a485f8 100644 |
--- a/Source/core/rendering/svg/RenderSVGForeignObject.cpp |
+++ b/Source/core/rendering/svg/RenderSVGForeignObject.cpp |
@@ -137,8 +137,8 @@ void RenderSVGForeignObject::layout() |
// Cache viewport boundaries |
SVGLengthContext lengthContext(foreign); |
- FloatPoint viewportLocation(foreign->x().value(lengthContext), foreign->y().value(lengthContext)); |
- m_viewport = FloatRect(viewportLocation, FloatSize(foreign->width().value(lengthContext), foreign->height().value(lengthContext))); |
+ FloatPoint viewportLocation(foreign->xCurrentValue().value(lengthContext), foreign->yCurrentValue().value(lengthContext)); |
+ m_viewport = FloatRect(viewportLocation, FloatSize(foreign->widthCurrentValue().value(lengthContext), foreign->heightCurrentValue().value(lengthContext))); |
if (!updateCachedBoundariesInParents) |
updateCachedBoundariesInParents = oldViewport != m_viewport; |