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::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet* style)
{
if (name == typeAttr)
addPropertyToPresentationAttributeStyle(style, CSSPropertyListStyleType, value);
else
HTMLElement::collectStyleForPresentationAttribute(name, value, style);
}
}