1 /* 2 * Copyright 2016 Google Inc. 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7 8 #include "include/private/SkTPin.h" 9 #include "modules/svg/include/SkSVGRenderContext.h" 10 #include "modules/svg/include/SkSVGStop.h" 11 #include "modules/svg/include/SkSVGValue.h" 12 SkSVGStop()13SkSVGStop::SkSVGStop() : INHERITED(SkSVGTag::kStop) {} 14 parseAndSetAttribute(const char * n,const char * v)15bool SkSVGStop::parseAndSetAttribute(const char* n, const char* v) { 16 return INHERITED::parseAndSetAttribute(n, v) || 17 this->setOffset(SkSVGAttributeParser::parse<SkSVGLength>("offset", n, v)); 18 } 19