Index: src/svg/parser/SkSVGPath.cpp |
diff --git a/src/svg/parser/SkSVGPath.cpp b/src/svg/parser/SkSVGPath.cpp |
deleted file mode 100644 |
index 225d35f8d58caffcbd8fc9fc1a0c58cb03660367..0000000000000000000000000000000000000000 |
--- 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(); |
-} |