summaryrefslogtreecommitdiffstats
path: root/WebCore/svg/SVGLocatable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/svg/SVGLocatable.cpp')
-rw-r--r--WebCore/svg/SVGLocatable.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/WebCore/svg/SVGLocatable.cpp b/WebCore/svg/SVGLocatable.cpp
index 956a4f9..002bf28 100644
--- a/WebCore/svg/SVGLocatable.cpp
+++ b/WebCore/svg/SVGLocatable.cpp
@@ -25,7 +25,7 @@
#include "SVGLocatable.h"
-#include "AffineTransform.h"
+#include "TransformationMatrix.h"
#include "RenderPath.h"
#include "SVGException.h"
#include "SVGSVGElement.h"
@@ -98,18 +98,18 @@ FloatRect SVGLocatable::getBBox(const SVGElement* e)
return bboxRect;
}
-AffineTransform SVGLocatable::getCTM(const SVGElement* element)
+TransformationMatrix SVGLocatable::getCTM(const SVGElement* element)
{
if (!element)
- return AffineTransform();
+ return TransformationMatrix();
- AffineTransform ctm;
+ TransformationMatrix ctm;
Node* parent = element->parentNode();
if (parent && parent->isSVGElement()) {
SVGElement* parentElement = static_cast<SVGElement*>(parent);
if (parentElement && parentElement->isStyledLocatable()) {
- AffineTransform parentCTM = static_cast<SVGStyledLocatableElement*>(parentElement)->getCTM();
+ TransformationMatrix parentCTM = static_cast<SVGStyledLocatableElement*>(parentElement)->getCTM();
ctm = parentCTM * ctm;
}
}
@@ -117,18 +117,18 @@ AffineTransform SVGLocatable::getCTM(const SVGElement* element)
return ctm;
}
-AffineTransform SVGLocatable::getScreenCTM(const SVGElement* element)
+TransformationMatrix SVGLocatable::getScreenCTM(const SVGElement* element)
{
if (!element)
- return AffineTransform();
+ return TransformationMatrix();
- AffineTransform ctm;
+ TransformationMatrix ctm;
Node* parent = element->parentNode();
if (parent && parent->isSVGElement()) {
SVGElement* parentElement = static_cast<SVGElement*>(parent);
if (parentElement && parentElement->isStyledLocatable()) {
- AffineTransform parentCTM = static_cast<SVGStyledLocatableElement*>(parentElement)->getScreenCTM();
+ TransformationMatrix parentCTM = static_cast<SVGStyledLocatableElement*>(parentElement)->getScreenCTM();
ctm = parentCTM * ctm;
}
}
@@ -136,12 +136,12 @@ AffineTransform SVGLocatable::getScreenCTM(const SVGElement* element)
return ctm;
}
-AffineTransform SVGLocatable::getTransformToElement(SVGElement* target, ExceptionCode& ec) const
+TransformationMatrix SVGLocatable::getTransformToElement(SVGElement* target, ExceptionCode& ec) const
{
- AffineTransform ctm = getCTM();
+ TransformationMatrix ctm = getCTM();
if (target && target->isStyledLocatable()) {
- AffineTransform targetCTM = static_cast<SVGStyledLocatableElement*>(target)->getCTM();
+ TransformationMatrix targetCTM = static_cast<SVGStyledLocatableElement*>(target)->getCTM();
if (!targetCTM.isInvertible()) {
ec = SVGException::SVG_MATRIX_NOT_INVERTABLE;
return ctm;