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 "SkSVGText.h" michael@0: #include "SkSVGParser.h" michael@0: michael@0: const SkSVGAttribute SkSVGText::gAttributes[] = { michael@0: SVG_ATTRIBUTE(x), michael@0: SVG_ATTRIBUTE(y) michael@0: }; michael@0: michael@0: DEFINE_SVG_INFO(Text) michael@0: michael@0: void SkSVGText::translate(SkSVGParser& parser, bool defState) { michael@0: parser._startElement("text"); michael@0: INHERITED::translate(parser, defState); michael@0: SVG_ADD_ATTRIBUTE(x); michael@0: SVG_ADD_ATTRIBUTE(y); michael@0: SVG_ADD_ATTRIBUTE(text); michael@0: parser._endElement(); michael@0: } michael@0: michael@0: michael@0: const SkSVGAttribute SkSVGTspan::gAttributes[] = { michael@0: SVG_ATTRIBUTE(x), michael@0: SVG_ATTRIBUTE(y) michael@0: }; michael@0: michael@0: DEFINE_SVG_INFO(Tspan) michael@0: michael@0: void SkSVGTspan::translate(SkSVGParser& parser, bool defState) { michael@0: INHERITED::translate(parser, defState); michael@0: }