| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |