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

Side by Side Diff: Source/platform/LengthFunctions.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 unified diff | Download patch
« no previous file with comments | « Source/platform/Length.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 Copyright (C) 2006, 2008 Apple Inc. All rights reserved. 3 Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
4 Copyright (C) 2011 Rik Cabanier (cabanier@adobe.com) 4 Copyright (C) 2011 Rik Cabanier (cabanier@adobe.com)
5 Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. 5 Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved.
6 Copyright (C) 2012 Motorola Mobility, Inc. All rights reserved. 6 Copyright (C) 2012 Motorola Mobility, Inc. All rights reserved.
7 7
8 This library is free software; you can redistribute it and/or 8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Library General Public 9 modify it under the terms of the GNU Library General Public
10 License as published by the Free Software Foundation; either 10 License as published by the Free Software Foundation; either
(...skipping 30 matching lines...) Expand all
41 case FillAvailable: 41 case FillAvailable:
42 case Auto: 42 case Auto:
43 return static_cast<float>(maximumValue); 43 return static_cast<float>(maximumValue);
44 case Calculated: 44 case Calculated:
45 return length.nonNanCalculatedValue(maximumValue); 45 return length.nonNanCalculatedValue(maximumValue);
46 case ViewportPercentageWidth: 46 case ViewportPercentageWidth:
47 case ViewportPercentageHeight: 47 case ViewportPercentageHeight:
48 case ViewportPercentageMin: 48 case ViewportPercentageMin:
49 case ViewportPercentageMax: 49 case ViewportPercentageMax:
50 return 0; 50 return 0;
51 case Relative:
52 case Intrinsic: 51 case Intrinsic:
53 case MinIntrinsic: 52 case MinIntrinsic:
54 case MinContent: 53 case MinContent:
55 case MaxContent: 54 case MaxContent:
56 case FitContent: 55 case FitContent:
57 case ExtendToZoom: 56 case ExtendToZoom:
58 case Undefined: 57 case Undefined:
59 ASSERT_NOT_REACHED(); 58 ASSERT_NOT_REACHED();
60 return 0; 59 return 0;
61 } 60 }
62 ASSERT_NOT_REACHED(); 61 ASSERT_NOT_REACHED();
63 return 0; 62 return 0;
64 } 63 }
65 64
66 } // namespace WebCore 65 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/platform/Length.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698