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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.h

Issue 2566593002: Change handling of sub-pixel borders to round
Patch Set: Change border images to round edges Created 4 years 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/css/resolver/StyleBuilderConverter.h
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.h b/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.h
index e3a9a9634ca2c632da07ed95dedf553155b48f17..77b2dcfa73588716f39e4b53c6572d33c0231e02 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.h
+++ b/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.h
@@ -239,7 +239,7 @@ T StyleBuilderConverter::convertLineWidth(StyleResolverState& state,
primitiveValue.computeLength<double>(state.cssToLengthConversionData());
if (result > 0.0 && result < 1.0)
return 1.0;
- return clampTo<T>(roundForImpreciseConversion<T>(result),
+ return clampTo<T>(roundForImpreciseConversion<T>(round(result)),
defaultMinimumForClamp<T>(), defaultMaximumForClamp<T>());
}

Powered by Google App Engine
This is Rietveld 408576698