Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1010)

Unified Diff: Source/core/layout/svg/LayoutSVGTransformableContainer.cpp

Issue 1337063002: Rename LayoutSVGTransformableContainer::m_lastTranslation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/layout/svg/LayoutSVGTransformableContainer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/LayoutSVGTransformableContainer.cpp
diff --git a/Source/core/layout/svg/LayoutSVGTransformableContainer.cpp b/Source/core/layout/svg/LayoutSVGTransformableContainer.cpp
index b6be2cac47277b72348628542a30fc795c23fea2..6cbe5996e61d6abf1db70831d6c829ac96ffe3be 100644
--- a/Source/core/layout/svg/LayoutSVGTransformableContainer.cpp
+++ b/Source/core/layout/svg/LayoutSVGTransformableContainer.cpp
@@ -91,9 +91,9 @@ bool LayoutSVGTransformableContainer::calculateLocalTransform()
FloatSize translation(
useElement->x()->currentValue()->value(lengthContext),
useElement->y()->currentValue()->value(lengthContext));
- if (translation != m_lastTranslation)
+ if (translation != m_additionalTranslation)
m_needsTransformUpdate = true;
- m_lastTranslation = translation;
+ m_additionalTranslation = translation;
}
m_didTransformToRootUpdate = m_needsTransformUpdate || SVGLayoutSupport::transformToRootChanged(parent());
@@ -101,7 +101,7 @@ bool LayoutSVGTransformableContainer::calculateLocalTransform()
return false;
m_localTransform = element->calculateAnimatedLocalTransform();
- m_localTransform.translate(m_lastTranslation.width(), m_lastTranslation.height());
+ m_localTransform.translate(m_additionalTranslation.width(), m_additionalTranslation.height());
m_needsTransformUpdate = false;
return true;
}
« no previous file with comments | « Source/core/layout/svg/LayoutSVGTransformableContainer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698