Home | History | Annotate | Download | only in views

Lines Matching refs:node

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