| 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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 m_value.valueID = CSSValueMaxContent; | 303 m_value.valueID = CSSValueMaxContent; |
| 304 break; | 304 break; |
| 305 case FillAvailable: | 305 case FillAvailable: |
| 306 m_primitiveUnitType = CSS_VALUE_ID; | 306 m_primitiveUnitType = CSS_VALUE_ID; |
| 307 m_value.valueID = CSSValueWebkitFillAvailable; | 307 m_value.valueID = CSSValueWebkitFillAvailable; |
| 308 break; | 308 break; |
| 309 case FitContent: | 309 case FitContent: |
| 310 m_primitiveUnitType = CSS_VALUE_ID; | 310 m_primitiveUnitType = CSS_VALUE_ID; |
| 311 m_value.valueID = CSSValueWebkitFitContent; | 311 m_value.valueID = CSSValueWebkitFitContent; |
| 312 break; | 312 break; |
| 313 case ExtendToZoom: |
| 314 m_primitiveUnitType = CSS_VALUE_ID; |
| 315 m_value.valueID = CSSValueInternalExtendToZoom; |
| 316 break; |
| 313 case Percent: | 317 case Percent: |
| 314 m_primitiveUnitType = CSS_PERCENTAGE; | 318 m_primitiveUnitType = CSS_PERCENTAGE; |
| 315 ASSERT(std::isfinite(length.percent())); | 319 ASSERT(std::isfinite(length.percent())); |
| 316 m_value.num = length.percent(); | 320 m_value.num = length.percent(); |
| 317 break; | 321 break; |
| 318 case ViewportPercentageWidth: | 322 case ViewportPercentageWidth: |
| 319 m_primitiveUnitType = CSS_VW; | 323 m_primitiveUnitType = CSS_VW; |
| 320 m_value.num = length.viewportPercentageLength(); | 324 m_value.num = length.viewportPercentageLength(); |
| 321 break; | 325 break; |
| 322 case ViewportPercentageHeight: | 326 case ViewportPercentageHeight: |
| (...skipping 974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1297 return m_value.valueID == other.m_value.valueID; | 1301 return m_value.valueID == other.m_value.valueID; |
| 1298 case CSS_CALC: | 1302 case CSS_CALC: |
| 1299 return m_value.calc && other.m_value.calc && m_value.calc->equals(*other
.m_value.calc); | 1303 return m_value.calc && other.m_value.calc && m_value.calc->equals(*other
.m_value.calc); |
| 1300 case CSS_SHAPE: | 1304 case CSS_SHAPE: |
| 1301 return m_value.shape && other.m_value.shape && m_value.shape->equals(*ot
her.m_value.shape); | 1305 return m_value.shape && other.m_value.shape && m_value.shape->equals(*ot
her.m_value.shape); |
| 1302 } | 1306 } |
| 1303 return false; | 1307 return false; |
| 1304 } | 1308 } |
| 1305 | 1309 |
| 1306 } // namespace WebCore | 1310 } // namespace WebCore |
| OLD | NEW |