summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/HTMLTemplateElement.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/html/HTMLTemplateElement.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
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