Lines Matching refs:SkSVGLengthContext
24 SkScalar length_size_for_type(const SkSize& viewport, SkSVGLengthContext::LengthType t) {
26 case SkSVGLengthContext::LengthType::kHorizontal:
28 case SkSVGLengthContext::LengthType::kVertical:
30 case SkSVGLengthContext::LengthType::kOther: {
51 SkScalar SkSVGLengthContext::resolveForSVG(const SkSVGLength& l, LengthType t) const {
75 SkRect SkSVGLengthContext::resolveRectForSVG(const SkSVGLength& x, const SkSVGLength& y,
78 this->resolveForSVG(x, SkSVGLengthContext::LengthType::kHorizontal),
79 this->resolveForSVG(y, SkSVGLengthContext::LengthType::kVertical),
80 this->resolveForSVG(w, SkSVGLengthContext::LengthType::kHorizontal),
81 this->resolveForSVG(h, SkSVGLengthContext::LengthType::kVertical));
84 SkScalar SkSVGLengthContext::resolve(const SkSVGLength& l, LengthType t) const {
108 SkRect SkSVGLengthContext::resolveRect(const SkSVGLength& x, const SkSVGLength& y,
111 this->resolve(x, SkSVGLengthContext::LengthType::kHorizontal),
112 this->resolve(y, SkSVGLengthContext::LengthType::kVertical),
113 this->resolve(w, SkSVGLengthContext::LengthType::kHorizontal),
114 this->resolve(h, SkSVGLengthContext::LengthType::kVertical));
146 const SkSVGLengthContext& lctx) {
155 intervals.push_back(lctx.resolve(dash, SkSVGLengthContext::LengthType::kOther));
168 SkSVGLengthContext::LengthType::kOther);
183 const SkSVGLengthContext& lctx,
484 SkSVGLengthContext::LengthType::kOther));
521 SkTCopyOnFirstWrite<SkSVGLengthContext> lctx(fLengthContext);
524 *lctx.writable() = SkSVGLengthContext({1,1});