Lines Matching refs:node

56 bool SetIRIAttribute(const sk_sp<SkSVGNode>& node, SkSVGAttribute attr,
63 node->setAttribute(attr, SkSVGStringValue(parseResult->iri()));
67 bool SetStringAttribute(const sk_sp<SkSVGNode>& node, SkSVGAttribute attr,
71 node->setAttribute(attr, SkSVGStringValue(strType));
75 bool SetTransformAttribute(const sk_sp<SkSVGNode>& node, SkSVGAttribute attr,
82 node->setAttribute(attr, SkSVGTransformValue(*parseResult));
86 bool SetLengthAttribute(const sk_sp<SkSVGNode>& node, SkSVGAttribute attr,
93 node->setAttribute(attr, SkSVGLengthValue(*parseResult));
97 bool SetViewBoxAttribute(const sk_sp<SkSVGNode>& node, SkSVGAttribute attr,
105 node->setAttribute(attr, SkSVGViewBoxValue(viewBox));
109 bool SetObjectBoundingBoxUnitsAttribute(const sk_sp<SkSVGNode>& node,
117 node->setAttribute(attr, SkSVGObjectBoundingBoxUnitsValue(*parseResult));
121 bool SetPreserveAspectRatioAttribute(const sk_sp<SkSVGNode>& node, SkSVGAttribute attr,
129 node->setAttribute(attr, SkSVGPreserveAspectRatioValue(par));
181 bool set_string_attribute(const sk_sp<SkSVGNode>& node, const char* name, const char* value);
183 bool SetStyleAttributes(const sk_sp<SkSVGNode>& node, SkSVGAttribute,
193 set_string_attribute(node, name.c_str(), value.c_str());
207 bool (*fSetter)(const sk_sp<SkSVGNode>& node, SkSVGAttribute attr, const char* stringValue);
288 bool set_string_attribute(const sk_sp<SkSVGNode>& node, const char* name, const char* value) {
289 if (node->parseAndSetAttribute(name, value)) {
306 if (!attrInfo.fSetter(node, attrInfo.fAttr, value)) {
368 auto node = make_node(ctx, elem);
369 if (!node) {
373 parse_node_attributes(dom, xmlNode, node, ctx.fIDMapper);
375 ConstructionContext localCtx(ctx, node);
380 node->appendChild(std::move(childNode));
384 return node;