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

Unified Diff: third_party/WebKit/Source/core/paint/ObjectPainter.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/core/paint/ObjectPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/ObjectPainter.cpp b/third_party/WebKit/Source/core/paint/ObjectPainter.cpp
index 6129ed3768fdc892a3c4215cdaaf9795b7922250..e38d7050cd90ec8b5888406e5f9a861c6f6339ee 100644
--- a/third_party/WebKit/Source/core/paint/ObjectPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/ObjectPainter.cpp
@@ -273,9 +273,10 @@ void ObjectPainter::paintOutline(const PaintInfo& paintInfo,
Color color =
m_layoutObject.resolveColor(styleToUse, CSSPropertyOutlineColor);
if (styleToUse.outlineStyleIsAuto()) {
- paintInfo.context.drawFocusRing(pixelSnappedOutlineRects,
- styleToUse.outlineWidth(),
- styleToUse.outlineOffset(), color);
+ paintInfo.context.drawFocusRing(
+ pixelSnappedOutlineRects,
+ styleToUse.getOutlineStrokeWidthForFocusRing(),
+ styleToUse.outlineOffset(), color);
return;
}
« no previous file with comments | « third_party/WebKit/Source/core/paint/ImagePainter.cpp ('k') | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698