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

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

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.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
index 68ae29963add88bc295bd64171a59951d565f37b..74b5b11e67f216c0f2880bbaf1336a493edc3923 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
@@ -328,18 +328,18 @@ void GraphicsContext::compositePicture(sk_sp<SkPicture> picture,
void GraphicsContext::drawFocusRingPath(const SkPath& path,
const Color& color,
- int width) {
+ float width) {
drawPlatformFocusRing(path, m_canvas, color.rgb(), width);
}
void GraphicsContext::drawFocusRingRect(const SkRect& rect,
const Color& color,
- int width) {
+ float width) {
drawPlatformFocusRing(rect, m_canvas, color.rgb(), width);
}
void GraphicsContext::drawFocusRing(const Path& focusRingPath,
- int width,
+ float width,
int offset,
const Color& color) {
// FIXME: Implement support for offset.
@@ -350,7 +350,7 @@ void GraphicsContext::drawFocusRing(const Path& focusRingPath,
}
void GraphicsContext::drawFocusRing(const Vector<IntRect>& rects,
- int width,
+ float width,
int offset,
const Color& color) {
if (contextDisabled())

Powered by Google App Engine
This is Rietveld 408576698