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)
: SVGStyledElement(tagName, document)
{
}
SVGElement* SVGStyledLocatableElement::nearestViewportElement() const
{
return SVGLocatable::nearestViewportElement(this);
}
SVGElement* SVGStyledLocatableElement::farthestViewportElement() const
{
return SVGLocatable::farthestViewportElement(this);
}
FloatRect SVGStyledLocatableElement::getBBox(StyleUpdateStrategy styleUpdateStrategy) const
{
return SVGLocatable::getBBox(this, styleUpdateStrategy);
}
AffineTransform SVGStyledLocatableElement::getCTM(StyleUpdateStrategy styleUpdateStrategy) const
{
return SVGLocatable::computeCTM(this, SVGLocatable::NearestViewportScope, styleUpdateStrategy);
}
AffineTransform SVGStyledLocatableElement::getScreenCTM(StyleUpdateStrategy styleUpdateStrategy) const
{
return SVGLocatable::computeCTM(this, SVGLocatable::ScreenScope, styleUpdateStrategy);
}
}
#endif // ENABLE(SVG)