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

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

Issue 2386033002: Scale focus outline thickness with zoom level. (Closed)
Patch Set: merge conflicts 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 911b35aed912d03cc38904f46a21360fe4638831..ccb05f4536f0dd2a60545a2979336b3fe67d9faf 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
@@ -329,18 +329,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.
@@ -351,7 +351,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