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

Unified Diff: Source/platform/LengthFunctions.cpp

Issue 82083002: Move viewport unit resolution to style recalc time (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: rebased.. Created 7 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: Source/platform/LengthFunctions.cpp
diff --git a/Source/platform/LengthFunctions.cpp b/Source/platform/LengthFunctions.cpp
index b1b72fafb99abffe7a4244110a00e3306b9d53a5..b3f6b3ac58bd7788ce13a90768294f5ccbcbeb8a 100644
--- a/Source/platform/LengthFunctions.cpp
+++ b/Source/platform/LengthFunctions.cpp
@@ -43,11 +43,6 @@ float floatValueForLength(const Length& length, float maximumValue)
return static_cast<float>(maximumValue);
case Calculated:
return length.nonNanCalculatedValue(maximumValue);
- case ViewportPercentageWidth:
- case ViewportPercentageHeight:
- case ViewportPercentageMin:
- case ViewportPercentageMax:
- return 0;
case Intrinsic:
case MinIntrinsic:
case MinContent:

Powered by Google App Engine
This is Rietveld 408576698