Lines Matching refs:dom
20 void SkViewInflate::rInflate(const SkDOM& dom, const SkDOM::Node* node, SkView* parent) in rInflate() argument
22 const char* str = dom.findAttr(node, "id"); in rInflate()
26 const SkDOM::Node* child = dom.getFirstChild(node); in rInflate()
29 SkView* view = this->createView(dom, child); in rInflate()
32 this->rInflate(dom, child, view); in rInflate()
37 const char* name = dom.getName(child); in rInflate()
40 if (!strcmp(name, "listenTo") && (target = dom.findAttr(child, "target")) != NULL) in rInflate()
43 if (!strcmp(name, "broadcastTo") && (target = dom.findAttr(child, "target")) != NULL) in rInflate()
46 child = dom.getNextSibling(child); in rInflate()
50 this->inflateView(parent, dom, node); in rInflate()
53 void SkViewInflate::inflateView(SkView* view, const SkDOM& dom, const SkDOM::Node* node) in inflateView() argument
58 view->inflate(dom, node); in inflateView()
61 SkView* SkViewInflate::inflate(const SkDOM& dom, const SkDOM::Node* node, SkView* root) in inflate() argument
67 root = this->createView(dom, node); in inflate()
70 printf("createView returned NULL on <%s>\n", dom.getName(node)); in inflate()
74 this->rInflate(dom, node, root); in inflate()
103 SkDOM dom; in inflate() local
104 const SkDOM::Node* node = dom.build(xml, len); in inflate()
106 return node ? this->inflate(dom, node, root) : NULL; in inflate()
116 SkView* SkViewInflate::createView(const SkDOM& dom, const SkDOM::Node* node) in createView() argument
118 if (!strcmp(dom.getName(node), "view")) in createView()