HTMLFieldSetElement.cpp [plain text]
#include "config.h"
#include "HTMLFieldSetElement.h"
#include "HTMLNames.h"
#include "RenderFieldset.h"
#include <wtf/StdLibExtras.h>
namespace WebCore {
using namespace HTMLNames;
inline HTMLFieldSetElement::HTMLFieldSetElement(const QualifiedName& tagName, Document* document, HTMLFormElement* form)
: HTMLFormControlElement(tagName, document, form)
{
ASSERT(hasTagName(fieldsetTag));
}
PassRefPtr<HTMLFieldSetElement> HTMLFieldSetElement::create(const QualifiedName& tagName, Document* document, HTMLFormElement* form)
{
return adoptRef(new HTMLFieldSetElement(tagName, document, form));
}
bool HTMLFieldSetElement::supportsFocus() const
{
return HTMLElement::supportsFocus();
}
const AtomicString& HTMLFieldSetElement::formControlType() const
{
DEFINE_STATIC_LOCAL(const AtomicString, fieldset, ("fieldset"));
return fieldset;
}
RenderObject* HTMLFieldSetElement::createRenderer(RenderArena* arena, RenderStyle*)
{
return new (arena) RenderFieldset(this);
}
}