summaryrefslogtreecommitdiff
path: root/src/3rdparty/webkit/WebCore/svg/SVGAnimateTransformElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/webkit/WebCore/svg/SVGAnimateTransformElement.cpp')
-rw-r--r--src/3rdparty/webkit/WebCore/svg/SVGAnimateTransformElement.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/3rdparty/webkit/WebCore/svg/SVGAnimateTransformElement.cpp b/src/3rdparty/webkit/WebCore/svg/SVGAnimateTransformElement.cpp
index 3ebba06313..8e077a4daa 100644
--- a/src/3rdparty/webkit/WebCore/svg/SVGAnimateTransformElement.cpp
+++ b/src/3rdparty/webkit/WebCore/svg/SVGAnimateTransformElement.cpp
@@ -27,6 +27,7 @@
#if ENABLE(SVG) && ENABLE(SVG_ANIMATION)
#include "SVGAnimateTransformElement.h"
+#include "AffineTransform.h"
#include "MappedAttribute.h"
#include "RenderObject.h"
#include "SVGAngle.h"
@@ -38,7 +39,6 @@
#include "SVGTransform.h"
#include "SVGTransformList.h"
#include "SVGUseElement.h"
-#include "TransformationMatrix.h"
#include <math.h>
#include <wtf/MathExtras.h>
@@ -163,16 +163,16 @@ void SVGAnimateTransformElement::applyResultsToTarget()
targetElement->renderer()->setNeedsLayout(true);
// ...except in case where we have additional instances in <use> trees.
- HashSet<SVGElementInstance*> instances = targetElement->instancesForElement();
+ const HashSet<SVGElementInstance*>& instances = targetElement->instancesForElement();
RefPtr<SVGTransformList> transformList = transformListFor(targetElement);
- HashSet<SVGElementInstance*>::iterator end = instances.end();
- for (HashSet<SVGElementInstance*>::iterator it = instances.begin(); it != end; ++it) {
+ const HashSet<SVGElementInstance*>::const_iterator end = instances.end();
+ for (HashSet<SVGElementInstance*>::const_iterator it = instances.begin(); it != end; ++it) {
SVGElement* shadowTreeElement = (*it)->shadowTreeElement();
ASSERT(shadowTreeElement);
if (shadowTreeElement->isStyledTransformable())
- static_cast<SVGStyledTransformableElement*>(shadowTreeElement)->setTransform(transformList.get());
+ static_cast<SVGStyledTransformableElement*>(shadowTreeElement)->setTransformBaseValue(transformList.get());
else if (shadowTreeElement->hasTagName(SVGNames::textTag))
- static_cast<SVGTextElement*>(shadowTreeElement)->setTransform(transformList.get());
+ static_cast<SVGTextElement*>(shadowTreeElement)->setTransformBaseValue(transformList.get());
if (shadowTreeElement->renderer())
shadowTreeElement->renderer()->setNeedsLayout(true);
}