diff options
Diffstat (limited to 'src/svg/parser/SkSVGUse.cpp')
-rw-r--r-- | src/svg/parser/SkSVGUse.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/svg/parser/SkSVGUse.cpp b/src/svg/parser/SkSVGUse.cpp deleted file mode 100644 index c73176f063..0000000000 --- a/src/svg/parser/SkSVGUse.cpp +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright 2006 The Android Open Source Project - * - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - - -#include "SkSVGUse.h" -#include "SkSVGParser.h" - -const SkSVGAttribute SkSVGUse::gAttributes[] = { - SVG_ATTRIBUTE(height), - SVG_ATTRIBUTE(width), - SVG_ATTRIBUTE(x), - SVG_LITERAL_ATTRIBUTE(xlink:href, f_xlink_href), - SVG_ATTRIBUTE(y) -}; - -DEFINE_SVG_INFO(Use) - -void SkSVGUse::translate(SkSVGParser& parser, bool defState) { - INHERITED::translate(parser, defState); - parser._startElement("add"); - const char* start = strchr(f_xlink_href.c_str(), '#') + 1; - SkASSERT(start); - parser._addAttributeLen("use", start, strlen(start) - 1); - parser._endElement(); // clip -} |