summaryrefslogtreecommitdiffstats
path: root/WebCore/html/HTMLIsIndexElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/HTMLIsIndexElement.cpp')
-rw-r--r--WebCore/html/HTMLIsIndexElement.cpp16
1 files changed, 13 insertions, 3 deletions
diff --git a/WebCore/html/HTMLIsIndexElement.cpp b/WebCore/html/HTMLIsIndexElement.cpp
index 5cc73de..d382af5 100644
--- a/WebCore/html/HTMLIsIndexElement.cpp
+++ b/WebCore/html/HTMLIsIndexElement.cpp
@@ -2,7 +2,7 @@
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* (C) 2001 Dirk Mueller (mueller@kde.org)
- * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc.
+ * Copyright (C) 2004, 2005, 2006, 2010 Apple Inc. All rights reserved.
* (C) 2006 Alexey Proskuryakov (ap@nypop.com)
*
* This library is free software; you can redistribute it and/or
@@ -32,13 +32,23 @@ namespace WebCore {
using namespace HTMLNames;
-HTMLIsIndexElement::HTMLIsIndexElement(const QualifiedName& tagName, Document *doc, HTMLFormElement *f)
- : HTMLInputElement(tagName, doc, f)
+HTMLIsIndexElement::HTMLIsIndexElement(const QualifiedName& tagName, Document* document, HTMLFormElement* form)
+ : HTMLInputElement(tagName, document, form)
{
ASSERT(hasTagName(isindexTag));
setDefaultName(isindexTag.localName());
}
+PassRefPtr<HTMLIsIndexElement> HTMLIsIndexElement::create(Document* document, HTMLFormElement* form)
+{
+ return new HTMLIsIndexElement(isindexTag, document, form);
+}
+
+PassRefPtr<HTMLIsIndexElement> HTMLIsIndexElement::create(const QualifiedName& tagName, Document* document, HTMLFormElement* form)
+{
+ return new HTMLIsIndexElement(tagName, document, form);
+}
+
void HTMLIsIndexElement::parseMappedAttribute(Attribute* attr)
{
if (attr->name() == promptAttr)