Lines Matching refs:attr
30 #include "Attr.h"
492 // We're not passing a namespace argument on purpose. SVGNames::*Attr are defined w/o namespaces as well.
531 if (Attr* attrNode = old->attr())
563 if (Attr* attrNode = old->attr())
585 void Element::attributeChanged(Attribute* attr, bool)
587 recalcStyleIfNeededAfterAttributeChanged(attr);
588 updateAfterAttributeChanged(attr);
591 void Element::updateAfterAttributeChanged(Attribute* attr)
596 const QualifiedName& attrName = attr->name();
612 void Element::recalcStyleIfNeededAfterAttributeChanged(Attribute* attr)
614 if (document()->attached() && document()->styleSelector()->hasSelectorForAttribute(attr->name().localName()))
1056 dispatchEvent(new MutationEvent(DOMAttrModifiedEvent, true, false, attr, attr->value(),
1057 attr->value(), document()->attrName(attr->id()), MutationEvent::REMOVAL), ec);
1069 dispatchEvent(new MutationEvent(DOMAttrModifiedEvent, true, false, attr, attr->value(),
1070 attr->value(), document()->attrName(attr->id()), MutationEvent::ADDITION), ec);
1130 PassRefPtr<Attr> Element::setAttributeNode(Attr* attr, ExceptionCode& ec)
1132 if (!attr) {
1136 return static_pointer_cast<Attr>(attributes(false)->setNamedItem(attr, ec));
1139 PassRefPtr<Attr> Element::setAttributeNodeNS(Attr* attr, ExceptionCode& ec)
1141 if (!attr) {
1145 return static_pointer_cast<Attr>(attributes(false)->setNamedItem(attr, ec));
1148 PassRefPtr<Attr> Element::removeAttributeNode(Attr* attr, ExceptionCode& ec)
1150 if (!attr) {
1154 if (attr->ownerElement() != this) {
1158 if (document() != attr->document()) {
1167 return static_pointer_cast<Attr>(attrs->removeNamedItem(attr->qualifiedName(), ec));
1208 PassRefPtr<Attr> Element::getAttributeNode(const String& name)
1214 return static_pointer_cast<Attr>(attrs->getNamedItem(localName));
1217 PassRefPtr<Attr> Element::getAttributeNodeNS(const String& namespaceURI, const String& localName)
1222 return static_pointer_cast<Attr>(attrs->getNamedItem(QualifiedName(nullAtom, localName, namespaceURI)));
1392 if (Attr* attr = attrs->attributeItem(i)->attr())
1393 attr->normalize();