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

Unified Diff: third_party/WebKit/Source/platform/Length.h

Issue 1420303002: Remove support for intrinsic and min-intrinsic (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/platform/Length.h
diff --git a/third_party/WebKit/Source/platform/Length.h b/third_party/WebKit/Source/platform/Length.h
index 471afe17d239c48d2548c7fe9d71355421e78fe2..d5458682675ec8f5af3186d1cbe7beba2a0ea475 100644
--- a/third_party/WebKit/Source/platform/Length.h
+++ b/third_party/WebKit/Source/platform/Length.h
@@ -39,7 +39,6 @@ namespace blink {
// appropriate for any given Length.
enum LengthType {
Auto, Percent, Fixed,
- Intrinsic, MinIntrinsic,
MinContent, MaxContent, FillAvailable, FitContent,
Calculated,
ExtendToZoom, DeviceWidth, DeviceHeight,
@@ -244,8 +243,7 @@ public:
bool isAuto() const { return type() == Auto; }
bool isFixed() const { return type() == Fixed; }
- bool isIntrinsicOrAuto() const { return type() == Auto || isLegacyIntrinsic() || isIntrinsic(); }
- bool isLegacyIntrinsic() const { return type() == Intrinsic || type() == MinIntrinsic; }
+ bool isIntrinsicOrAuto() const { return type() == Auto || isIntrinsic(); }
bool isIntrinsic() const { return type() == MinContent || type() == MaxContent || type() == FillAvailable || type() == FitContent; }
bool isSpecified() const { return type() == Fixed || type() == Percent || type() == Calculated; }
bool isSpecifiedOrIntrinsic() const { return isSpecified() || isIntrinsic(); }
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGLengthContext.cpp ('k') | third_party/WebKit/Source/platform/LengthFunctions.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698