Home | History | Annotate | Download | only in xml

Lines Matching refs:Attr

131     const Attr* attr = node->attrs();
132 const Attr* stop = attr + node->fAttrCount;
134 while (attr < stop)
136 if (!strcmp(attr->fName, name))
137 return attr->fValue;
138 attr += 1;
145 const SkDOM::Attr* SkDOM::getFirstAttr(const Node* node) const
150 const SkDOM::Attr* SkDOM::getNextAttr(const Node* node, const Attr* attr) const
153 if (attr == NULL)
155 return (attr - node->attrs() + 1) < node->fAttrCount ? attr + 1 : NULL;
158 const char* SkDOM::getAttrName(const Node* node, const Attr* attr) const
161 SkASSERT(attr);
162 return attr->fName;
165 const char* SkDOM::getAttrValue(const Node* node, const Attr* attr) const
168 SkASSERT(attr);
169 return attr->fValue;
225 SkDOM::Node* node = (SkDOM::Node*)fAlloc->alloc(sizeof(SkDOM::Node) + attrCount * sizeof(SkDOM::Attr),
247 memcpy(node->attrs(), fAttrs.begin(), attrCount * sizeof(SkDOM::Attr));
262 SkDOM::Attr* attr = fAttrs.append();
263 attr->fName = dupstr(fAlloc, name);
264 attr->fValue = dupstr(fAlloc, value);
296 SkTDArray<SkDOM::Attr> fAttrs;
453 const Attr* attr = node->attrs();
454 const Attr* stop = attr + node->fAttrCount;
455 for (; attr < stop; attr++)
456 SkDebugf(" %s=\"%s\"", attr->fName, attr->fValue);