OLD | NEW |
| (Empty) |
1 /* | |
2 * Copyright 2006 The Android Open Source Project | |
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 | |
9 #include "SkSVGText.h" | |
10 #include "SkSVGParser.h" | |
11 | |
12 const SkSVGAttribute SkSVGText::gAttributes[] = { | |
13 SVG_ATTRIBUTE(x), | |
14 SVG_ATTRIBUTE(y) | |
15 }; | |
16 | |
17 DEFINE_SVG_INFO(Text) | |
18 | |
19 void SkSVGText::translate(SkSVGParser& parser, bool defState) { | |
20 parser._startElement("text"); | |
21 INHERITED::translate(parser, defState); | |
22 SVG_ADD_ATTRIBUTE(x); | |
23 SVG_ADD_ATTRIBUTE(y); | |
24 SVG_ADD_ATTRIBUTE(text); | |
25 parser._endElement(); | |
26 } | |
27 | |
28 | |
29 const SkSVGAttribute SkSVGTspan::gAttributes[] = { | |
30 SVG_ATTRIBUTE(x), | |
31 SVG_ATTRIBUTE(y) | |
32 }; | |
33 | |
34 DEFINE_SVG_INFO(Tspan) | |
35 | |
36 void SkSVGTspan::translate(SkSVGParser& parser, bool defState) { | |
37 INHERITED::translate(parser, defState); | |
38 } | |
OLD | NEW |