OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
4 * | 3 * |
5 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
8 | 7 |
9 | 8 |
10 #include "SkSVGSVG.h" | 9 #include "SkSVGSVG.h" |
11 #include "SkParse.h" | 10 #include "SkParse.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 x.appendScalar(box.fRight); | 63 x.appendScalar(box.fRight); |
65 parser._addAttributeLen("scaleX", x.c_str(), x.size()); | 64 parser._addAttributeLen("scaleX", x.c_str(), x.size()); |
66 } | 65 } |
67 if (box.fBottom != SK_Scalar1) { | 66 if (box.fBottom != SK_Scalar1) { |
68 SkString y; | 67 SkString y; |
69 y.appendScalar(box.fBottom); | 68 y.appendScalar(box.fBottom); |
70 parser._addAttributeLen("scaleY", y.c_str(), y.size()); | 69 parser._addAttributeLen("scaleY", y.c_str(), y.size()); |
71 } | 70 } |
72 parser._endElement(); | 71 parser._endElement(); |
73 } | 72 } |
OLD | NEW |