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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp

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, 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
OLDNEW
1 /* 1 /*
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2012 Apple Inc. All rights reserv ed. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2012 Apple Inc. All rights reserv ed.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 } 221 }
222 222
223 CSSPrimitiveValue::CSSPrimitiveValue(const Length& length, float zoom) 223 CSSPrimitiveValue::CSSPrimitiveValue(const Length& length, float zoom)
224 : CSSValue(PrimitiveClass) 224 : CSSValue(PrimitiveClass)
225 { 225 {
226 switch (length.type()) { 226 switch (length.type()) {
227 case Auto: 227 case Auto:
228 init(UnitType::ValueID); 228 init(UnitType::ValueID);
229 m_value.valueID = CSSValueAuto; 229 m_value.valueID = CSSValueAuto;
230 break; 230 break;
231 case Intrinsic:
232 init(UnitType::ValueID);
233 m_value.valueID = CSSValueIntrinsic;
234 break;
235 case MinIntrinsic:
236 init(UnitType::ValueID);
237 m_value.valueID = CSSValueMinIntrinsic;
238 break;
239 case MinContent: 231 case MinContent:
240 init(UnitType::ValueID); 232 init(UnitType::ValueID);
241 m_value.valueID = CSSValueMinContent; 233 m_value.valueID = CSSValueMinContent;
242 break; 234 break;
243 case MaxContent: 235 case MaxContent:
244 init(UnitType::ValueID); 236 init(UnitType::ValueID);
245 m_value.valueID = CSSValueMaxContent; 237 m_value.valueID = CSSValueMaxContent;
246 break; 238 break;
247 case FillAvailable: 239 case FillAvailable:
248 init(UnitType::ValueID); 240 init(UnitType::ValueID);
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
843 visitor->trace(m_value.calc); 835 visitor->trace(m_value.calc);
844 break; 836 break;
845 default: 837 default:
846 break; 838 break;
847 } 839 }
848 #endif 840 #endif
849 CSSValue::traceAfterDispatch(visitor); 841 CSSValue::traceAfterDispatch(visitor);
850 } 842 }
851 843
852 } // namespace blink 844 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698