diff options
Diffstat (limited to 'Source/WebCore/rendering/svg')
-rw-r--r-- | Source/WebCore/rendering/svg/SVGShadowTreeElements.cpp | 6 | ||||
-rw-r--r-- | Source/WebCore/rendering/svg/SVGShadowTreeElements.h | 4 |
2 files changed, 4 insertions, 6 deletions
diff --git a/Source/WebCore/rendering/svg/SVGShadowTreeElements.cpp b/Source/WebCore/rendering/svg/SVGShadowTreeElements.cpp index ac4a63e..a5cf4ca 100644 --- a/Source/WebCore/rendering/svg/SVGShadowTreeElements.cpp +++ b/Source/WebCore/rendering/svg/SVGShadowTreeElements.cpp @@ -32,8 +32,8 @@ namespace WebCore { // SVGShadowTreeContainerElement -SVGShadowTreeContainerElement::SVGShadowTreeContainerElement(Document* document) - : SVGGElement(SVGNames::gTag, document) +SVGShadowTreeContainerElement::SVGShadowTreeContainerElement(Document* document, ConstructionType constructionType) + : SVGGElement(SVGNames::gTag, document, constructionType) { } @@ -54,7 +54,7 @@ PassRefPtr<Element> SVGShadowTreeContainerElement::cloneElementWithoutAttributes // SVGShadowTreeRootElement inline SVGShadowTreeRootElement::SVGShadowTreeRootElement(Document* document, SVGUseElement* host) - : SVGShadowTreeContainerElement(document) + : SVGShadowTreeContainerElement(document, CreateSVGShadowRoot) { setParent(host); setInDocument(); diff --git a/Source/WebCore/rendering/svg/SVGShadowTreeElements.h b/Source/WebCore/rendering/svg/SVGShadowTreeElements.h index 8cbd4b7..9ccda36 100644 --- a/Source/WebCore/rendering/svg/SVGShadowTreeElements.h +++ b/Source/WebCore/rendering/svg/SVGShadowTreeElements.h @@ -41,7 +41,7 @@ public: } protected: - SVGShadowTreeContainerElement(Document*); + SVGShadowTreeContainerElement(Document*, ConstructionType = CreateSVGElement); private: virtual PassRefPtr<Element> cloneElementWithoutAttributesAndChildren() const; @@ -58,8 +58,6 @@ public: void attachElement(PassRefPtr<RenderStyle>, RenderArena*); void clearSVGShadowHost(); - virtual bool isSVGShadowRoot() const { return true; } - private: SVGShadowTreeRootElement(Document*, SVGUseElement* host); }; |