blob: 64cbef8eda66ebe84d0c8621399ff09c39526f7d [file] [log] [blame]
darin@apple.com817d2772010-06-26 20:42:56 +00001/*
eseidele34973b2006-05-15 21:16:29 +00002 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
darin@apple.com817d2772010-06-26 20:42:56 +00004 * Copyright (C) 2010 Apple Inc. All rights reserved.
eseidele34973b2006-05-15 21:16:29 +00005 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
15 *
16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to
ddkilzerc8eccec2007-09-26 02:29:57 +000018 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
eseidele34973b2006-05-15 21:16:29 +000020 *
21 */
darin@apple.com817d2772010-06-26 20:42:56 +000022
eseidele34973b2006-05-15 21:16:29 +000023#include "config.h"
24#include "HTMLDirectoryElement.h"
25
26#include "HTMLNames.h"
27
28namespace WebCore {
29
30using namespace HTMLNames;
31
darin@apple.com817d2772010-06-26 20:42:56 +000032inline HTMLDirectoryElement::HTMLDirectoryElement(const QualifiedName& tagName, Document* document)
33 : HTMLElement(tagName, document)
eseidele34973b2006-05-15 21:16:29 +000034{
jchaffraix@webkit.org74dae402008-12-01 23:07:04 +000035 ASSERT(hasTagName(dirTag));
eseidele34973b2006-05-15 21:16:29 +000036}
37
darin@apple.com817d2772010-06-26 20:42:56 +000038PassRefPtr<HTMLDirectoryElement> HTMLDirectoryElement::create(const QualifiedName& tagName, Document* document)
eseidele34973b2006-05-15 21:16:29 +000039{
darin@apple.com817d2772010-06-26 20:42:56 +000040 return adoptRef(new HTMLDirectoryElement(tagName, document));
eseidele34973b2006-05-15 21:16:29 +000041}
42
43}