summaryrefslogtreecommitdiffstats
path: root/WebCore/html/HTMLLegendElement.cpp
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-03-05 14:34:32 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-05 14:34:32 -0800
commit635860845790a19bf50bbc51ba8fb66a96dde068 (patch)
treeef6ad9ff73a5b57f65249d4232a202fa77e6a140 /WebCore/html/HTMLLegendElement.cpp
parent8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2 (diff)
downloadexternal_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.zip
external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.tar.gz
external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.tar.bz2
auto import from //depot/cupcake/@136594
Diffstat (limited to 'WebCore/html/HTMLLegendElement.cpp')
-rw-r--r--WebCore/html/HTMLLegendElement.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/WebCore/html/HTMLLegendElement.cpp b/WebCore/html/HTMLLegendElement.cpp
index 573f06f..9f7e645 100644
--- a/WebCore/html/HTMLLegendElement.cpp
+++ b/WebCore/html/HTMLLegendElement.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)
@@ -29,14 +27,16 @@
#include "HTMLNames.h"
#include "RenderLegend.h"
+#include <wtf/StdLibExtras.h>
namespace WebCore {
using namespace HTMLNames;
-HTMLLegendElement::HTMLLegendElement(Document *doc, HTMLFormElement *f)
- : HTMLFormControlElement(legendTag, doc, f)
+HTMLLegendElement::HTMLLegendElement(const QualifiedName& tagName, Document *doc, HTMLFormElement *f)
+ : HTMLFormControlElement(tagName, doc, f)
{
+ ASSERT(hasTagName(legendTag));
}
HTMLLegendElement::~HTMLLegendElement()
@@ -58,7 +58,7 @@ RenderObject* HTMLLegendElement::createRenderer(RenderArena* arena, RenderStyle*
const AtomicString& HTMLLegendElement::type() const
{
- static const AtomicString legend("legend");
+ DEFINE_STATIC_LOCAL(const AtomicString, legend, ("legend"));
return legend;
}
@@ -97,7 +97,7 @@ Element *HTMLLegendElement::formElement()
while ((node = node->traverseNextNode(fieldset))) {
if (node->isHTMLElement()) {
HTMLElement *element = static_cast<HTMLElement *>(node);
- if (!element->hasLocalName(legendTag) && element->isGenericFormElement())
+ if (!element->hasLocalName(legendTag) && element->isFormControlElement())
return element;
}
}