SVGStyledLocatableElement.cpp [plain text]
#include "config.h"
#if ENABLE(SVG)
#include "SVGStyledLocatableElement.h"
#include "AffineTransform.h"
#include "SVGElement.h"
#include "SVGSVGElement.h"
namespace WebCore {
SVGStyledLocatableElement::SVGStyledLocatableElement(const QualifiedName& tagName, Document* document, ConstructionType constructionType)
: SVGStyledElement(tagName, document, constructionType)
{
}
SVGElement* SVGStyledLocatableElement::nearestViewportElement() const
{
return SVGLocatable::nearestViewportElement(this);
}
SVGElement* SVGStyledLocatableElement::farthestViewportElement() const
{
return SVGLocatable::farthestViewportElement(this);
}
FloatRect SVGStyledLocatableElement::getBBox(StyleUpdateStrategy styleUpdateStrategy)
{
return SVGLocatable::getBBox(this, styleUpdateStrategy);
}
AffineTransform SVGStyledLocatableElement::getCTM(StyleUpdateStrategy styleUpdateStrategy)
{
return SVGLocatable::computeCTM(this, SVGLocatable::NearestViewportScope, styleUpdateStrategy);
}
AffineTransform SVGStyledLocatableElement::getScreenCTM(StyleUpdateStrategy styleUpdateStrategy)
{
return SVGLocatable::computeCTM(this, SVGLocatable::ScreenScope, styleUpdateStrategy);
}
}
#endif // ENABLE(SVG)