Commit 3cbd5cb5 authored by darin@apple.com's avatar darin@apple.com

2010-08-29 Darin Adler <darin@apple.com>

        Reviewed by Maciej Stachowiak.

        Create SVG and WML elements with create functions instead of direct invocations of new
        https://bugs.webkit.org/show_bug.cgi?id=44851

        Added the create functions, made some existing constructors protected and private,
        made some other member functions protected and and private, added some missing virtual
        keywords for clarity to functions that already were overriding virtual functions,
        fixed some inconsistent indentation, and removed some unneeded empty destructors.

        In the future, it will be good to have the constructors all be private so we don't
        use them by accident. Then we'll change the reference count rule globally and add
        all the necessary calls to adoptRef.

        The SVG changes are compiled and tested. The WML changes are speculative and untested.

        * dom/make_names.pl: Removed supportfor the createWithNew keyword.
        * svg/svgtags.in: Removed all the createWithNew keywords.
        * wml/WMLTagNames.in: Ditto.

        * svg/SVGAElement.cpp:
        (WebCore::SVGAElement::create): Added.
        * svg/SVGAElement.h:
        * svg/SVGAltGlyphElement.cpp:
        (WebCore::SVGAltGlyphElement::create): Added.
        * svg/SVGAltGlyphElement.h:
        * svg/SVGAnimateColorElement.cpp:
        (WebCore::SVGAnimateColorElement::create): Added.
        * svg/SVGAnimateColorElement.h:
        * svg/SVGAnimateElement.cpp:
        (WebCore::SVGAnimateElement::create): Added.
        * svg/SVGAnimateElement.h:
        * svg/SVGAnimateMotionElement.cpp:
        (WebCore::SVGAnimateMotionElement::create): Added.
        * svg/SVGAnimateMotionElement.h:
        * svg/SVGAnimateTransformElement.cpp:
        (WebCore::SVGAnimateTransformElement::create): Added.
        * svg/SVGAnimateTransformElement.h:
        * svg/SVGCircleElement.cpp:
        (WebCore::SVGCircleElement::create): Added.
        * svg/SVGCircleElement.h:
        * svg/SVGClipPathElement.cpp:
        (WebCore::SVGClipPathElement::create): Added.
        * svg/SVGClipPathElement.h:
        * svg/SVGCursorElement.cpp:
        (WebCore::SVGCursorElement::create): Added.
        * svg/SVGCursorElement.h:
        * svg/SVGDefsElement.cpp:
        (WebCore::SVGDefsElement::create): Added.
        * svg/SVGDefsElement.h:
        * svg/SVGDescElement.cpp:
        (WebCore::SVGDescElement::create): Added.
        * svg/SVGDescElement.h:
        * svg/SVGEllipseElement.cpp:
        (WebCore::SVGEllipseElement::create): Added.
        * svg/SVGEllipseElement.h:
        * svg/SVGFEBlendElement.cpp:
        (WebCore::SVGFEBlendElement::create): Added.
        * svg/SVGFEBlendElement.h:
        * svg/SVGFEColorMatrixElement.cpp:
        (WebCore::SVGFEColorMatrixElement::create): Added.
        * svg/SVGFEColorMatrixElement.h:
        * svg/SVGFEComponentTransferElement.cpp:
        (WebCore::SVGFEComponentTransferElement::create): Added.
        * svg/SVGFEComponentTransferElement.h:
        * svg/SVGFECompositeElement.cpp:
        (WebCore::SVGFECompositeElement::create): Added.
        * svg/SVGFECompositeElement.h:
        * svg/SVGFEConvolveMatrixElement.cpp:
        (WebCore::SVGFEConvolveMatrixElement::create): Added.
        * svg/SVGFEConvolveMatrixElement.h:
        * svg/SVGFEDiffuseLightingElement.cpp:
        (WebCore::SVGFEDiffuseLightingElement::create): Added.
        * svg/SVGFEDiffuseLightingElement.h:
        * svg/SVGFEDisplacementMapElement.cpp:
        (WebCore::SVGFEDisplacementMapElement::create): Added.
        * svg/SVGFEDisplacementMapElement.h:
        * svg/SVGFEDistantLightElement.cpp:
        (WebCore::SVGFEDistantLightElement::create): Added.
        * svg/SVGFEDistantLightElement.h:
        * svg/SVGFEFloodElement.cpp:
        (WebCore::SVGFEFloodElement::create): Added.
        * svg/SVGFEFloodElement.h:
        * svg/SVGFEFuncAElement.cpp:
        (WebCore::SVGFEFuncAElement::create): Added.
        * svg/SVGFEFuncAElement.h:
        * svg/SVGFEFuncBElement.cpp:
        (WebCore::SVGFEFuncBElement::create): Added.
        * svg/SVGFEFuncBElement.h:
        * svg/SVGFEFuncGElement.cpp:
        (WebCore::SVGFEFuncGElement::create): Added.
        * svg/SVGFEFuncGElement.h:
        * svg/SVGFEFuncRElement.cpp:
        (WebCore::SVGFEFuncRElement::create): Added.
        * svg/SVGFEFuncRElement.h:
        * svg/SVGFEGaussianBlurElement.cpp:
        (WebCore::SVGFEGaussianBlurElement::create): Added.
        * svg/SVGFEGaussianBlurElement.h:
        * svg/SVGFEImageElement.cpp:
        (WebCore::SVGFEImageElement::create): Added.
        * svg/SVGFEImageElement.h:
        * svg/SVGFEMergeElement.cpp:
        (WebCore::SVGFEMergeElement::create): Added.
        * svg/SVGFEMergeElement.h:
        * svg/SVGFEMergeNodeElement.cpp:
        (WebCore::SVGFEMergeNodeElement::create): Added.
        * svg/SVGFEMergeNodeElement.h:
        * svg/SVGFEMorphologyElement.cpp:
        (WebCore::SVGFEMorphologyElement::create): Added.
        * svg/SVGFEMorphologyElement.h:
        * svg/SVGFEOffsetElement.cpp:
        (WebCore::SVGFEOffsetElement::create): Added.
        * svg/SVGFEOffsetElement.h:
        * svg/SVGFEPointLightElement.cpp:
        (WebCore::SVGFEPointLightElement::create): Added.
        * svg/SVGFEPointLightElement.h:
        * svg/SVGFESpecularLightingElement.cpp:
        (WebCore::SVGFESpecularLightingElement::create): Added.
        * svg/SVGFESpecularLightingElement.h:
        * svg/SVGFESpotLightElement.cpp:
        (WebCore::SVGFESpotLightElement::create): Added.
        * svg/SVGFESpotLightElement.h:
        * svg/SVGFETileElement.cpp:
        (WebCore::SVGFETileElement::create): Added.
        * svg/SVGFETileElement.h:
        * svg/SVGFETurbulenceElement.cpp:
        (WebCore::SVGFETurbulenceElement::create): Added.
        * svg/SVGFETurbulenceElement.h:
        * svg/SVGFilterElement.cpp:
        (WebCore::SVGFilterElement::create): Added.
        * svg/SVGFilterElement.h:
        * svg/SVGFontElement.cpp:
        (WebCore::SVGFontElement::create): Added.
        * svg/SVGFontElement.h:
        * svg/SVGFontFaceElement.cpp:
        (WebCore::SVGFontFaceElement::create): Added.
        * svg/SVGFontFaceElement.h:
        * svg/SVGFontFaceFormatElement.cpp:
        (WebCore::SVGFontFaceFormatElement::create): Added.
        * svg/SVGFontFaceFormatElement.h:
        * svg/SVGFontFaceNameElement.cpp:
        (WebCore::SVGFontFaceNameElement::create): Added.
        * svg/SVGFontFaceNameElement.h:
        * svg/SVGFontFaceSrcElement.cpp:
        (WebCore::SVGFontFaceSrcElement::create): Added.
        * svg/SVGFontFaceSrcElement.h:
        * svg/SVGFontFaceUriElement.cpp:
        (WebCore::SVGFontFaceUriElement::create): Added.
        * svg/SVGFontFaceUriElement.h:
        * svg/SVGForeignObjectElement.cpp:
        (WebCore::SVGForeignObjectElement::create): Added.
        * svg/SVGForeignObjectElement.h:
        * svg/SVGGElement.cpp:
        (WebCore::SVGGElement::create): Added.
        * svg/SVGGElement.h:
        * svg/SVGGlyphElement.cpp:
        (WebCore::SVGGlyphElement::create): Added.
        * svg/SVGGlyphElement.h:
        * svg/SVGHKernElement.cpp:
        (WebCore::SVGHKernElement::create): Added.
        * svg/SVGHKernElement.h:
        * svg/SVGImageElement.cpp:
        (WebCore::SVGImageElement::create): Added.
        * svg/SVGImageElement.h:
        * svg/SVGLineElement.cpp:
        (WebCore::SVGLineElement::create): Added.
        * svg/SVGLineElement.h:
        * svg/SVGLinearGradientElement.cpp:
        (WebCore::SVGLinearGradientElement::create): Added.
        * svg/SVGLinearGradientElement.h:
        * svg/SVGMPathElement.cpp:
        (WebCore::SVGMPathElement::create): Added.
        * svg/SVGMPathElement.h:
        * svg/SVGMarkerElement.cpp:
        (WebCore::SVGMarkerElement::create): Added.
        * svg/SVGMarkerElement.h:
        * svg/SVGMaskElement.cpp:
        (WebCore::SVGMaskElement::create): Added.
        * svg/SVGMaskElement.h:
        * svg/SVGMetadataElement.cpp:
        (SVGMetadataElement::create): Added.
        * svg/SVGMetadataElement.h:
        * svg/SVGMissingGlyphElement.cpp:
        (WebCore::SVGMissingGlyphElement::create): Added.
        * svg/SVGMissingGlyphElement.h:
        * svg/SVGPathElement.cpp:
        (WebCore::SVGPathElement::create): Added.
        * svg/SVGPathElement.h:
        * svg/SVGPatternElement.cpp:
        (WebCore::SVGPatternElement::create): Added.
        * svg/SVGPatternElement.h:
        * svg/SVGPolygonElement.cpp:
        (WebCore::SVGPolygonElement::create): Added.
        * svg/SVGPolygonElement.h:
        * svg/SVGPolylineElement.cpp:
        (WebCore::SVGPolylineElement::create): Added.
        * svg/SVGPolylineElement.h:
        * svg/SVGRadialGradientElement.cpp:
        (WebCore::SVGRadialGradientElement::create): Added.
        * svg/SVGRadialGradientElement.h:
        * svg/SVGRectElement.cpp:
        (WebCore::SVGRectElement::create): Added.
        * svg/SVGRectElement.h:
        * svg/SVGSVGElement.cpp:
        (WebCore::SVGSVGElement::create): Added.
        * svg/SVGSVGElement.h:
        * svg/SVGScriptElement.cpp:
        (WebCore::SVGScriptElement::create): Added.
        * svg/SVGScriptElement.h:
        * svg/SVGSetElement.cpp:
        (WebCore::SVGSetElement::create): Added.
        * svg/SVGSetElement.h:
        * svg/SVGStopElement.cpp:
        (WebCore::SVGStopElement::create): Added.
        * svg/SVGStopElement.h:
        (WebCore::SVGStyleElement::create): Added.
        * svg/SVGStyleElement.h:
        * svg/SVGSwitchElement.cpp:
        (WebCore::SVGSwitchElement::create): Added.
        * svg/SVGSwitchElement.h:
        * svg/SVGSymbolElement.cpp:
        (WebCore::SVGSymbolElement::create): Added.
        * svg/SVGSymbolElement.h:
        * svg/SVGTRefElement.cpp:
        (WebCore::SVGTRefElement::create): Added.
        * svg/SVGTRefElement.h:
        * svg/SVGTSpanElement.cpp:
        (WebCore::SVGTSpanElement::create): Added.
        * svg/SVGTSpanElement.h:
        * svg/SVGTextContentElement.h:
        * svg/SVGTextElement.cpp:
        (WebCore::SVGTextElement::create): Added.
        * svg/SVGTextElement.h:
        * svg/SVGTextPathElement.cpp:
        (WebCore::SVGTextPathElement::create): Added.
        * svg/SVGTextPathElement.h:
        * svg/SVGTextPositioningElement.h:
        * svg/SVGTitleElement.cpp:
        (WebCore::SVGTitleElement::create): Added.
        * svg/SVGTitleElement.h:
        * svg/SVGUseElement.cpp:
        (WebCore::SVGUseElement::create): Added.
        * svg/SVGUseElement.h:
        * svg/SVGVKernElement.cpp:
        (WebCore::SVGVKernElement::create): Added.
        * svg/SVGVKernElement.h:
        * svg/SVGViewElement.cpp:
        (WebCore::SVGViewElement::create): Added.
        * svg/SVGViewElement.h:
        * wml/WMLAElement.cpp:
        (WebCore::WMLAElement::create): Added.
        * wml/WMLAElement.h:
        * wml/WMLAccessElement.cpp:
        (WebCore::WMLAccessElement::create): Added.
        * wml/WMLAccessElement.h:
        * wml/WMLAnchorElement.cpp:
        (WebCore::WMLAnchorElement::create): Added.
        * wml/WMLAnchorElement.h:
        * wml/WMLBRElement.cpp:
        (WebCore::WMLBRElement::create): Added.
        * wml/WMLBRElement.h:
        * wml/WMLCardElement.cpp:
        (WebCore::WMLCardElement::create): Added.
        * wml/WMLCardElement.h:
        * wml/WMLDoElement.cpp:
        (WebCore::WMLDoElement::create): Added.
        * wml/WMLDoElement.h:
        * wml/WMLFieldSetElement.cpp:
        (WebCore::WMLFieldSetElement::create): Added.
        * wml/WMLFieldSetElement.h:
        * wml/WMLFormControlElement.cpp:
        (WebCore::WMLFormControlElement::create): Added.
        * wml/WMLGoElement.cpp:
        (WebCore::WMLGoElement::create): Added.
        * wml/WMLGoElement.h:
        * wml/WMLImageElement.cpp:
        (WebCore::WMLImageElement::create): Added.
        * wml/WMLImageElement.h:
        * wml/WMLInputElement.cpp:
        (WebCore::WMLInputElement::create): Added.
        * wml/WMLInputElement.h:
        * wml/WMLInsertedLegendElement.cpp:
        (WebCore::WMLInsertedLegendElement::create): Added.
        * wml/WMLInsertedLegendElement.h:
        * wml/WMLIntrinsicEvent.cpp:
        (WebCore::WMLIntrinsicEvent::create): Added.
        * wml/WMLMetaElement.cpp:
        (WebCore::WMLMetaElement::create): Added.
        * wml/WMLMetaElement.h:
        * wml/WMLNoopElement.cpp:
        (WebCore::WMLNoopElement::create): Added.
        * wml/WMLNoopElement.h:
        * wml/WMLOnEventElement.cpp:
        (WebCore::WMLOnEventElement::create): Added.
        * wml/WMLOnEventElement.h:
        * wml/WMLOptGroupElement.cpp:
        (WebCore::WMLOptGroupElement::create): Added.
        * wml/WMLOptGroupElement.h:
        * wml/WMLOptionElement.cpp:
        (WebCore::WMLOptionElement::create): Added.
        * wml/WMLOptionElement.h:
        * wml/WMLPElement.cpp:
        (WebCore::WMLPElement::create): Added.
        * wml/WMLPElement.h:
        * wml/WMLPostfieldElement.cpp:
        (WebCore::WMLPostfieldElement::create): Added.
        * wml/WMLPostfieldElement.h:
        * wml/WMLPrevElement.cpp:
        (WebCore::WMLPrevElement::create): Added.
        * wml/WMLPrevElement.h:
        * wml/WMLRefreshElement.cpp:
        (WebCore::WMLRefreshElement::create): Added.
        * wml/WMLRefreshElement.h:
        * wml/WMLSelectElement.cpp:
        (WebCore::WMLSelectElement::create): Added.
        * wml/WMLSelectElement.h:
        * wml/WMLSetvarElement.cpp:
        (WebCore::WMLSetvarElement::create): Added.
        * wml/WMLSetvarElement.h:
        * wml/WMLTableElement.cpp:
        (WebCore::WMLTableElement::create): Added.
        * wml/WMLTableElement.h:
        * wml/WMLTaskElement.cpp:
        (WebCore::WMLTaskElement::create): Added.
        * wml/WMLTaskElement.h:
        * wml/WMLTemplateElement.cpp:
        (WebCore::WMLTemplateElement::create): Added.
        * wml/WMLTemplateElement.h:
        * wml/WMLTimerElement.cpp:
        (WebCore::WMLTimerElement::create): Added.
        * wml/WMLTimerElement.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66362 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 90a94dfc
This diff is collapsed.
......@@ -128,7 +128,6 @@ sub defaultTagPropertyHash
return (
'constructorNeedsCreatedByParser' => 0,
'constructorNeedsFormElement' => 0,
'createWithNew' => 0,
'interfaceName' => defaultInterfaceName($_[0]),
# By default, the JSInterfaceName is the same as the interfaceName.
'JSInterfaceName' => defaultInterfaceName($_[0]),
......@@ -317,16 +316,8 @@ END
;
}
my $newPrefix = "";
my $createSuffix = "::create";
if ($enabledTags{$tagName}{createWithNew}) {
$newPrefix = "new ";
$createSuffix = "";
}
# Call the constructor with the right parameters.
print F " return $newPrefix$interfaceName${createSuffix}($constructorTagName, document";
print F " return ${interfaceName}::create($constructorTagName, document";
print F ", formElement" if $enabledTags{$tagName}{constructorNeedsFormElement};
print F ", createdByParser" if $enabledTags{$tagName}{constructorNeedsCreatedByParser};
print F ");\n}\n\n";
......
......@@ -54,6 +54,11 @@ SVGAElement::SVGAElement(const QualifiedName& tagName, Document *doc)
{
}
PassRefPtr<SVGAElement> SVGAElement::create(const QualifiedName& tagName, Document* document)
{
return new SVGAElement(tagName, document);
}
SVGAElement::~SVGAElement()
{
}
......
......@@ -23,6 +23,7 @@
#define SVGAElement_h
#if ENABLE(SVG)
#include "SVGExternalResourcesRequired.h"
#include "SVGLangSpace.h"
#include "SVGStyledTransformableElement.h"
......@@ -37,9 +38,13 @@ namespace WebCore {
public SVGLangSpace,
public SVGExternalResourcesRequired {
public:
SVGAElement(const QualifiedName&, Document*);
static PassRefPtr<SVGAElement> create(const QualifiedName&, Document*);
virtual ~SVGAElement();
private:
SVGAElement(const QualifiedName&, Document*);
virtual bool isValid() const { return SVGTests::isValid(); }
virtual String title() const;
......@@ -59,7 +64,6 @@ namespace WebCore {
virtual bool childShouldCreateRenderer(Node*) const;
private:
DECLARE_ANIMATED_PROPERTY(SVGAElement, SVGNames::targetAttr, String, Target, target)
// SVGURIReference
......@@ -72,4 +76,5 @@ namespace WebCore {
} // namespace WebCore
#endif // ENABLE(SVG)
#endif // SVGAElement_h
......@@ -38,6 +38,11 @@ SVGAltGlyphElement::SVGAltGlyphElement(const QualifiedName& tagName, Document* d
{
}
PassRefPtr<SVGAltGlyphElement> SVGAltGlyphElement::create(const QualifiedName& tagName, Document* document)
{
return new SVGAltGlyphElement(tagName, document);
}
SVGAltGlyphElement::~SVGAltGlyphElement()
{
}
......
......@@ -34,13 +34,9 @@ namespace WebCore {
class SVGAltGlyphElement : public SVGTextPositioningElement,
public SVGURIReference {
public:
SVGAltGlyphElement(const QualifiedName&, Document*);
virtual ~SVGAltGlyphElement();
virtual void synchronizeProperty(const QualifiedName&);
static PassRefPtr<SVGAltGlyphElement> create(const QualifiedName&, Document*);
virtual RenderObject* createRenderer(RenderArena*, RenderStyle*);
bool childShouldCreateRenderer(Node*) const;
virtual ~SVGAltGlyphElement();
const AtomicString& glyphRef() const;
void setGlyphRef(const AtomicString&, ExceptionCode&);
......@@ -49,7 +45,14 @@ namespace WebCore {
SVGGlyphElement* glyphElement() const;
private:
private:
SVGAltGlyphElement(const QualifiedName&, Document*);
virtual void synchronizeProperty(const QualifiedName&);
virtual RenderObject* createRenderer(RenderArena*, RenderStyle*);
virtual bool childShouldCreateRenderer(Node*) const;
// SVGURIReference
DECLARE_ANIMATED_PROPERTY(SVGAltGlyphElement, XLinkNames::hrefAttr, String, Href, href)
};
......
......@@ -30,6 +30,11 @@ SVGAnimateColorElement::SVGAnimateColorElement(const QualifiedName& tagName, Doc
{
}
PassRefPtr<SVGAnimateColorElement> SVGAnimateColorElement::create(const QualifiedName& tagName, Document* document)
{
return new SVGAnimateColorElement(tagName, document);
}
}
// vim:ts=4:noet
......
......@@ -30,6 +30,8 @@ namespace WebCore {
// SVGAnimateElement implements superset of the functionality.
class SVGAnimateColorElement : public SVGAnimateElement {
public:
static PassRefPtr<SVGAnimateColorElement> create(const QualifiedName&, Document*);
SVGAnimateColorElement(const QualifiedName&, Document*);
};
......
......@@ -46,6 +46,11 @@ SVGAnimateElement::SVGAnimateElement(const QualifiedName& tagName, Document* doc
{
}
PassRefPtr<SVGAnimateElement> SVGAnimateElement::create(const QualifiedName& tagName, Document* document)
{
return new SVGAnimateElement(tagName, document);
}
SVGAnimateElement::~SVGAnimateElement()
{
}
......
......@@ -35,6 +35,8 @@ namespace WebCore {
class SVGAnimateElement : public SVGAnimationElement {
public:
static PassRefPtr<SVGAnimateElement> create(const QualifiedName&, Document*);
SVGAnimateElement(const QualifiedName&, Document*);
virtual ~SVGAnimateElement();
......
......@@ -47,6 +47,11 @@ SVGAnimateMotionElement::SVGAnimateMotionElement(const QualifiedName& tagName, D
{
}
PassRefPtr<SVGAnimateMotionElement> SVGAnimateMotionElement::create(const QualifiedName& tagName, Document* document)
{
return new SVGAnimateMotionElement(tagName, document);
}
SVGAnimateMotionElement::~SVGAnimateMotionElement()
{
}
......
......@@ -29,6 +29,8 @@ namespace WebCore {
class SVGAnimateMotionElement : public SVGAnimationElement {
public:
static PassRefPtr<SVGAnimateMotionElement> create(const QualifiedName&, Document*);
SVGAnimateMotionElement(const QualifiedName&, Document*);
virtual ~SVGAnimateMotionElement();
......
......@@ -53,6 +53,11 @@ SVGAnimateTransformElement::SVGAnimateTransformElement(const QualifiedName& tagN
{
}
PassRefPtr<SVGAnimateTransformElement> SVGAnimateTransformElement::create(const QualifiedName& tagName, Document* document)
{
return new SVGAnimateTransformElement(tagName, document);
}
SVGAnimateTransformElement::~SVGAnimateTransformElement()
{
}
......
......@@ -34,6 +34,8 @@ class AffineTransform;
class SVGAnimateTransformElement : public SVGAnimationElement {
public:
static PassRefPtr<SVGAnimateTransformElement> create(const QualifiedName&, Document*);
SVGAnimateTransformElement(const QualifiedName&, Document*);
virtual ~SVGAnimateTransformElement();
......
......@@ -43,6 +43,11 @@ SVGCircleElement::SVGCircleElement(const QualifiedName& tagName, Document* doc)
{
}
PassRefPtr<SVGCircleElement> SVGCircleElement::create(const QualifiedName& tagName, Document* document)
{
return new SVGCircleElement(tagName, document);
}
SVGCircleElement::~SVGCircleElement()
{
}
......
......@@ -34,6 +34,8 @@ namespace WebCore {
public SVGLangSpace,
public SVGExternalResourcesRequired {
public:
static PassRefPtr<SVGCircleElement> create(const QualifiedName&, Document*);
SVGCircleElement(const QualifiedName&, Document*);
virtual ~SVGCircleElement();
......
......@@ -43,6 +43,11 @@ SVGClipPathElement::SVGClipPathElement(const QualifiedName& tagName, Document* d
{
}
PassRefPtr<SVGClipPathElement> SVGClipPathElement::create(const QualifiedName& tagName, Document* document)
{
return new SVGClipPathElement(tagName, document);
}
SVGClipPathElement::~SVGClipPathElement()
{
}
......
......@@ -35,6 +35,8 @@ class SVGClipPathElement : public SVGStyledTransformableElement,
public SVGLangSpace,
public SVGExternalResourcesRequired {
public:
static PassRefPtr<SVGClipPathElement> create(const QualifiedName&, Document*);
SVGClipPathElement(const QualifiedName&, Document*);
virtual ~SVGClipPathElement();
......
......@@ -40,6 +40,11 @@ SVGCursorElement::SVGCursorElement(const QualifiedName& tagName, Document* doc)
{
}
PassRefPtr<SVGCursorElement> SVGCursorElement::create(const QualifiedName& tagName, Document* document)
{
return new SVGCursorElement(tagName, document);
}
SVGCursorElement::~SVGCursorElement()
{
HashSet<SVGElement*>::iterator end = m_clients.end();
......
......@@ -35,6 +35,8 @@ namespace WebCore {
public SVGExternalResourcesRequired,
public SVGURIReference {
public:
static PassRefPtr<SVGCursorElement> create(const QualifiedName&, Document*);
SVGCursorElement(const QualifiedName&, Document*);
virtual ~SVGCursorElement();
......
......@@ -35,6 +35,11 @@ SVGDefsElement::SVGDefsElement(const QualifiedName& tagName, Document* doc)
{
}
PassRefPtr<SVGDefsElement> SVGDefsElement::create(const QualifiedName& tagName, Document* document)
{
return new SVGDefsElement(tagName, document);
}
SVGDefsElement::~SVGDefsElement()
{
}
......
......@@ -34,6 +34,8 @@ namespace WebCore {
public SVGLangSpace,
public SVGExternalResourcesRequired {
public:
static PassRefPtr<SVGDefsElement> create(const QualifiedName&, Document*);
SVGDefsElement(const QualifiedName&, Document*);
virtual ~SVGDefsElement();
......
......@@ -30,6 +30,11 @@ SVGDescElement::SVGDescElement(const QualifiedName& tagName, Document *doc)
{
}
PassRefPtr<SVGDescElement> SVGDescElement::create(const QualifiedName& tagName, Document* document)
{
return new SVGDescElement(tagName, document);
}
SVGDescElement::~SVGDescElement()
{
}
......
......@@ -30,6 +30,8 @@ namespace WebCore {
class SVGDescElement : public SVGStyledElement,
public SVGLangSpace {
public:
static PassRefPtr<SVGDescElement> create(const QualifiedName&, Document*);
SVGDescElement(const QualifiedName&, Document*);
virtual ~SVGDescElement();
......
......@@ -44,6 +44,11 @@ SVGEllipseElement::SVGEllipseElement(const QualifiedName& tagName, Document* doc
{
}
PassRefPtr<SVGEllipseElement> SVGEllipseElement::create(const QualifiedName& tagName, Document* document)
{
return new SVGEllipseElement(tagName, document);
}
SVGEllipseElement::~SVGEllipseElement()
{
}
......
......@@ -34,6 +34,8 @@ namespace WebCore {
public SVGLangSpace,
public SVGExternalResourcesRequired {
public:
static PassRefPtr<SVGEllipseElement> create(const QualifiedName&, Document*);
SVGEllipseElement(const QualifiedName&, Document*);
virtual ~SVGEllipseElement();
......
......@@ -33,6 +33,11 @@ SVGFEBlendElement::SVGFEBlendElement(const QualifiedName& tagName, Document* doc
{
}
PassRefPtr<SVGFEBlendElement> SVGFEBlendElement::create(const QualifiedName& tagName, Document* document)
{
return new SVGFEBlendElement(tagName, document);
}
SVGFEBlendElement::~SVGFEBlendElement()
{
}
......
......@@ -28,6 +28,8 @@
namespace WebCore {
class SVGFEBlendElement : public SVGFilterPrimitiveStandardAttributes {
public:
static PassRefPtr<SVGFEBlendElement> create(const QualifiedName&, Document*);
SVGFEBlendElement(const QualifiedName&, Document*);
virtual ~SVGFEBlendElement();
......
......@@ -36,6 +36,11 @@ SVGFEColorMatrixElement::SVGFEColorMatrixElement(const QualifiedName& tagName, D
{
}
PassRefPtr<SVGFEColorMatrixElement> SVGFEColorMatrixElement::create(const QualifiedName& tagName, Document* document)
{
return new SVGFEColorMatrixElement(tagName, document);
}
SVGFEColorMatrixElement::~SVGFEColorMatrixElement()
{
}
......
......@@ -30,6 +30,8 @@ namespace WebCore {
class SVGFEColorMatrixElement : public SVGFilterPrimitiveStandardAttributes {
public:
static PassRefPtr<SVGFEColorMatrixElement> create(const QualifiedName&, Document*);
SVGFEColorMatrixElement(const QualifiedName&, Document*);
virtual ~SVGFEColorMatrixElement();
......
......@@ -38,6 +38,11 @@ SVGFEComponentTransferElement::SVGFEComponentTransferElement(const QualifiedName
{
}
PassRefPtr<SVGFEComponentTransferElement> SVGFEComponentTransferElement::create(const QualifiedName& tagName, Document* document)
{
return new SVGFEComponentTransferElement(tagName, document);
}
SVGFEComponentTransferElement::~SVGFEComponentTransferElement()
{
}
......
......@@ -29,6 +29,8 @@ namespace WebCore {
class SVGFEComponentTransferElement : public SVGFilterPrimitiveStandardAttributes {
public:
static PassRefPtr<SVGFEComponentTransferElement> create(const QualifiedName&, Document*);
SVGFEComponentTransferElement(const QualifiedName&, Document*);
virtual ~SVGFEComponentTransferElement();
......
......@@ -34,6 +34,11 @@ SVGFECompositeElement::SVGFECompositeElement(const QualifiedName& tagName, Docum
{
}
PassRefPtr<SVGFECompositeElement> SVGFECompositeElement::create(const QualifiedName& tagName, Document* document)
{
return new SVGFECompositeElement(tagName, document);
}
SVGFECompositeElement::~SVGFECompositeElement()
{
}
......
......@@ -29,6 +29,8 @@ namespace WebCore {
class SVGFECompositeElement : public SVGFilterPrimitiveStandardAttributes {
public:
static PassRefPtr<SVGFECompositeElement> create(const QualifiedName&, Document*);
SVGFECompositeElement(const QualifiedName&, Document*);
virtual ~SVGFECompositeElement();
......
......@@ -45,6 +45,11 @@ SVGFEConvolveMatrixElement::SVGFEConvolveMatrixElement(const QualifiedName& tagN
{
}
PassRefPtr<SVGFEConvolveMatrixElement> SVGFEConvolveMatrixElement::create(const QualifiedName& tagName, Document* document)
{
return new SVGFEConvolveMatrixElement(tagName, document);
}
SVGFEConvolveMatrixElement::~SVGFEConvolveMatrixElement()
{
}
......
......@@ -29,6 +29,8 @@ namespace WebCore {
class SVGFEConvolveMatrixElement : public SVGFilterPrimitiveStandardAttributes {
public:
static PassRefPtr<SVGFEConvolveMatrixElement> create(const QualifiedName&, Document*);
SVGFEConvolveMatrixElement(const QualifiedName&, Document*);
virtual ~SVGFEConvolveMatrixElement();
......
......@@ -42,6 +42,11 @@ SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement(const QualifiedName& ta
{
}
PassRefPtr<SVGFEDiffuseLightingElement> SVGFEDiffuseLightingElement::create(const QualifiedName& tagName, Document* document)
{
return new SVGFEDiffuseLightingElement(tagName, document);
}
SVGFEDiffuseLightingElement::~SVGFEDiffuseLightingElement()
{
}
......
......@@ -36,6 +36,8 @@ class SVGColor;
class SVGFEDiffuseLightingElement : public SVGFilterPrimitiveStandardAttributes {
public:
static PassRefPtr<SVGFEDiffuseLightingElement> create(const QualifiedName&, Document*);
SVGFEDiffuseLightingElement(const QualifiedName&, Document*);
virtual ~SVGFEDiffuseLightingElement();
......
......@@ -33,6 +33,11 @@ SVGFEDisplacementMapElement::SVGFEDisplacementMapElement(const QualifiedName& ta
{
}
PassRefPtr<SVGFEDisplacementMapElement> SVGFEDisplacementMapElement::create(const QualifiedName& tagName, Document* document)
{
return new SVGFEDisplacementMapElement(tagName, document);
}
SVGFEDisplacementMapElement::~SVGFEDisplacementMapElement()
{
}
......
......@@ -28,6 +28,8 @@ namespace WebCore {
class SVGFEDisplacementMapElement : public SVGFilterPrimitiveStandardAttributes {
public:
static PassRefPtr<SVGFEDisplacementMapElement> create(const QualifiedName&, Document*);
SVGFEDisplacementMapElement(const QualifiedName& tagName, Document*);
virtual ~SVGFEDisplacementMapElement();
......
......@@ -30,6 +30,11 @@ SVGFEDistantLightElement::SVGFEDistantLightElement(const QualifiedName& tagName,
{
}
PassRefPtr<SVGFEDistantLightElement> SVGFEDistantLightElement::create(const QualifiedName& tagName, Document* document)
{
return new SVGFEDistantLightElement(tagName, document);
}
SVGFEDistantLightElement::~SVGFEDistantLightElement()
{
}
......
......@@ -24,8 +24,11 @@
#include "SVGFELightElement.h"
namespace WebCore {
class SVGFEDistantLightElement : public SVGFELightElement {
public:
static PassRefPtr<SVGFEDistantLightElement> create(const QualifiedName&, Document*);
SVGFEDistantLightElement(const QualifiedName&, Document*);
virtual ~SVGFEDistantLightElement();
......
......@@ -34,6 +34,11 @@ SVGFEFloodElement::SVGFEFloodElement(const QualifiedName& tagName, Document* doc
{
}
PassRefPtr<SVGFEFloodElement> SVGFEFloodElement::create(const QualifiedName& tagName, Document* document)
{
return new SVGFEFloodElement(tagName, document);
}
SVGFEFloodElement::~SVGFEFloodElement()
{
}
......
......@@ -26,8 +26,11 @@
#include "SVGFilterPrimitiveStandardAttributes.h"
namespace WebCore {
class SVGFEFloodElement : public SVGFilterPrimitiveStandardAttributes {
public:
static PassRefPtr<SVGFEFloodElement> create(const QualifiedName&, Document*);
SVGFEFloodElement(const QualifiedName&, Document*);
virtual ~SVGFEFloodElement();
......
......@@ -30,6 +30,11 @@ SVGFEFuncAElement::SVGFEFuncAElement(const QualifiedName& tagName, Document* doc
{
}
PassRefPtr<SVGFEFuncAElement> SVGFEFuncAElement::create(const QualifiedName& tagName, Document* document)
{
return new SVGFEFuncAElement(tagName, document);
}
SVGFEFuncAElement::~SVGFEFuncAElement()
{
}
......
......@@ -25,8 +25,11 @@
#include "SVGComponentTransferFunctionElement.h"
namespace WebCore {
class SVGFEFuncAElement : public SVGComponentTransferFunctionElement {
public:
static PassRefPtr<SVGFEFuncAElement> create(const QualifiedName&, Document*);
SVGFEFuncAElement(const QualifiedName&, Document*);
virtual ~SVGFEFuncAElement();
};
......
......@@ -30,6 +30,11 @@ SVGFEFuncBElement::SVGFEFuncBElement(const QualifiedName& tagName, Document *doc
{
}
PassRefPtr<SVGFEFuncBElement> SVGFEFuncBElement::create(const QualifiedName& tagName, Document* document)
{
return new SVGFEFuncBElement(tagName, document);
}