Lines Matching refs:dom
7 static SkShader* inflate_shader(const SkDOM& dom, const SkDOM::Node* node) in inflate_shader() argument
9 if ((node = dom.getFirstChild(node, "shader")) == NULL) in inflate_shader()
14 if (dom.hasAttr(node, "type", "linear-gradient")) in inflate_shader()
20 if ((str = dom.findAttr(node, "c0")) != NULL && in inflate_shader()
22 (str = dom.findAttr(node, "c1")) != NULL && in inflate_shader()
24 dom.findScalars(node, "p0", &pts[0].fX, 2) && in inflate_shader()
25 dom.findScalars(node, "p1", &pts[1].fX, 2)) in inflate_shader()
30 if ((index = dom.findList(node, "tile-mode", "clamp,repeat,mirror")) >= 0) in inflate_shader()
35 else if (dom.hasAttr(node, "type", "bitmap")) in inflate_shader()
37 if ((str = dom.findAttr(node, "src")) == NULL) in inflate_shader()
47 if ((index = dom.findList(node, "tile-mode", "clamp,repeat,mirror")) >= 0) in inflate_shader()
56 void SkPaint_Inflate(SkPaint* paint, const SkDOM& dom, const SkDOM::Node* node) in SkPaint_Inflate() argument
59 SkASSERT(&dom); in SkPaint_Inflate()
64 if (dom.findScalar(node, "stroke-width", &x)) in SkPaint_Inflate()
66 if (dom.findScalar(node, "text-size", &x)) in SkPaint_Inflate()
71 SkASSERT("legacy: use is-stroke" && !dom.findBool(node, "is-frame", &b)); in SkPaint_Inflate()
73 if (dom.findBool(node, "is-stroke", &b)) in SkPaint_Inflate()
75 if (dom.findBool(node, "is-antialias", &b)) in SkPaint_Inflate()
77 if (dom.findBool(node, "is-lineartext", &b)) in SkPaint_Inflate()
80 const char* str = dom.findAttr(node, "color"); in SkPaint_Inflate()
89 if (dom.findScalar(node, "opacity", &x)) in SkPaint_Inflate()
95 int index = dom.findList(node, "text-anchor", "left,center,right"); in SkPaint_Inflate()
99 SkShader* shader = inflate_shader(dom, node); in SkPaint_Inflate()