Lines Matching refs:attr
28 #include "Attr.h"
47 if (Attr* attr = m_attributes[i]->attr())
48 attr->m_element = 0;
119 Attr *attr = static_cast<Attr*>(arg);
121 Attribute* a = attr->attr();
126 // INUSE_ATTRIBUTE_ERR: Raised if arg is an Attr that is already an attribute of another Element object.
127 // The DOM user must explicitly clone Attr nodes to re-use them in other elements.
128 if (attr->ownerElement()) {
133 if (attr->isId())
158 RefPtr<Attr> r = a->createAttrIfNeeded(m_element);
207 // pointers to do things like create Attr objects.
247 if (Attr* attr = attribute->attr())
248 attr->m_element = m_element;
277 RefPtr<Attribute> attr = m_attributes[index].get();
278 if (Attr* a = m_attributes[index]->attr())
285 if (m_element && !attr->m_value.isNull()) {
286 AtomicString value = attr->m_value;
287 attr->m_value = nullAtom;
288 m_element->attributeChanged(attr.get());
289 attr->m_value = value;
292 m_element->dispatchAttrRemovalEvent(attr.get());
307 Attribute *attr = attributeItem(i);
308 Attribute *otherAttr = otherMap->getAttributeItem(attr->name());
310 if (!otherAttr || attr->value() != otherAttr->value())