Lines Matching refs:dom
15 static const SkDOM::Node* check_node(skiatest::Reporter* r, const SkDOM& dom, in check_node() argument
20 REPORTER_ASSERT(r, !strcmp(dom.getName(node), expectedName)); in check_node()
21 REPORTER_ASSERT(r, dom.getType(node) == expectedType); in check_node()
42 SkDOM dom; in DEF_TEST() local
43 REPORTER_ASSERT(r, !dom.getRootNode()); in DEF_TEST()
45 const SkDOM::Node* root = dom.build(docStream); in DEF_TEST()
46 REPORTER_ASSERT(r, root && dom.getRootNode() == root); in DEF_TEST()
48 const char* v = dom.findAttr(root, "a"); in DEF_TEST()
50 v = dom.findAttr(root, "b"); in DEF_TEST()
52 v = dom.findAttr(root, "c"); in DEF_TEST()
55 REPORTER_ASSERT(r, dom.getFirstChild(root, "elem1")); in DEF_TEST()
56 REPORTER_ASSERT(r, !dom.getFirstChild(root, "subelem1")); in DEF_TEST()
59 const auto* elem1 = check_node(r, dom, dom.getFirstChild(root), in DEF_TEST()
61 const auto* elem2 = check_node(r, dom, dom.getNextSibling(elem1), in DEF_TEST()
63 const auto* elem3 = check_node(r, dom, dom.getNextSibling(elem2), in DEF_TEST()
66 const auto* subelem1 = check_node(r, dom, dom.getFirstChild(elem3), in DEF_TEST()
69 check_node(r, dom, dom.getFirstChild(subelem1), in DEF_TEST()
72 const auto* subelem2 = check_node(r, dom, dom.getNextSibling(subelem1), in DEF_TEST()
74 const auto* subelem3 = check_node(r, dom, dom.getNextSibling(subelem2), in DEF_TEST()
77 check_node(r, dom, dom.getFirstChild(subelem3), in DEF_TEST()
81 check_node(r, dom, dom.getNextSibling(elem3), in DEF_TEST()