1ec3ed6a5ebf6f2c406d7bcf94b6bc34fcaeb976eepoger@google.com
2ec3ed6a5ebf6f2c406d7bcf94b6bc34fcaeb976eepoger@google.com/*
3ec3ed6a5ebf6f2c406d7bcf94b6bc34fcaeb976eepoger@google.com * Copyright 2006 The Android Open Source Project
4ec3ed6a5ebf6f2c406d7bcf94b6bc34fcaeb976eepoger@google.com *
5ec3ed6a5ebf6f2c406d7bcf94b6bc34fcaeb976eepoger@google.com * Use of this source code is governed by a BSD-style license that can be
6ec3ed6a5ebf6f2c406d7bcf94b6bc34fcaeb976eepoger@google.com * found in the LICENSE file.
7ec3ed6a5ebf6f2c406d7bcf94b6bc34fcaeb976eepoger@google.com */
8ec3ed6a5ebf6f2c406d7bcf94b6bc34fcaeb976eepoger@google.com
98a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com
108a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com#include "SkSVGText.h"
118a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com#include "SkSVGParser.h"
128a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com
138a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.comconst SkSVGAttribute SkSVGText::gAttributes[] = {
148a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com    SVG_ATTRIBUTE(x),
158a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com    SVG_ATTRIBUTE(y)
168a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com};
178a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com
188a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.comDEFINE_SVG_INFO(Text)
198a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com
208a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.comvoid SkSVGText::translate(SkSVGParser& parser, bool defState) {
218a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com    parser._startElement("text");
228a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com    INHERITED::translate(parser, defState);
238a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com    SVG_ADD_ATTRIBUTE(x);
248a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com    SVG_ADD_ATTRIBUTE(y);
258a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com    SVG_ADD_ATTRIBUTE(text);
268a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com    parser._endElement();
278a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com}
288a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com
298a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com
308a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.comconst SkSVGAttribute SkSVGTspan::gAttributes[] = {
318a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com    SVG_ATTRIBUTE(x),
328a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com    SVG_ATTRIBUTE(y)
338a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com};
348a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com
358a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.comDEFINE_SVG_INFO(Tspan)
368a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com
378a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.comvoid SkSVGTspan::translate(SkSVGParser& parser, bool defState) {
388a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com    INHERITED::translate(parser, defState);
398a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com}
40