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

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

Issue 2386033002: Scale focus outline thickness with zoom level. (Closed)
Patch Set: return if outline width is 0 Created 4 years, 2 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: 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 c39971fc69633ee40249ed331f6e47cfb4d9b2b2..33be18e9eb3129e5166bac3594521c4b17bbfc88 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsContext.h
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsContext.h
@@ -304,10 +304,10 @@ class PLATFORM_EXPORT GraphicsContext {
void setDrawLooper(std::unique_ptr<DrawLooperBuilder>);
void drawFocusRing(const Vector<IntRect>&,
- int width,
+ float width,
int offset,
const Color&);
- void drawFocusRing(const Path&, int width, int offset, const Color&);
+ void drawFocusRing(const Path&, float width, int offset, const Color&);
enum Edge {
NoEdge = 0,
@@ -399,8 +399,8 @@ class PLATFORM_EXPORT GraphicsContext {
void restoreLayer();
// Helpers for drawing a focus ring (drawFocusRing)
- void drawFocusRingPath(const SkPath&, const Color&, int width);
- void drawFocusRingRect(const SkRect&, const Color&, int width);
+ void drawFocusRingPath(const SkPath&, const Color&, float width);
+ void drawFocusRingRect(const SkRect&, const Color&, float width);
// SkCanvas wrappers.
void clipRRect(const SkRRect&,

Powered by Google App Engine
This is Rietveld 408576698