BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGGraphicsElement)
REGISTER_LOCAL_ANIMATED_PROPERTY(transform)
REGISTER_PARENT_ANIMATED_PROPERTIES(SVGElement)
- REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTests)
END_REGISTER_ANIMATED_PROPERTIES
SVGGraphicsElement::SVGGraphicsElement(const QualifiedName& tagName, Document& document, ConstructionType constructionType)
: SVGElement(tagName, document, constructionType)
+ , SVGTests(this)
{
registerAnimatedPropertiesForSVGGraphicsElement();
}
return SVGRectTearOff::create(SVGRect::create(getBBox()), 0, PropertyIsNotAnimVal);
}
-FloatRect SVGGraphicsElement::getStrokeBBox()
-{
- document().updateLayoutIgnorePendingStylesheets();
-
- // FIXME: Eventually we should support getStrokeBBox for detached elements.
- if (!renderer())
- return FloatRect();
-
- return renderer()->strokeBoundingBox();
-}
-
-PassRefPtr<SVGRectTearOff> SVGGraphicsElement::getStrokeBBoxFromJavascript()
-{
- return SVGRectTearOff::create(SVGRect::create(getStrokeBBox()), 0, PropertyIsNotAnimVal);
-}
-
RenderObject* SVGGraphicsElement::createRenderer(RenderStyle*)
{
// By default, any subclass is expected to do path-based drawing