summaryrefslogtreecommitdiffstats
path: root/WebCore/html/HTMLMenuElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/HTMLMenuElement.cpp')
-rw-r--r--WebCore/html/HTMLMenuElement.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/WebCore/html/HTMLMenuElement.cpp b/WebCore/html/HTMLMenuElement.cpp
index 69497ef..92030b5 100644
--- a/WebCore/html/HTMLMenuElement.cpp
+++ b/WebCore/html/HTMLMenuElement.cpp
@@ -1,6 +1,7 @@
-/**
+/*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
+ * Copyright (C) 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
@@ -18,6 +19,7 @@
* Boston, MA 02110-1301, USA.
*
*/
+
#include "config.h"
#include "HTMLMenuElement.h"
@@ -27,12 +29,17 @@ namespace WebCore {
using namespace HTMLNames;
-HTMLMenuElement::HTMLMenuElement(const QualifiedName& tagName, Document* doc)
- : HTMLElement(tagName, doc)
+inline HTMLMenuElement::HTMLMenuElement(const QualifiedName& tagName, Document* document)
+ : HTMLElement(tagName, document)
{
ASSERT(hasTagName(menuTag));
}
+PassRefPtr<HTMLMenuElement> HTMLMenuElement::create(const QualifiedName& tagName, Document* document)
+{
+ return new HTMLMenuElement(tagName, document);
+}
+
bool HTMLMenuElement::compact() const
{
return !getAttribute(compactAttr).isNull();