blob: c4594de7c74ac400ba0ac6a5bac3dad62c3060b1 [file] [log] [blame]
The Android Open Source Project8e35f3c2009-03-03 19:30:52 -08001/*
2 * This file is part of the DOM implementation for KDE.
3 *
4 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
5 * (C) 1999 Antti Koivisto (koivisto@kde.org)
6 * (C) 2001 Dirk Mueller (mueller@kde.org)
7 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc.
8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
9 *
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Library General Public
12 * License as published by the Free Software Foundation; either
13 * version 2 of the License, or (at your option) any later version.
14 *
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Library General Public License for more details.
19 *
20 * You should have received a copy of the GNU Library General Public License
21 * along with this library; see the file COPYING.LIB. If not, write to
22 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23 * Boston, MA 02110-1301, USA.
24 *
25 */
26
27#include "config.h"
28#include "HTMLFieldSetElement.h"
29
30#include "HTMLNames.h"
31#include "RenderFieldset.h"
32
33namespace WebCore {
34
35using namespace HTMLNames;
36
37HTMLFieldSetElement::HTMLFieldSetElement(Document *doc, HTMLFormElement *f)
38 : HTMLFormControlElement(fieldsetTag, doc, f)
39{
40}
41
42HTMLFieldSetElement::~HTMLFieldSetElement()
43{
44}
45
46bool HTMLFieldSetElement::checkDTD(const Node* newChild)
47{
48 return newChild->hasTagName(legendTag) || HTMLElement::checkDTD(newChild);
49}
50
51bool HTMLFieldSetElement::isFocusable() const
52{
53 return HTMLElement::isFocusable();
54}
55
56const AtomicString& HTMLFieldSetElement::type() const
57{
58 static const AtomicString fieldset("fieldset");
59 return fieldset;
60}
61
62RenderObject* HTMLFieldSetElement::createRenderer(RenderArena* arena, RenderStyle* style)
63{
64 return new (arena) RenderFieldset(this);
65}
66
67} // namespace