OSDN Git Service

Merge WebKit at r71558: Initial merge by git.
[android-x86/external-webkit.git] / WebCore / svg / SVGSVGElement.cpp
index 2354b27..314f522 100644 (file)
@@ -213,14 +213,14 @@ void SVGSVGElement::setCurrentScale(float scale)
         RenderSVGResource::markForLayoutAndParentResourceInvalidation(object);
 }
 
-FloatPoint SVGSVGElement::currentTranslate() const
+void SVGSVGElement::setCurrentTranslate(const FloatPoint& translation)
 {
-    return m_translation;
+    m_translation = translation;
+    updateCurrentTranslate();
 }
 
-void SVGSVGElement::setCurrentTranslate(const FloatPoint &translation)
+void SVGSVGElement::updateCurrentTranslate()
 {
-    m_translation = translation;
     if (RenderObject* object = renderer())
         object->setNeedsLayout(true);