Lines Matching refs:SkDOM

17 bool SkXMLParser::parse(const SkDOM& dom, const SkDOMNode* node)  in parse()
24 SkDOM::AttrIter iter(dom, node); in parse()
69 SkDOM::SkDOM() : fAlloc(kMinChunkSize), fRoot(nullptr) in SkDOM() function in SkDOM
73 SkDOM::~SkDOM() in ~SkDOM()
77 const SkDOM::Node* SkDOM::getRootNode() const in getRootNode()
82 const SkDOM::Node* SkDOM::getFirstChild(const Node* node, const char name[]) const in getFirstChild()
96 const SkDOM::Node* SkDOM::getNextSibling(const Node* node, const char name[]) const in getNextSibling()
109 SkDOM::Type SkDOM::getType(const Node* node) const in getType()
115 const char* SkDOM::getName(const Node* node) const in getName()
121 const char* SkDOM::findAttr(const Node* node, const char name[]) const in findAttr()
138 const SkDOM::Attr* SkDOM::getFirstAttr(const Node* node) const in getFirstAttr()
143 const SkDOM::Attr* SkDOM::getNextAttr(const Node* node, const Attr* attr) const in getNextAttr()
151 const char* SkDOM::getAttrName(const Node* node, const Attr* attr) const in getAttrName()
158 const char* SkDOM::getAttrValue(const Node* node, const Attr* attr) const in getAttrValue()
167 SkDOM::AttrIter::AttrIter(const SkDOM&, const SkDOM::Node* node) in AttrIter() argument
174 const char* SkDOM::AttrIter::next(const char** value) in next()
211 SkDOM::Node* getRoot() const { return fRoot; } in getRoot()
221SkDOM::Node* node = (SkDOM::Node*)fAlloc->alloc(sizeof(SkDOM::Node) + attrCount * sizeof(SkDOM::At… in flushAttributes()
236 SkDOM::Node* parent = fParentStack.top(); in flushAttributes()
243 sk_careful_memcpy(node->attrs(), fAttrs.begin(), attrCount * sizeof(SkDOM::Attr)); in flushAttributes()
249 this->startCommon(elem, SkDOM::kElement_Type); in onStartElement()
254 SkDOM::Attr* attr = fAttrs.append(); in onAddAttribute()
266 SkDOM::Node* parent; in onEndElement()
270 SkDOM::Node* child = parent->fFirstChild; in onEndElement()
271 SkDOM::Node* prev = nullptr; in onEndElement()
274 SkDOM::Node* next = child->fNextSibling; in onEndElement()
285 this->startCommon(str.c_str(), SkDOM::kText_Type); in onText()
292 void startCommon(const char elem[], SkDOM::Type type) { in startCommon()
302 SkTDArray<SkDOM::Node*> fParentStack;
304 SkDOM::Node* fRoot;
308 SkTDArray<SkDOM::Attr> fAttrs;
310 SkDOM::Type fElemType;
314 const SkDOM::Node* SkDOM::build(const char doc[], size_t len) in build()
330 static void walk_dom(const SkDOM& dom, const SkDOM::Node* node, SkXMLParser* parser) in walk_dom()
333 if (dom.getType(node) == SkDOM::kText_Type) { in walk_dom()
341 SkDOM::AttrIter iter(dom, node); in walk_dom()
357 const SkDOM::Node* SkDOM::copy(const SkDOM& dom, const SkDOM::Node* node) in copy()
367 SkXMLParser* SkDOM::beginParsing() { in beginParsing()
374 const SkDOM::Node* SkDOM::finishParsing() { in finishParsing()
384 int SkDOM::countChildren(const Node* node, const char elem[]) const in countChildren()
401 bool SkDOM::findS32(const Node* node, const char name[], int32_t* value) const in findS32()
407 bool SkDOM::findScalars(const Node* node, const char name[], SkScalar value[], int count) const in findScalars()
413 bool SkDOM::findHex(const Node* node, const char name[], uint32_t* value) const in findHex()
419 bool SkDOM::findBool(const Node* node, const char name[], bool* value) const in findBool()
425 int SkDOM::findList(const Node* node, const char name[], const char list[]) const in findList()
431 bool SkDOM::hasAttr(const Node* node, const char name[], const char value[]) const in hasAttr()
437 bool SkDOM::hasS32(const Node* node, const char name[], int32_t target) const in hasS32()
444 bool SkDOM::hasScalar(const Node* node, const char name[], SkScalar target) const in hasScalar()
451 bool SkDOM::hasHex(const Node* node, const char name[], uint32_t target) const in hasHex()
458 bool SkDOM::hasBool(const Node* node, const char name[], bool target) const in hasBool()
469 void SkDOM::dump(const Node* node, int level) const in dump()
479 void SkDOM::UnitTest() in UnitTest()
494 SkDOM dom; in UnitTest()