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

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

Issue 963733002: [svg2] Make 'width' and 'height' presentation attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: test fixes Created 5 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: Source/core/css/CSSPrimitiveValue.cpp
diff --git a/Source/core/css/CSSPrimitiveValue.cpp b/Source/core/css/CSSPrimitiveValue.cpp
index fd40ac79468f8935f59f8ccc83407c0ffec23529..3b6fa179c4524fc0683247f53a4dba3ffb1b09c4 100644
--- a/Source/core/css/CSSPrimitiveValue.cpp
+++ b/Source/core/css/CSSPrimitiveValue.cpp
@@ -152,6 +152,11 @@ StringToUnitTable& unitTable()
} // namespace
+float CSSPrimitiveValue::clampToCSSLengthRange(float value)
fs 2015/03/12 14:28:48 Reuse this in computeLength too. Should probably t
Erik Dahlström (inactive) 2015/03/12 16:14:56 Done.
+{
+ return clampTo<float>(value, minValueForCssLength, maxValueForCssLength);
+}
+
void CSSPrimitiveValue::initUnitTable()
{
// Make sure we initialize this during blink initialization

Powered by Google App Engine
This is Rietveld 408576698