diff options
Diffstat (limited to 'WebCore/html/HTMLKeygenElement.cpp')
-rw-r--r-- | WebCore/html/HTMLKeygenElement.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/WebCore/html/HTMLKeygenElement.cpp b/WebCore/html/HTMLKeygenElement.cpp index b918d78..563ad3c 100644 --- a/WebCore/html/HTMLKeygenElement.cpp +++ b/WebCore/html/HTMLKeygenElement.cpp @@ -1,6 +1,4 @@ /* - * This file is part of the DOM implementation for KDE. - * * Copyright (C) 1999 Lars Knoll (knoll@kde.org) * (C) 1999 Antti Koivisto (koivisto@kde.org) * (C) 2001 Dirk Mueller (mueller@kde.org) @@ -33,6 +31,7 @@ #include "HTMLOptionElement.h" #include "SSLKeyGenerator.h" #include "Text.h" +#include <wtf/StdLibExtras.h> using namespace WebCore; @@ -40,15 +39,16 @@ namespace WebCore { using namespace HTMLNames; -HTMLKeygenElement::HTMLKeygenElement(Document* doc, HTMLFormElement* f) - : HTMLSelectElement(keygenTag, doc, f) +HTMLKeygenElement::HTMLKeygenElement(const QualifiedName& tagName, Document* doc, HTMLFormElement* f) + : HTMLSelectElement(tagName, doc, f) { + ASSERT(hasTagName(keygenTag)); Vector<String> keys; getSupportedKeySizes(keys); Vector<String>::const_iterator end = keys.end(); for (Vector<String>::const_iterator it = keys.begin(); it != end; ++it) { - HTMLOptionElement* o = new HTMLOptionElement(doc, form()); + HTMLOptionElement* o = new HTMLOptionElement(optionTag, doc, form()); addChild(o); o->addChild(new Text(doc, *it)); } @@ -56,7 +56,7 @@ HTMLKeygenElement::HTMLKeygenElement(Document* doc, HTMLFormElement* f) const AtomicString& HTMLKeygenElement::type() const { - static const AtomicString keygen("keygen"); + DEFINE_STATIC_LOCAL(const AtomicString, keygen, ("keygen")); return keygen; } |