diff options
author | 2016-07-19 06:12:54 -0700 | |
---|---|---|
committer | 2016-07-19 06:12:54 -0700 | |
commit | 01c97230f890ca2650e490234a4c5e5190049fdc (patch) | |
tree | 616e11934c1544f45ce7037230dd3ad2384d25c9 /src/svg/parser/SkSVGPath.cpp | |
parent | e817ddf9b32200ebfd216921d172ef1342e13cae (diff) |
Delete the legacy SVG parser
Unused.
R=reed@google.com,robertphillips@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2154193003
CQ_INCLUDE_TRYBOTS=master.client.skia.compile:Build-Ubuntu-GCC-x86_64-Release-CMake-Trybot,Build-Mac-Clang-x86_64-Release-CMake-Trybot
Review-Url: https://codereview.chromium.org/2154193003
Diffstat (limited to 'src/svg/parser/SkSVGPath.cpp')
-rw-r--r-- | src/svg/parser/SkSVGPath.cpp | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/svg/parser/SkSVGPath.cpp b/src/svg/parser/SkSVGPath.cpp deleted file mode 100644 index 225d35f8d5..0000000000 --- a/src/svg/parser/SkSVGPath.cpp +++ /dev/null @@ -1,36 +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 "SkSVGPath.h" -#include "SkSVGParser.h" - -const SkSVGAttribute SkSVGPath::gAttributes[] = { - SVG_ATTRIBUTE(d) -}; - -DEFINE_SVG_INFO(Path) - -void SkSVGPath::translate(SkSVGParser& parser, bool defState) { - parser._startElement("path"); - INHERITED::translate(parser, defState); - bool hasMultiplePaths = false; - const char* firstZ = strchr(f_d.c_str(), 'z'); - if (firstZ != nullptr) { - firstZ++; // skip over 'z' - while (*firstZ == ' ') - firstZ++; - hasMultiplePaths = *firstZ != '\0'; - } - if (hasMultiplePaths) { - SkString& fillRule = parser.getPaintLast(SkSVGPaint::kFillRule); - if (fillRule.size() > 0) - parser._addAttribute("fillType", fillRule.equals("evenodd") ? "evenOdd" : "winding"); - } - SVG_ADD_ATTRIBUTE(d); - parser._endElement(); -} |