Index: third_party/WebKit/Source/platform/graphics/GraphicsContext.h |
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsContext.h b/third_party/WebKit/Source/platform/graphics/GraphicsContext.h |
index 520eaa7a76f51310e4b17760a879402fa9a1146b..4819495f6b91c20091e913551167729ccf3b7dd0 100644 |
--- a/third_party/WebKit/Source/platform/graphics/GraphicsContext.h |
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsContext.h |
@@ -358,12 +358,7 @@ class PLATFORM_EXPORT GraphicsContext { |
float strokeWidth, |
StrokeStyle); |
- static int focusRingOutsetExtent(int offset, int width) { |
- // Unlike normal outlines (whole width is outside of the offset), focus |
- // rings are drawn with the center of the path aligned with the offset, so |
- // only half of the width is outside of the offset. |
- return focusRingOffset(offset) + (width + 1) / 2; |
- } |
+ static int focusRingOutsetExtent(int offset, int width); |
#if DCHECK_IS_ON() |
void setInDrawingRecorder(bool); |
@@ -382,12 +377,6 @@ class PLATFORM_EXPORT GraphicsContext { |
template <typename DrawTextFunc> |
void drawTextPasses(const DrawTextFunc&); |
-#if OS(MACOSX) |
- static inline int focusRingOffset(int offset) { return offset + 2; } |
-#else |
- static inline int focusRingOffset(int offset) { return 0; } |
-#endif |
- |
void saveLayer(const SkRect* bounds, const PaintFlags*); |
void restoreLayer(); |