| Index: WebCore/platform/graphics/skia/PlatformContextSkia.cpp
|
| ===================================================================
|
| --- WebCore/platform/graphics/skia/PlatformContextSkia.cpp (revision 9357)
|
| +++ WebCore/platform/graphics/skia/PlatformContextSkia.cpp (working copy)
|
| @@ -311,17 +311,7 @@
|
| width = m_state->m_dashRatio * width;
|
| // Fall through.
|
| case WebCore::DottedStroke:
|
| - SkScalar dashLength;
|
| - if (length) {
|
| - // Determine about how many dashes or dots we should have.
|
| - int numDashes = length / roundf(width);
|
| - if (!(numDashes & 1))
|
| - numDashes++; // Make it odd so we end on a dash/dot.
|
| - // Use the number of dashes to determine the length of a
|
| - // dash/dot, which will be approximately width
|
| - dashLength = SkScalarDiv(SkIntToScalar(length), SkIntToScalar(numDashes));
|
| - } else
|
| - dashLength = SkFloatToScalar(width);
|
| + SkScalar dashLength = SkFloatToScalar(width);
|
| SkScalar intervals[2] = { dashLength, dashLength };
|
| paint->setPathEffect(new SkDashPathEffect(intervals, 2, 0))->unref();
|
| }
|
|
|