Home | History | Annotate | Download | only in views

Lines Matching full:dom

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