summaryrefslogtreecommitdiffstats
path: root/WebCore/html/HTMLHeadElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/HTMLHeadElement.cpp')
-rw-r--r--WebCore/html/HTMLHeadElement.cpp17
1 files changed, 12 insertions, 5 deletions
diff --git a/WebCore/html/HTMLHeadElement.cpp b/WebCore/html/HTMLHeadElement.cpp
index 5e3c509..df5acb4 100644
--- a/WebCore/html/HTMLHeadElement.cpp
+++ b/WebCore/html/HTMLHeadElement.cpp
@@ -1,9 +1,9 @@
-/**
+/*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* (C) 2000 Simon Hausmann (hausmann@kde.org)
* (C) 2001 Dirk Mueller (mueller@kde.org)
- * Copyright (C) 2004, 2006 Apple Computer, Inc.
+ * Copyright (C) 2004, 2006, 2010 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -20,6 +20,7 @@
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
+
#include "config.h"
#include "HTMLHeadElement.h"
@@ -30,14 +31,20 @@ namespace WebCore {
using namespace HTMLNames;
-HTMLHeadElement::HTMLHeadElement(const QualifiedName& qName, Document* doc)
- : HTMLElement(qName, doc)
+HTMLHeadElement::HTMLHeadElement(const QualifiedName& tagName, Document* document)
+ : HTMLElement(tagName, document)
{
ASSERT(hasTagName(headTag));
}
-HTMLHeadElement::~HTMLHeadElement()
+PassRefPtr<HTMLHeadElement> HTMLHeadElement::create(Document* document)
+{
+ return new HTMLHeadElement(headTag, document);
+}
+
+PassRefPtr<HTMLHeadElement> HTMLHeadElement::create(const QualifiedName& tagName, Document* document)
{
+ return new HTMLHeadElement(tagName, document);
}
String HTMLHeadElement::profile() const