diff options
Diffstat (limited to 'WebCore/html/HTMLDirectoryElement.cpp')
-rw-r--r-- | WebCore/html/HTMLDirectoryElement.cpp | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/WebCore/html/HTMLDirectoryElement.cpp b/WebCore/html/HTMLDirectoryElement.cpp index 173969c..64cbef8 100644 --- a/WebCore/html/HTMLDirectoryElement.cpp +++ b/WebCore/html/HTMLDirectoryElement.cpp @@ -1,6 +1,7 @@ -/** +/* * Copyright (C) 1999 Lars Knoll (knoll@kde.org) * (C) 1999 Antti Koivisto (koivisto@kde.org) + * Copyright (C) 2010 Apple Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -18,6 +19,7 @@ * Boston, MA 02110-1301, USA. * */ + #include "config.h" #include "HTMLDirectoryElement.h" @@ -27,20 +29,15 @@ namespace WebCore { using namespace HTMLNames; -HTMLDirectoryElement::HTMLDirectoryElement(const QualifiedName& tagName, Document* doc) - : HTMLElement(tagName, doc) +inline HTMLDirectoryElement::HTMLDirectoryElement(const QualifiedName& tagName, Document* document) + : HTMLElement(tagName, document) { ASSERT(hasTagName(dirTag)); } -bool HTMLDirectoryElement::compact() const -{ - return !getAttribute(compactAttr).isNull(); -} - -void HTMLDirectoryElement::setCompact(bool b) +PassRefPtr<HTMLDirectoryElement> HTMLDirectoryElement::create(const QualifiedName& tagName, Document* document) { - setAttribute(compactAttr, b ? "" : 0); + return adoptRef(new HTMLDirectoryElement(tagName, document)); } } |