summaryrefslogtreecommitdiffstats
path: root/WebCore/html/HTMLHeadingElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/HTMLHeadingElement.cpp')
-rw-r--r--WebCore/html/HTMLHeadingElement.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/WebCore/html/HTMLHeadingElement.cpp b/WebCore/html/HTMLHeadingElement.cpp
index 95c82d1..dd5ae66 100644
--- a/WebCore/html/HTMLHeadingElement.cpp
+++ b/WebCore/html/HTMLHeadingElement.cpp
@@ -1,7 +1,7 @@
-/**
+/*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
- * Copyright (C) 2003 Apple Computer, Inc.
+ * Copyright (C) 2003, 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
@@ -19,6 +19,7 @@
* Boston, MA 02110-1301, USA.
*
*/
+
#include "config.h"
#include "HTMLHeadingElement.h"
@@ -28,9 +29,14 @@ namespace WebCore {
using namespace HTMLNames;
-HTMLHeadingElement::HTMLHeadingElement(const QualifiedName& tagName, Document *doc)
- : HTMLElement(tagName, doc)
+inline HTMLHeadingElement::HTMLHeadingElement(const QualifiedName& tagName, Document* document)
+ : HTMLElement(tagName, document)
+{
+}
+
+PassRefPtr<HTMLHeadingElement> HTMLHeadingElement::create(const QualifiedName& tagName, Document* document)
{
+ return new HTMLHeadingElement(tagName, document);
}
bool HTMLHeadingElement::checkDTD(const Node* newChild)