summaryrefslogtreecommitdiff
path: root/src/3rdparty/webkit/WebCore/html/HTMLLegendElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/webkit/WebCore/html/HTMLLegendElement.cpp')
-rw-r--r--src/3rdparty/webkit/WebCore/html/HTMLLegendElement.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/3rdparty/webkit/WebCore/html/HTMLLegendElement.cpp b/src/3rdparty/webkit/WebCore/html/HTMLLegendElement.cpp
index e3f48fbce5..d6e08c7086 100644
--- a/src/3rdparty/webkit/WebCore/html/HTMLLegendElement.cpp
+++ b/src/3rdparty/webkit/WebCore/html/HTMLLegendElement.cpp
@@ -26,7 +26,6 @@
#include "HTMLLegendElement.h"
#include "HTMLNames.h"
-#include "RenderLegend.h"
#include <wtf/StdLibExtras.h>
namespace WebCore {
@@ -48,15 +47,7 @@ bool HTMLLegendElement::isFocusable() const
return HTMLElement::isFocusable();
}
-RenderObject* HTMLLegendElement::createRenderer(RenderArena* arena, RenderStyle* style)
-{
- if (style->contentData())
- return RenderObject::createObject(this, style);
-
- return new (arena) RenderLegend(this);
-}
-
-const AtomicString& HTMLLegendElement::type() const
+const AtomicString& HTMLLegendElement::formControlType() const
{
DEFINE_STATIC_LOCAL(const AtomicString, legend, ("legend"));
return legend;
@@ -97,7 +88,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;
}
}