blob: 8fd41182394ede657039747c1ea5282ed69dd69b [file] [log] [blame]
/*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "modules/svg/include/SkSVGStop.h"
#include "modules/svg/include/SkSVGAttributeParser.h"
SkSVGStop::SkSVGStop() : INHERITED(SkSVGTag::kStop) {}
bool SkSVGStop::parseAndSetAttribute(const char* n, const char* v) {
return INHERITED::parseAndSetAttribute(n, v) ||
this->setOffset(SkSVGAttributeParser::parse<SkSVGLength>("offset", n, v));
}