| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Alexey Proskuryakov <ap@nypop.com>. | 2 * Copyright (C) 2007 Alexey Proskuryakov <ap@nypop.com>. |
| 3 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. |
| 4 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 4 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 5 * Copyright (C) 2009 Jeff Schiller <codedread@gmail.com> | 5 * Copyright (C) 2009 Jeff Schiller <codedread@gmail.com> |
| 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 7 * | 7 * |
| 8 * Redistribution and use in source and binary forms, with or without | 8 * Redistribution and use in source and binary forms, with or without |
| 9 * modification, are permitted provided that the following conditions | 9 * modification, are permitted provided that the following conditions |
| 10 * are met: | 10 * are met: |
| (...skipping 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1266 case CSSValueWebkitPlaintext: | 1266 case CSSValueWebkitPlaintext: |
| 1267 return Plaintext; | 1267 return Plaintext; |
| 1268 default: | 1268 default: |
| 1269 break; | 1269 break; |
| 1270 } | 1270 } |
| 1271 | 1271 |
| 1272 ASSERT_NOT_REACHED(); | 1272 ASSERT_NOT_REACHED(); |
| 1273 return UBNormal; | 1273 return UBNormal; |
| 1274 } | 1274 } |
| 1275 | 1275 |
| 1276 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EUserDrag e) | |
| 1277 : CSSValue(PrimitiveClass) | |
| 1278 { | |
| 1279 m_primitiveUnitType = CSS_VALUE_ID; | |
| 1280 switch (e) { | |
| 1281 case DRAG_AUTO: | |
| 1282 m_value.valueID = CSSValueAuto; | |
| 1283 break; | |
| 1284 case DRAG_NONE: | |
| 1285 m_value.valueID = CSSValueNone; | |
| 1286 break; | |
| 1287 case DRAG_ELEMENT: | |
| 1288 m_value.valueID = CSSValueElement; | |
| 1289 break; | |
| 1290 default: | |
| 1291 break; | |
| 1292 } | |
| 1293 } | |
| 1294 | |
| 1295 template<> inline CSSPrimitiveValue::operator EUserDrag() const | |
| 1296 { | |
| 1297 ASSERT(isValueID()); | |
| 1298 switch (m_value.valueID) { | |
| 1299 case CSSValueAuto: | |
| 1300 return DRAG_AUTO; | |
| 1301 case CSSValueNone: | |
| 1302 return DRAG_NONE; | |
| 1303 case CSSValueElement: | |
| 1304 return DRAG_ELEMENT; | |
| 1305 default: | |
| 1306 break; | |
| 1307 } | |
| 1308 | |
| 1309 ASSERT_NOT_REACHED(); | |
| 1310 return DRAG_AUTO; | |
| 1311 } | |
| 1312 | |
| 1313 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EUserModify e) | 1276 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EUserModify e) |
| 1314 : CSSValue(PrimitiveClass) | 1277 : CSSValue(PrimitiveClass) |
| 1315 { | 1278 { |
| 1316 m_primitiveUnitType = CSS_VALUE_ID; | 1279 m_primitiveUnitType = CSS_VALUE_ID; |
| 1317 switch (e) { | 1280 switch (e) { |
| 1318 case READ_ONLY: | 1281 case READ_ONLY: |
| 1319 m_value.valueID = CSSValueReadOnly; | 1282 m_value.valueID = CSSValueReadOnly; |
| 1320 break; | 1283 break; |
| 1321 case READ_WRITE: | 1284 case READ_WRITE: |
| 1322 m_value.valueID = CSSValueReadWrite; | 1285 m_value.valueID = CSSValueReadWrite; |
| (...skipping 1481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2804 default: | 2767 default: |
| 2805 break; | 2768 break; |
| 2806 } | 2769 } |
| 2807 ASSERT_NOT_REACHED(); | 2770 ASSERT_NOT_REACHED(); |
| 2808 return OverflowAlignmentTrue; | 2771 return OverflowAlignmentTrue; |
| 2809 } | 2772 } |
| 2810 | 2773 |
| 2811 } | 2774 } |
| 2812 | 2775 |
| 2813 #endif // SKY_ENGINE_CORE_CSS_CSSPRIMITIVEVALUEMAPPINGS_H_ | 2776 #endif // SKY_ENGINE_CORE_CSS_CSSPRIMITIVEVALUEMAPPINGS_H_ |
| OLD | NEW |