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

Unified Diff: Source/platform/graphics/skia/SkiaUtils.cpp

Issue 1269123002: Preparation for combining paths of focus rings and outlines (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove debug from fast/css/focus-ring-recursive-continuations.html Created 5 years, 4 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
Index: Source/platform/graphics/skia/SkiaUtils.cpp
diff --git a/Source/platform/graphics/skia/SkiaUtils.cpp b/Source/platform/graphics/skia/SkiaUtils.cpp
index 627b2a5cff9152cf251dcc4378ab450e1331cbbf..36c7a17bd7dffd95c4921ce26150f53294c3133f 100644
--- a/Source/platform/graphics/skia/SkiaUtils.cpp
+++ b/Source/platform/graphics/skia/SkiaUtils.cpp
@@ -375,13 +375,12 @@ void drawPlatformFocusRing(const PrimitiveType& primitive, SkCanvas* canvas, SkC
paint.setAntiAlias(true);
paint.setStyle(SkPaint::kStroke_Style);
paint.setColor(color);
+ paint.setStrokeWidth(GraphicsContext::focusRingWidth(width));
#if OS(MACOSX)
- paint.setStrokeWidth(width);
paint.setAlpha(64);
- float cornerRadius = (width - 1) * 0.5f;
+ const float cornerRadius = (width - 1) * 0.5f;
#else
- paint.setStrokeWidth(1);
const float cornerRadius = 1;
#endif

Powered by Google App Engine
This is Rietveld 408576698