/third_party/skia/src/xml/ |
D | SkDOM.cpp | 17 bool SkXMLParser::parse(const SkDOM& dom, const SkDOMNode* node) { in parse() 24 SkDOM::AttrIter iter(dom, node); in parse() 47 SkDOM::SkDOM() : fAlloc(kMinChunkSize), fRoot(nullptr) {} in SkDOM() function in SkDOM 49 SkDOM::~SkDOM() {} in ~SkDOM() 51 const SkDOM::Node* SkDOM::getRootNode() const { in getRootNode() 55 const SkDOM::Node* SkDOM::getFirstChild(const Node* node, const char name[]) const { in getFirstChild() 69 const SkDOM::Node* SkDOM::getNextSibling(const Node* node, const char name[]) const { in getNextSibling() 82 SkDOM::Type SkDOM::getType(const Node* node) const { in getType() 87 const char* SkDOM::getName(const Node* node) const { in getName() 92 const char* SkDOM::findAttr(const Node* node, const char name[]) const { in findAttr() [all …]
|
D | SkDOMParser.cpp | 18 SkDOM::Node* SkDOMParser::getRoot() const { in getRoot() 28 SkDOM::Node* node = fAlloc->make<SkDOM::Node>(); in flushAttributes() 40 SkDOM::Node* parent = fParentStack.top(); in flushAttributes() 47 sk_careful_memcpy(node->attrs(), fAttrs.begin(), attrCount * sizeof(SkDOM::Attr)); in flushAttributes() 52 this->startCommon(elem, strlen(elem), SkDOM::kElement_Type); in onStartElement() 57 SkDOM::Attr* attr = fAttrs.append(); in onAddAttribute() 69 SkDOM::Node* parent; in onEndElement() 73 SkDOM::Node* child = parent->fFirstChild; in onEndElement() 74 SkDOM::Node* prev = nullptr; in onEndElement() 76 SkDOM::Node* next = child->fNextSibling; in onEndElement() [all …]
|
D | SkDOMParser.h | 21 SkDOM::Node* getRoot() const; 33 void startCommon(const char elem[], size_t elemSize, SkDOM::Type type); 35 SkTDArray<SkDOM::Node*> fParentStack; 37 SkDOM::Node* fRoot; 41 SkTDArray<SkDOM::Attr> fAttrs; 43 SkDOM::Type fElemType;
|
D | SkDOM.h | 44 class SK_API SkDOM : public SkNoncopyable { 46 SkDOM(); 47 virtual ~SkDOM(); 51 static void walk_dom(const SkDOM& dom, const SkDOM::Node* node, SkXMLParser* parser); 56 virtual const Node* copy(const SkDOM& dom, const Node* node); 100 AttrIter(const SkDOM&, const Node*);
|
D | SkXMLWriter.cpp | 152 static void write_dom(const SkDOM& dom, const SkDOM::Node* node, SkXMLWriter* w, bool skipRoot) { in write_dom() 155 if (dom.getType(node) == SkDOM::kText_Type) { in write_dom() 163 SkDOM::AttrIter iter(dom, node); in write_dom() 182 void SkXMLWriter::writeDOM(const SkDOM& dom, const SkDOM::Node* node, bool skipRoot) { in writeDOM()
|
D | SkXMLParser.h | 17 class SkDOM; variable 63 bool parse(const SkDOM&, const SkDOMNode*);
|
D | SkXMLWriter.h | 32 void writeDOM(const SkDOM&, const SkDOM::Node*, bool skipRoot);
|
/third_party/skia/tests/ |
D | SkDOMTest.cpp | 15 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 …]
|
D | SVGDeviceTest.cpp | 40 static std::unique_ptr<SkCanvas> MakeDOMCanvas(SkDOM* dom, uint32_t flags = 0) { in MakeDOMCanvas() 52 const SkDOM& dom, in check_text_node() 53 const SkDOM::Node* root, in check_text_node() 63 const SkDOM::Node* textElem = dom.getFirstChild(root, "text"); in check_text_node() 68 REPORTER_ASSERT(reporter, dom.getType(textElem) == SkDOM::kElement_Type); in check_text_node() 70 const SkDOM::Node* textNode= dom.getFirstChild(textElem); in check_text_node() 73 REPORTER_ASSERT(reporter, dom.getType(textNode) == SkDOM::kText_Type); in check_text_node() 123 SkDOM dom; in test_whitespace_pos() 191 bool FindImageShaderNodes(skiatest::Reporter* reporter, const SkDOM* dom, const SkDOM::Node* root, in FindImageShaderNodes() 192 const SkDOM::Node** patternOut, const SkDOM::Node** imageOut, in FindImageShaderNodes() [all …]
|
/third_party/skia/modules/svg/src/ |
D | SkSVGXMLDOM.cpp | 36 this->startCommon(elem, strlen(elem), SkDOM::kElement_Type); in onStartElement() 44 SkDOM::Attr* attr, const char name[], const char value[], const SkColorEx& svgThemeColor) { in setSVGColor() 75 SkDOM::Attr* attr = fAttrs.append(); in onAddAttribute() 88 SkDOM::Attr* attr = fAttrs.append(); in onAddAttribute() 123 this->startCommon(style.c_str(), len, SkDOM::kText_Type); in onText() 174 const SkSVGXMLDOM::Node* SkSVGXMLDOM::copy(const SkDOM& dom, const SkSVGXMLDOM::Node* node) { in copy() 177 SkDOM::walk_dom(dom, node, &parser); in copy()
|
D | SkSVGDOM.cpp | 316 void parse_node_attributes(const SkDOM& xmlDom, const SkDOM::Node* xmlNode, in parse_node_attributes() 319 SkDOM::AttrIter attrIter(xmlDom, xmlNode); in parse_node_attributes() 330 sk_sp<SkSVGNode> construct_svg_node(const SkDOM& dom, const ConstructionContext& ctx, in construct_svg_node() 331 const SkDOM::Node* xmlNode) { in construct_svg_node() 333 const SkDOM::Type elemType = dom.getType(xmlNode); in construct_svg_node() 335 if (elemType == SkDOM::kText_Type) { in construct_svg_node() 345 SkASSERT(elemType == SkDOM::kElement_Type); in construct_svg_node()
|
/third_party/skia/modules/svg/include/ |
D | SkSVGXMLDOM.h | 12 class SkSVGXMLDOM : public SkDOM { 24 const Node* copy(const SkDOM& dom, const Node* node) override;
|
D | SkSVGDOM.h | 19 class SkDOM; variable
|
/third_party/skia/ |
D | BUILD.gn | 1477 "src/xml/SkDOM.cpp",
|