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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.cpp

Issue 2460683002: Fix focus ring damage sometimes being 1 pixel off. (Closed)
Patch Set: fix linux component/debug link error Created 4 years, 1 month 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/core/style/ComputedStyleTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/style/ComputedStyle.cpp
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.cpp b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
index 935bc431515c0bc859e42937d60581a679ff7a8a..4fc5b768564c04b36026eb3cb6a701767f4fe0e1 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
@@ -2225,7 +2225,7 @@ int ComputedStyle::outlineOutsetExtent() const {
return 0;
if (outlineStyleIsAuto()) {
return GraphicsContext::focusRingOutsetExtent(
- outlineOffset(), getOutlineStrokeWidthForFocusRing());
+ outlineOffset(), std::ceil(getOutlineStrokeWidthForFocusRing()));
}
return std::max(0, saturatedAddition(outlineWidth(), outlineOffset()));
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/ComputedStyleTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698