Lines Matching refs:dom

14 static SkShader* inflate_shader(const SkDOM& dom, const SkDOM::Node* node)  in inflate_shader()  argument
16 if ((node = dom.getFirstChild(node, "shader")) == NULL) in inflate_shader()
21 if (dom.hasAttr(node, "type", "linear-gradient")) in inflate_shader()
27 if ((str = dom.findAttr(node, "c0")) != NULL && in inflate_shader()
29 (str = dom.findAttr(node, "c1")) != NULL && in inflate_shader()
31 dom.findScalars(node, "p0", &pts[0].fX, 2) && in inflate_shader()
32 dom.findScalars(node, "p1", &pts[1].fX, 2)) in inflate_shader()
37 if ((index = dom.findList(node, "tile-mode", "clamp,repeat,mirror")) >= 0) in inflate_shader()
42 else if (dom.hasAttr(node, "type", "bitmap")) in inflate_shader()
44 if ((str = dom.findAttr(node, "src")) == NULL) in inflate_shader()
54 if ((index = dom.findList(node, "tile-mode", "clamp,repeat,mirror")) >= 0) in inflate_shader()
63 void SkPaint_Inflate(SkPaint* paint, const SkDOM& dom, const SkDOM::Node* node) in SkPaint_Inflate() argument
66 SkASSERT(&dom); in SkPaint_Inflate()
71 if (dom.findScalar(node, "stroke-width", &x)) in SkPaint_Inflate()
73 if (dom.findScalar(node, "text-size", &x)) in SkPaint_Inflate()
78 SkASSERT("legacy: use is-stroke" && !dom.findBool(node, "is-frame", &b)); in SkPaint_Inflate()
80 if (dom.findBool(node, "is-stroke", &b)) in SkPaint_Inflate()
82 if (dom.findBool(node, "is-antialias", &b)) in SkPaint_Inflate()
84 if (dom.findBool(node, "is-lineartext", &b)) in SkPaint_Inflate()
87 const char* str = dom.findAttr(node, "color"); in SkPaint_Inflate()
96 if (dom.findScalar(node, "opacity", &x)) in SkPaint_Inflate()
102 int index = dom.findList(node, "text-anchor", "left,center,right"); in SkPaint_Inflate()
106 SkShader* shader = inflate_shader(dom, node); in SkPaint_Inflate()