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

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

Issue 55843002: Length type Relative is now unused. Remove it. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@length-relative-die-step-3-4
Patch Set: Created 7 years, 1 month 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/core/css/CSSCalculationValue.cpp ('k') | Source/core/css/CSSPrimitiveValue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSLengthFunctions.cpp
diff --git a/Source/core/css/CSSLengthFunctions.cpp b/Source/core/css/CSSLengthFunctions.cpp
index 9cbd70e2861c89b4cc6e24978938e13d1350a114..94acda3c866035ed4d2c115ca233dce3acc5d8cb 100644
--- a/Source/core/css/CSSLengthFunctions.cpp
+++ b/Source/core/css/CSSLengthFunctions.cpp
@@ -65,7 +65,6 @@ LayoutUnit minimumValueForLength(const Length& length, LayoutUnit maximumValue,
case FillAvailable:
case Auto:
return 0;
- case Relative:
case Intrinsic:
case MinIntrinsic:
case MinContent:
@@ -94,7 +93,6 @@ LayoutUnit valueForLength(const Length& length, LayoutUnit maximumValue, RenderV
case FillAvailable:
case Auto:
return maximumValue;
- case Relative:
case Intrinsic:
case MinIntrinsic:
case MinContent:
@@ -134,7 +132,6 @@ float floatValueForLength(const Length& length, float maximumValue, RenderView*
return static_cast<int>(renderView->viewportPercentageMin(length.viewportPercentageLength()));
case ViewportPercentageMax:
return static_cast<int>(renderView->viewportPercentageMax(length.viewportPercentageLength()));
- case Relative:
case Intrinsic:
case MinIntrinsic:
case MinContent:
« no previous file with comments | « Source/core/css/CSSCalculationValue.cpp ('k') | Source/core/css/CSSPrimitiveValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698