| 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 case CSSValuePlusLighter: | 260 case CSSValuePlusLighter: |
| 261 return CompositePlusLighter; | 261 return CompositePlusLighter; |
| 262 default: | 262 default: |
| 263 break; | 263 break; |
| 264 } | 264 } |
| 265 | 265 |
| 266 ASSERT_NOT_REACHED(); | 266 ASSERT_NOT_REACHED(); |
| 267 return CompositeClear; | 267 return CompositeClear; |
| 268 } | 268 } |
| 269 | 269 |
| 270 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EBackfaceVisibility e) | |
| 271 : CSSValue(PrimitiveClass) | |
| 272 { | |
| 273 m_primitiveUnitType = CSS_VALUE_ID; | |
| 274 switch (e) { | |
| 275 case BackfaceVisibilityVisible: | |
| 276 m_value.valueID = CSSValueVisible; | |
| 277 break; | |
| 278 case BackfaceVisibilityHidden: | |
| 279 m_value.valueID = CSSValueHidden; | |
| 280 break; | |
| 281 } | |
| 282 } | |
| 283 | |
| 284 template<> inline CSSPrimitiveValue::operator EBackfaceVisibility() const | |
| 285 { | |
| 286 ASSERT(isValueID()); | |
| 287 switch (m_value.valueID) { | |
| 288 case CSSValueVisible: | |
| 289 return BackfaceVisibilityVisible; | |
| 290 case CSSValueHidden: | |
| 291 return BackfaceVisibilityHidden; | |
| 292 default: | |
| 293 break; | |
| 294 } | |
| 295 | |
| 296 ASSERT_NOT_REACHED(); | |
| 297 return BackfaceVisibilityHidden; | |
| 298 } | |
| 299 | |
| 300 | |
| 301 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EFillAttachment e) | 270 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EFillAttachment e) |
| 302 : CSSValue(PrimitiveClass) | 271 : CSSValue(PrimitiveClass) |
| 303 { | 272 { |
| 304 m_primitiveUnitType = CSS_VALUE_ID; | 273 m_primitiveUnitType = CSS_VALUE_ID; |
| 305 switch (e) { | 274 switch (e) { |
| 306 case LocalBackgroundAttachment: | 275 case LocalBackgroundAttachment: |
| 307 m_value.valueID = CSSValueLocal; | 276 m_value.valueID = CSSValueLocal; |
| 308 break; | 277 break; |
| 309 case FixedBackgroundAttachment: | 278 case FixedBackgroundAttachment: |
| 310 m_value.valueID = CSSValueFixed; | 279 m_value.valueID = CSSValueFixed; |
| (...skipping 2456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2767 default: | 2736 default: |
| 2768 break; | 2737 break; |
| 2769 } | 2738 } |
| 2770 ASSERT_NOT_REACHED(); | 2739 ASSERT_NOT_REACHED(); |
| 2771 return OverflowAlignmentTrue; | 2740 return OverflowAlignmentTrue; |
| 2772 } | 2741 } |
| 2773 | 2742 |
| 2774 } | 2743 } |
| 2775 | 2744 |
| 2776 #endif // SKY_ENGINE_CORE_CSS_CSSPRIMITIVEVALUEMAPPINGS_H_ | 2745 #endif // SKY_ENGINE_CORE_CSS_CSSPRIMITIVEVALUEMAPPINGS_H_ |
| OLD | NEW |