This source file includes following definitions.
- create
- isPresentationAttribute
- collectStyleForPresentationAttribute
#include "config.h"
#include "core/html/HTMLUListElement.h"
#include "CSSPropertyNames.h"
#include "HTMLNames.h"
namespace WebCore {
using namespace HTMLNames;
HTMLUListElement::HTMLUListElement(Document& document)
: HTMLElement(ulTag, document)
{
ScriptWrappable::init(this);
}
PassRefPtr<HTMLUListElement> HTMLUListElement::create(Document& document)
{
return adoptRef(new HTMLUListElement(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);
}
}