Home
last modified time | relevance | path

Searched refs:SkDOM (Results 1 – 18 of 18) sorted by relevance

/external/skia/src/xml/
DSkDOM.cpp14 bool SkXMLParser::parse(const SkDOM& dom, const SkDOMNode* node) { in parse()
21 SkDOM::AttrIter iter(dom, node); in parse()
69 SkDOM::SkDOM() : fAlloc(kMinChunkSize), fRoot(nullptr) {} in SkDOM() function in SkDOM
71 SkDOM::~SkDOM() {} in ~SkDOM()
73 const SkDOM::Node* SkDOM::getRootNode() const { in getRootNode()
77 const SkDOM::Node* SkDOM::getFirstChild(const Node* node, const char name[]) const { in getFirstChild()
91 const SkDOM::Node* SkDOM::getNextSibling(const Node* node, const char name[]) const { in getNextSibling()
104 SkDOM::Type SkDOM::getType(const Node* node) const { in getType()
109 const char* SkDOM::getName(const Node* node) const { in getName()
114 const char* SkDOM::findAttr(const Node* node, const char name[]) const { in findAttr()
[all …]
DSkDOM.h23 class SkDOM : public SkNoncopyable {
25 SkDOM();
26 ~SkDOM();
34 const Node* copy(const SkDOM& dom, const Node* node);
79 AttrIter(const SkDOM&, const Node*);
DSkXMLWriter.cpp150 static void write_dom(const SkDOM& dom, const SkDOM::Node* node, SkXMLWriter* w, bool skipRoot) { in write_dom()
153 if (dom.getType(node) == SkDOM::kText_Type) { in write_dom()
161 SkDOM::AttrIter iter(dom, node); in write_dom()
180 void SkXMLWriter::writeDOM(const SkDOM& dom, const SkDOM::Node* node, bool skipRoot) { in writeDOM()
DSkXMLParser.h17 class SkDOM; variable
63 bool parse(const SkDOM&, const SkDOMNode*);
DSkXMLWriter.h32 void writeDOM(const SkDOM&, const SkDOM::Node*, bool skipRoot);
/external/skia/tests/
DSkDOMTest.cpp15 static const SkDOM::Node* check_node(skiatest::Reporter* r, const SkDOM& dom, in check_node()
16 const SkDOM::Node* node, const char* expectedName, in check_node()
17 SkDOM::Type expectedType) { in check_node()
42 SkDOM dom; in DEF_TEST()
45 const SkDOM::Node* root = dom.build(docStream); in DEF_TEST()
60 "elem1", SkDOM::kElement_Type); in DEF_TEST()
62 "elem2", SkDOM::kElement_Type); in DEF_TEST()
64 "elem3", SkDOM::kElement_Type); in DEF_TEST()
67 "subelem1", SkDOM::kElement_Type); in DEF_TEST()
70 "Some text.", SkDOM::kText_Type); in DEF_TEST()
[all …]
DSVGDeviceTest.cpp22 const SkDOM& dom, in check_text_node()
23 const SkDOM::Node* root, in check_text_node()
32 const SkDOM::Node* textElem = dom.getFirstChild(root, "text"); in check_text_node()
37 REPORTER_ASSERT(reporter, dom.getType(textElem) == SkDOM::kElement_Type); in check_text_node()
39 const SkDOM::Node* textNode= dom.getFirstChild(textElem); in check_text_node()
42 REPORTER_ASSERT(reporter, dom.getType(textNode) == SkDOM::kText_Type); in check_text_node()
88 SkDOM dom; in test_whitespace_pos()
/external/skia/src/views/
DSkViewPriv.cpp19 void SkView::Artist::inflate(const SkDOM& dom, const SkDOM::Node* node) in inflate()
25 void SkView::Artist::onInflate(const SkDOM&, const SkDOM::Node*) in onInflate() argument
65 void SkView::Layout::inflate(const SkDOM& dom, const SkDOM::Node* node) in inflate()
71 void SkView::Layout::onInflate(const SkDOM&, const SkDOM::Node*) in onInflate() argument
DSkView.cpp631 void SkView::onInflate(const SkDOM& dom, const SkDOM::Node* node) { in onInflate()
663 void SkView::inflate(const SkDOM& dom, const SkDOM::Node* node) { in inflate()
DSkEvent.cpp124 void SkEvent::inflate(const SkDOM& dom, const SkDOM::Node* node) in inflate()
/external/skia/include/views/
DSkView.h20 class SkDOM; variable
264 void inflate(const SkDOM&, const SkDOMNode*);
267 virtual void onInflate(const SkDOM&, const SkDOMNode*);
292 void inflate(const SkDOM&, const SkDOMNode*);
295 virtual void onInflate(const SkDOM&, const SkDOMNode*);
315 void inflate(const SkDOM& dom, const SkDOMNode* node);
353 virtual void onInflate(const SkDOM& dom, const SkDOMNode* node);
DSkEvent.h14 class SkDOM; variable
185 void inflate(const SkDOM&, const SkDOMNode*);
/external/skia/experimental/svg/model/
DSkSVGDOM.cpp361 void parse_node_attributes(const SkDOM& xmlDom, const SkDOM::Node* xmlNode, in parse_node_attributes()
364 SkDOM::AttrIter attrIter(xmlDom, xmlNode); in parse_node_attributes()
375 sk_sp<SkSVGNode> construct_svg_node(const SkDOM& dom, const ConstructionContext& ctx, in construct_svg_node()
376 const SkDOM::Node* xmlNode) { in construct_svg_node()
378 const SkDOM::Type elemType = dom.getType(xmlNode); in construct_svg_node()
380 if (elemType == SkDOM::kText_Type) { in construct_svg_node()
386 SkASSERT(elemType == SkDOM::kElement_Type); in construct_svg_node()
420 sk_sp<SkSVGDOM> SkSVGDOM::MakeFromDOM(const SkDOM& xmlDom) { in MakeFromDOM()
433 SkDOM xmlDom; in MakeFromStream()
DSkSVGDOM.h17 class SkDOM; variable
26 static sk_sp<SkSVGDOM> MakeFromDOM(const SkDOM&);
/external/skia/samplecode/
DSampleAnimator.cpp64 static const SkDOMNode* find_nodeID(const SkDOM& dom, in find_nodeID()
99 SkDOM dom; in decodeStream()
100 const SkDOM::Node* root = dom.build(text, len); in decodeStream()
112 const SkDOM::Node* node = find_nodeID(dom, nullptr, name.c_str()); in decodeStream()
DSampleSVGFile.cpp33 SkDOM xmlDom; in onOnceBeforeDraw()
/external/skia/
DBUILD.gn662 "src/xml/SkDOM.cpp",
DAndroid.bp748 "src/xml/SkDOM.cpp",