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

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

Issue 2704343003: Catch up the spec update in CSS Rhythmic Sizing (Closed)
Patch Set: Sorted CSSProperties.json5 alphabetically (meade@'s nit) 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 5ea79791985a472c43dc8a72237fc82f8265fbf8..2362193ed67547546232f85070972c2b21d3f1fb 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp
@@ -302,6 +302,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