summaryrefslogtreecommitdiffstats
path: root/WebCore/rendering/SVGShadowTreeElements.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/rendering/SVGShadowTreeElements.cpp')
-rw-r--r--WebCore/rendering/SVGShadowTreeElements.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/WebCore/rendering/SVGShadowTreeElements.cpp b/WebCore/rendering/SVGShadowTreeElements.cpp
index 311874c..8a66991 100644
--- a/WebCore/rendering/SVGShadowTreeElements.cpp
+++ b/WebCore/rendering/SVGShadowTreeElements.cpp
@@ -26,17 +26,20 @@
#include "FloatSize.h"
#include "RenderObject.h"
#include "SVGNames.h"
+#include "SVGUseElement.h"
namespace WebCore {
// SVGShadowTreeContainerElement
+
SVGShadowTreeContainerElement::SVGShadowTreeContainerElement(Document* document)
: SVGGElement(SVGNames::gTag, document)
{
}
-
-SVGShadowTreeContainerElement::~SVGShadowTreeContainerElement()
+
+PassRefPtr<SVGShadowTreeContainerElement> SVGShadowTreeContainerElement::create(Document* document)
{
+ return adoptRef(new SVGShadowTreeContainerElement(document));
}
FloatSize SVGShadowTreeContainerElement::containerTranslation() const
@@ -45,15 +48,17 @@ FloatSize SVGShadowTreeContainerElement::containerTranslation() const
}
// SVGShadowTreeRootElement
-SVGShadowTreeRootElement::SVGShadowTreeRootElement(Document* document, Element* shadowParent)
+
+inline SVGShadowTreeRootElement::SVGShadowTreeRootElement(Document* document, SVGUseElement* shadowParent)
: SVGShadowTreeContainerElement(document)
, m_shadowParent(shadowParent)
{
setInDocument();
}
-SVGShadowTreeRootElement::~SVGShadowTreeRootElement()
+PassRefPtr<SVGShadowTreeRootElement> SVGShadowTreeRootElement::create(Document* document, SVGUseElement* shadowParent)
{
+ return adoptRef(new SVGShadowTreeRootElement(document, shadowParent));
}
void SVGShadowTreeRootElement::attachElement(PassRefPtr<RenderStyle> style, RenderArena* arena)