michael@0: michael@0: /* michael@0: * Copyright 2006 The Android Open Source Project michael@0: * michael@0: * Use of this source code is governed by a BSD-style license that can be michael@0: * found in the LICENSE file. michael@0: */ michael@0: michael@0: michael@0: #include "SkSVGStop.h" michael@0: #include "SkSVGParser.h" michael@0: michael@0: const SkSVGAttribute SkSVGStop::gAttributes[] = { michael@0: SVG_ATTRIBUTE(offset) michael@0: }; michael@0: michael@0: DEFINE_SVG_INFO(Stop) michael@0: michael@0: void SkSVGStop::translate(SkSVGParser& parser, bool defState) { michael@0: parser._startElement("color"); michael@0: INHERITED::translate(parser, defState); michael@0: parser._addAttribute("color", parser.getPaintLast(SkSVGPaint::kStopColor)); michael@0: parser._endElement(); michael@0: }