gfx/skia/trunk/src/svg/SkSVGText.cpp

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/skia/trunk/src/svg/SkSVGText.cpp	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,39 @@
     1.4 +
     1.5 +/*
     1.6 + * Copyright 2006 The Android Open Source Project
     1.7 + *
     1.8 + * Use of this source code is governed by a BSD-style license that can be
     1.9 + * found in the LICENSE file.
    1.10 + */
    1.11 +
    1.12 +
    1.13 +#include "SkSVGText.h"
    1.14 +#include "SkSVGParser.h"
    1.15 +
    1.16 +const SkSVGAttribute SkSVGText::gAttributes[] = {
    1.17 +    SVG_ATTRIBUTE(x),
    1.18 +    SVG_ATTRIBUTE(y)
    1.19 +};
    1.20 +
    1.21 +DEFINE_SVG_INFO(Text)
    1.22 +
    1.23 +void SkSVGText::translate(SkSVGParser& parser, bool defState) {
    1.24 +    parser._startElement("text");
    1.25 +    INHERITED::translate(parser, defState);
    1.26 +    SVG_ADD_ATTRIBUTE(x);
    1.27 +    SVG_ADD_ATTRIBUTE(y);
    1.28 +    SVG_ADD_ATTRIBUTE(text);
    1.29 +    parser._endElement();
    1.30 +}
    1.31 +
    1.32 +
    1.33 +const SkSVGAttribute SkSVGTspan::gAttributes[] = {
    1.34 +    SVG_ATTRIBUTE(x),
    1.35 +    SVG_ATTRIBUTE(y)
    1.36 +};
    1.37 +
    1.38 +DEFINE_SVG_INFO(Tspan)
    1.39 +
    1.40 +void SkSVGTspan::translate(SkSVGParser& parser, bool defState) {
    1.41 +    INHERITED::translate(parser, defState);
    1.42 +}

mercurial