Lines Matching refs:node
64 const SkDOMNode* node, const char name[]) {
65 if (nullptr == node) {
66 node = dom.getRootNode();
69 const char* idval = dom.findAttr(node, "id");
71 return node;
73 const SkDOMNode* child = dom.getFirstChild(node);
80 } while ((node = dom.getNextSibling(node)) != nullptr);
99 const SkDOM::Node* root = dom.build(text, len);
111 const SkDOM::Node* node = find_nodeID(dom, nullptr, name.c_str());
112 SkASSERT(node);
114 dom.findScalar(node, "left", &r.fLeft);
115 dom.findScalar(node, "top", &r.fTop);
116 dom.findScalar(node, "width", &r.fRight); r.fRight += r.fLeft;
117 dom.findScalar(node, "height", &r.fBottom); r.fBottom += r.fTop;