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

Unified Diff: third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp

Issue 2736043002: Re-land Catch up the spec update in CSS Rhythmic Sizing (Closed)
Patch Set: Fix core/BUILD.gn Created 3 years, 9 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/css/CSSPrimitiveValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp b/third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp
index 62c37871077fca476ca893b13f85a1d9cf2a16f1..3107defc0508cb4672d8bd7781d349b42afdd4fb 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp
@@ -300,6 +300,13 @@ unsigned short CSSPrimitiveValue::computeLength(
}
template <>
+uint8_t CSSPrimitiveValue::computeLength(
+ const CSSToLengthConversionData& conversionData) const {
+ return roundForImpreciseConversion<uint8_t>(
+ computeLengthDouble(conversionData));
+}
+
+template <>
float CSSPrimitiveValue::computeLength(
const CSSToLengthConversionData& conversionData) const {
return clampTo<float>(computeLengthDouble(conversionData));

Powered by Google App Engine
This is Rietveld 408576698