summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/android/PathAndroid.cpp
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2010-10-22 16:04:33 +0100
committerBen Murdoch <benm@google.com>2010-10-26 15:38:49 +0100
commitd92ee71640a894084b766c340adbe29f76eb5914 (patch)
treedd4ac2f4765307886164c757b5e434d7b2b6b3c3 /WebCore/platform/graphics/android/PathAndroid.cpp
parentb73606ba44efcb32effeb03603d2eaa402455062 (diff)
downloadexternal_webkit-d92ee71640a894084b766c340adbe29f76eb5914.zip
external_webkit-d92ee71640a894084b766c340adbe29f76eb5914.tar.gz
external_webkit-d92ee71640a894084b766c340adbe29f76eb5914.tar.bz2
Merge Webkit at r70209: Path::debugString has been removed.
See http://trac.webkit.org/changeset/69505 Change-Id: Ic9e275531354b166d3a262399a1caa4482c5c5d3
Diffstat (limited to 'WebCore/platform/graphics/android/PathAndroid.cpp')
-rw-r--r--WebCore/platform/graphics/android/PathAndroid.cpp58
1 files changed, 0 insertions, 58 deletions
diff --git a/WebCore/platform/graphics/android/PathAndroid.cpp b/WebCore/platform/graphics/android/PathAndroid.cpp
index 5b7e019..e0d7171 100644
--- a/WebCore/platform/graphics/android/PathAndroid.cpp
+++ b/WebCore/platform/graphics/android/PathAndroid.cpp
@@ -283,64 +283,6 @@ void Path::transform(const AffineTransform& xform)
m_path->transform(xform);
}
-#if ENABLE(SVG)
-String Path::debugString() const
-{
- String result;
-
- SkPath::Iter iter(*m_path, false);
- SkPoint pts[4];
-
- int numPoints = m_path->getPoints(0, 0);
- SkPath::Verb verb;
-
- do {
- verb = iter.next(pts);
- switch (verb) {
- case SkPath::kMove_Verb:
- result += String::format("M%.2f,%.2f ", pts[0].fX, pts[0].fY);
- numPoints -= 1;
- break;
- case SkPath::kLine_Verb:
- if (!iter.isCloseLine()) {
- result += String::format("L%.2f,%.2f ", pts[1].fX, pts[1].fY);
- numPoints -= 1;
- }
- break;
- case SkPath::kQuad_Verb:
- result += String::format("Q%.2f,%.2f,%.2f,%.2f ",
- pts[1].fX, pts[1].fY,
- pts[2].fX, pts[2].fY);
- numPoints -= 2;
- break;
- case SkPath::kCubic_Verb:
- result += String::format("C%.2f,%.2f,%.2f,%.2f,%.2f,%.2f ",
- pts[1].fX, pts[1].fY,
- pts[2].fX, pts[2].fY,
- pts[3].fX, pts[3].fY);
- numPoints -= 3;
- break;
- case SkPath::kClose_Verb:
- result += "Z ";
- break;
- case SkPath::kDone_Verb:
- break;
- }
- } while (verb != SkPath::kDone_Verb);
-
- // If you have a path that ends with an M, Skia will not iterate the
- // trailing M. That's nice of it, but Apple's paths output the trailing M
- // and we want out layout dumps to look like theirs
- if (numPoints) {
- ASSERT(numPoints==1);
- m_path->getLastPt(pts);
- result += String::format("M%.2f,%.2f ", pts[0].fX, pts[0].fY);
- }
-
- return result.stripWhiteSpace();
-}
-#endif
-
///////////////////////////////////////////////////////////////////////////////
// Computes the bounding box for the stroke and style currently selected into