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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsContext.h

Issue 2683973003: Remove GraphicsContext::focusRingOffset() (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698