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

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: rename browser zoom to page zoom Created 6 years, 12 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
« no previous file with comments | « Source/platform/Length.h ('k') | Source/web/PageScaleConstraintsSet.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/LengthFunctions.cpp
diff --git a/Source/platform/LengthFunctions.cpp b/Source/platform/LengthFunctions.cpp
index b1b72fafb99abffe7a4244110a00e3306b9d53a5..32613c5491b4ab593dc04d826b2932914ed08a5f 100644
--- a/Source/platform/LengthFunctions.cpp
+++ b/Source/platform/LengthFunctions.cpp
@@ -29,8 +29,6 @@
namespace WebCore {
-// This method is over-ridden in core/css/CSSLengthFunctions.cpp.
-// Any changes here most likely also need to be applied there.
float floatValueForLength(const Length& length, float maximumValue)
{
switch (length.type()) {
@@ -43,17 +41,14 @@ 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:
case MaxContent:
case FitContent:
case ExtendToZoom:
+ case DeviceWidth:
+ case DeviceHeight:
case Undefined:
ASSERT_NOT_REACHED();
return 0;
« no previous file with comments | « Source/platform/Length.h ('k') | Source/web/PageScaleConstraintsSet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698