Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Unified Diff: src/core/SkStroke.cpp

Issue 1334543002: Revert of more zero-length changes for svg compatibility (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkCanvas.cpp ('k') | tests/EmptyPathTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkStroke.cpp
diff --git a/src/core/SkStroke.cpp b/src/core/SkStroke.cpp
index 522a000712f875f22bcfa2fdee65eba13ba1a240..1689f9730b008716e2217fb756953d2b48ede1b4 100644
--- a/src/core/SkStroke.cpp
+++ b/src/core/SkStroke.cpp
@@ -619,10 +619,6 @@
SkPoint reduction;
ReductionType reductionType = CheckConicLinear(conic, &reduction);
if (kPoint_ReductionType == reductionType) {
- /* If the stroke consists of a moveTo followed by a degenerate curve, treat it
- as if it were followed by a zero-length line. Lines without length
- can have square and round end caps. */
- this->lineTo(pt2);
return;
}
if (kLine_ReductionType == reductionType) {
@@ -657,10 +653,6 @@
SkPoint reduction;
ReductionType reductionType = CheckQuadLinear(quad, &reduction);
if (kPoint_ReductionType == reductionType) {
- /* If the stroke consists of a moveTo followed by a degenerate curve, treat it
- as if it were followed by a zero-length line. Lines without length
- can have square and round end caps. */
- this->lineTo(pt2);
return;
}
if (kLine_ReductionType == reductionType) {
@@ -1176,10 +1168,6 @@
const SkPoint* tangentPt;
ReductionType reductionType = CheckCubicLinear(cubic, reduction, &tangentPt);
if (kPoint_ReductionType == reductionType) {
- /* If the stroke consists of a moveTo followed by a degenerate curve, treat it
- as if it were followed by a zero-length line. Lines without length
- can have square and round end caps. */
- this->lineTo(pt3);
return;
}
if (kLine_ReductionType == reductionType) {
« no previous file with comments | « src/core/SkCanvas.cpp ('k') | tests/EmptyPathTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698