diff options
Diffstat (limited to 'WebCore/svg/SVGMaskElement.cpp')
-rw-r--r-- | WebCore/svg/SVGMaskElement.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/WebCore/svg/SVGMaskElement.cpp b/WebCore/svg/SVGMaskElement.cpp index 4f245ce..78c3732 100644 --- a/WebCore/svg/SVGMaskElement.cpp +++ b/WebCore/svg/SVGMaskElement.cpp @@ -38,11 +38,8 @@ using namespace std; namespace WebCore { -SVGMaskElement::SVGMaskElement(const QualifiedName& tagName, Document* doc) - : SVGStyledLocatableElement(tagName, doc) - , SVGTests() - , SVGLangSpace() - , SVGExternalResourcesRequired() +inline SVGMaskElement::SVGMaskElement(const QualifiedName& tagName, Document* document) + : SVGStyledLocatableElement(tagName, document) , m_maskUnits(SVGUnitTypes::SVG_UNIT_TYPE_OBJECTBOUNDINGBOX) , m_maskContentUnits(SVGUnitTypes::SVG_UNIT_TYPE_USERSPACEONUSE) , m_x(LengthModeWidth, "-10%") @@ -54,8 +51,9 @@ SVGMaskElement::SVGMaskElement(const QualifiedName& tagName, Document* doc) // Spec: If the width/height attribute is not specified, the effect is as if a value of "120%" were specified. } -SVGMaskElement::~SVGMaskElement() +PassRefPtr<SVGMaskElement> SVGMaskElement::create(const QualifiedName& tagName, Document* document) { + return adoptRef(new SVGMaskElement(tagName, document)); } void SVGMaskElement::parseMappedAttribute(Attribute* attr) |