This source file includes following definitions.
- create
- isURLAttribute
- hasLegalLinkAttribute
- subResourceAttributeName
#include "config.h"
#include "core/html/HTMLQuoteElement.h"
#include "HTMLNames.h"
#include "core/dom/Document.h"
#include "core/dom/StyleEngine.h"
namespace WebCore {
using namespace HTMLNames;
inline HTMLQuoteElement::HTMLQuoteElement(const QualifiedName& tagName, Document& document)
: HTMLElement(tagName, document)
{
ASSERT(hasTagName(qTag) || hasTagName(blockquoteTag));
ScriptWrappable::init(this);
}
PassRefPtr<HTMLQuoteElement> HTMLQuoteElement::create(const QualifiedName& tagName, Document& document)
{
return adoptRef(new HTMLQuoteElement(tagName, document));
}
bool HTMLQuoteElement::isURLAttribute(const Attribute& attribute) const
{
return attribute.name() == citeAttr || HTMLElement::isURLAttribute(attribute);
}
bool HTMLQuoteElement::hasLegalLinkAttribute(const QualifiedName& name) const
{
return name == citeAttr || HTMLElement::hasLegalLinkAttribute(name);
}
const QualifiedName& HTMLQuoteElement::subResourceAttributeName() const
{
return citeAttr;
}
}