HTMLUListElement.cpp [plain text]
#include "config.h"
#include "HTMLUListElement.h"
#include "Attribute.h"
#include "CSSPropertyNames.h"
#include "HTMLNames.h"
namespace WebCore {
using namespace HTMLNames;
HTMLUListElement::HTMLUListElement(const QualifiedName& tagName, Document* document)
: HTMLElement(tagName, document)
{
ASSERT(hasTagName(ulTag));
}
PassRefPtr<HTMLUListElement> HTMLUListElement::create(Document* document)
{
return adoptRef(new HTMLUListElement(ulTag, document));
}
PassRefPtr<HTMLUListElement> HTMLUListElement::create(const QualifiedName& tagName, Document* document)
{
return adoptRef(new HTMLUListElement(tagName, document));
}
bool HTMLUListElement::isPresentationAttribute(const QualifiedName& name) const
{
if (name == typeAttr)
return true;
return HTMLElement::isPresentationAttribute(name);
}
void HTMLUListElement::collectStyleForAttribute(Attribute* attr, StylePropertySet* style)
{
if (attr->name() == typeAttr)
addPropertyToAttributeStyle(style, CSSPropertyListStyleType, attr->value());
else
HTMLElement::collectStyleForAttribute(attr, style);
}
}