Lines Matching refs:dom
13 void SkViewInflate::rInflate(const SkDOM& dom, const SkDOM::Node* node, SkView* parent) in rInflate() argument
15 const char* str = dom.findAttr(node, "id"); in rInflate()
19 const SkDOM::Node* child = dom.getFirstChild(node); in rInflate()
22 SkView* view = this->createView(dom, child); in rInflate()
25 this->rInflate(dom, child, view); in rInflate()
30 const char* name = dom.getName(child); in rInflate()
33 if (!strcmp(name, "listenTo") && (target = dom.findAttr(child, "target")) != NULL) in rInflate()
36 if (!strcmp(name, "broadcastTo") && (target = dom.findAttr(child, "target")) != NULL) in rInflate()
39 child = dom.getNextSibling(child); in rInflate()
43 this->inflateView(parent, dom, node); in rInflate()
46 void SkViewInflate::inflateView(SkView* view, const SkDOM& dom, const SkDOM::Node* node) in inflateView() argument
51 view->inflate(dom, node); in inflateView()
54 SkView* SkViewInflate::inflate(const SkDOM& dom, const SkDOM::Node* node, SkView* root) in inflate() argument
60 root = this->createView(dom, node); in inflate()
63 printf("createView returned NULL on <%s>\n", dom.getName(node)); in inflate()
67 this->rInflate(dom, node, root); in inflate()
96 SkDOM dom; in inflate() local
97 const SkDOM::Node* node = dom.build(xml, len); in inflate()
99 return node ? this->inflate(dom, node, root) : NULL; in inflate()
109 SkView* SkViewInflate::createView(const SkDOM& dom, const SkDOM::Node* node) in createView() argument
111 if (!strcmp(dom.getName(node), "view")) in createView()