Home | History | Annotate | Download | only in xml

Lines Matching refs:SkDOM

10 #include "SkDOM.h"
16 bool SkXMLParser::parse(const SkDOM& dom, const SkDOMNode* node)
23 SkDOM::AttrIter iter(dom, node);
68 SkDOM::SkDOM() : fAlloc(kMinChunkSize), fRoot(NULL)
72 SkDOM::~SkDOM()
76 const SkDOM::Node* SkDOM::getRootNode() const
81 const SkDOM::Node* SkDOM::getFirstChild(const Node* node, const char name[]) const
95 const SkDOM::Node* SkDOM::getNextSibling(const Node* node, const char name[]) const
108 SkDOM::Type SkDOM::getType(const Node* node) const
114 const char* SkDOM::getName(const Node* node) const
120 const char* SkDOM::findAttr(const Node* node, const char name[]) const
137 const SkDOM::Attr* SkDOM::getFirstAttr(const Node* node) const
142 const SkDOM::Attr* SkDOM::getNextAttr(const Node* node, const Attr* attr) const
150 const char* SkDOM::getAttrName(const Node* node, const Attr* attr) const
157 const char* SkDOM::getAttrValue(const Node* node, const Attr* attr) const
166 SkDOM::AttrIter::AttrIter(const SkDOM&, const SkDOM::Node* node)
173 const char* SkDOM::AttrIter::next(const char** value)
210 SkDOM::Node* getRoot() const { return fRoot; }
217 SkDOM::Node* node = (SkDOM::Node*)fAlloc->alloc(sizeof(SkDOM::Node) + attrCount * sizeof(SkDOM::Attr),
223 node->fType = SkDOM::kElement_Type;
232 SkDOM::Node* parent = fParentStack.top();
239 memcpy(node->attrs(), fAttrs.begin(), attrCount * sizeof(SkDOM::Attr));
254 SkDOM::Attr* attr = fAttrs.append();
266 SkDOM::Node* parent;
270 SkDOM::Node* child = parent->fFirstChild;
271 SkDOM::Node* prev = NULL;
274 SkDOM::Node* next = child->fNextSibling;
283 SkTDArray<SkDOM::Node*> fParentStack;
285 SkDOM::Node* fRoot;
288 SkTDArray<SkDOM::Attr> fAttrs;
293 const SkDOM::Node* SkDOM::build(const char doc[], size_t len)
310 static void walk_dom(const SkDOM& dom, const SkDOM::Node* node, SkXMLParser* parser)
316 SkDOM::AttrIter iter(dom, node);
332 const SkDOM::Node* SkDOM::copy(const SkDOM& dom, const SkDOM::Node* node)
345 int SkDOM::countChildren(const Node* node, const char elem[]) const
362 bool SkDOM::findS32(const Node* node, const char name[], int32_t* value) const
368 bool SkDOM::findScalars(const Node* node, const char name[], SkScalar value[], int count) const
374 bool SkDOM::findHex(const Node* node, const char name[], uint32_t* value) const
380 bool SkDOM::findBool(const Node* node, const char name[], bool* value) const
386 int SkDOM::findList(const Node* node, const char name[], const char list[]) const
392 bool SkDOM::hasAttr(const Node* node, const char name[], const char value[]) const
398 bool SkDOM::hasS32(const Node* node, const char name[], int32_t target) const
405 bool SkDOM::hasScalar(const Node* node, const char name[], SkScalar target) const
412 bool SkDOM::hasHex(const Node* node, const char name[], uint32_t target) const
419 bool SkDOM::hasBool(const Node* node, const char name[], bool target) const
436 void SkDOM::dump(const Node* node, int level) const
467 void SkDOM::UnitTest()
482 SkDOM dom;