summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/HTMLTemplateElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/html/HTMLTemplateElement.h')
-rw-r--r--Source/WebCore/html/HTMLTemplateElement.h19
1 files changed, 5 insertions, 14 deletions
diff --git a/Source/WebCore/html/HTMLTemplateElement.h b/Source/WebCore/html/HTMLTemplateElement.h
index d7ff951b7..152df4483 100644
--- a/Source/WebCore/html/HTMLTemplateElement.h
+++ b/Source/WebCore/html/HTMLTemplateElement.h
@@ -28,10 +28,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef HTMLTemplateElement_h
-#define HTMLTemplateElement_h
-
-#if ENABLE(TEMPLATE_ELEMENT)
+#pragma once
#include "HTMLElement.h"
@@ -42,24 +39,18 @@ class TemplateContentDocumentFragment;
class HTMLTemplateElement final : public HTMLElement {
public:
- static PassRefPtr<HTMLTemplateElement> create(const QualifiedName&, Document&);
+ static Ref<HTMLTemplateElement> create(const QualifiedName&, Document&);
virtual ~HTMLTemplateElement();
- DocumentFragment* content() const;
+ DocumentFragment& content() const;
private:
HTMLTemplateElement(const QualifiedName&, Document&);
- virtual PassRefPtr<Node> cloneNode(bool deep) override;
- virtual void didMoveToNewDocument(Document* oldDocument) override;
+ Ref<Node> cloneNodeInternal(Document&, CloningOperation) final;
+ void didMoveToNewDocument(Document& oldDocument) final;
mutable RefPtr<TemplateContentDocumentFragment> m_content;
};
-NODE_TYPE_CASTS(HTMLTemplateElement)
-
} // namespace WebCore
-
-#endif // ENABLE(TEMPLATE_ELEMENT)
-
-#endif // HTMLTemplateElement_h