| 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. | 4 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. |
| 5 * (http://www.torchmobile.com/) | 5 * (http://www.torchmobile.com/) |
| 6 * Copyright (C) 2009 Jeff Schiller <codedread@gmail.com> | 6 * Copyright (C) 2009 Jeff Schiller <codedread@gmail.com> |
| 7 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 7 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 8 * | 8 * |
| 9 * Redistribution and use in source and binary forms, with or without | 9 * Redistribution and use in source and binary forms, with or without |
| 10 * modification, are permitted provided that the following conditions | 10 * modification, are permitted provided that the following conditions |
| (...skipping 2275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2286 } | 2286 } |
| 2287 | 2287 |
| 2288 ASSERT_NOT_REACHED(); | 2288 ASSERT_NOT_REACHED(); |
| 2289 return TSNONE; | 2289 return TSNONE; |
| 2290 } | 2290 } |
| 2291 | 2291 |
| 2292 template <> | 2292 template <> |
| 2293 inline CSSIdentifierValue::CSSIdentifierValue(ETextTransform e) | 2293 inline CSSIdentifierValue::CSSIdentifierValue(ETextTransform e) |
| 2294 : CSSValue(IdentifierClass) { | 2294 : CSSValue(IdentifierClass) { |
| 2295 switch (e) { | 2295 switch (e) { |
| 2296 case CAPITALIZE: | 2296 case ETextTransform::Capitalize: |
| 2297 m_valueID = CSSValueCapitalize; | 2297 m_valueID = CSSValueCapitalize; |
| 2298 break; | 2298 break; |
| 2299 case UPPERCASE: | 2299 case ETextTransform::Uppercase: |
| 2300 m_valueID = CSSValueUppercase; | 2300 m_valueID = CSSValueUppercase; |
| 2301 break; | 2301 break; |
| 2302 case LOWERCASE: | 2302 case ETextTransform::Lowercase: |
| 2303 m_valueID = CSSValueLowercase; | 2303 m_valueID = CSSValueLowercase; |
| 2304 break; | 2304 break; |
| 2305 case TTNONE: | 2305 case ETextTransform::None: |
| 2306 m_valueID = CSSValueNone; | 2306 m_valueID = CSSValueNone; |
| 2307 break; | 2307 break; |
| 2308 } | 2308 } |
| 2309 } | 2309 } |
| 2310 | 2310 |
| 2311 template <> | 2311 template <> |
| 2312 inline ETextTransform CSSIdentifierValue::convertTo() const { | 2312 inline ETextTransform CSSIdentifierValue::convertTo() const { |
| 2313 switch (m_valueID) { | 2313 switch (m_valueID) { |
| 2314 case CSSValueCapitalize: | 2314 case CSSValueCapitalize: |
| 2315 return CAPITALIZE; | 2315 return ETextTransform::Capitalize; |
| 2316 case CSSValueUppercase: | 2316 case CSSValueUppercase: |
| 2317 return UPPERCASE; | 2317 return ETextTransform::Uppercase; |
| 2318 case CSSValueLowercase: | 2318 case CSSValueLowercase: |
| 2319 return LOWERCASE; | 2319 return ETextTransform::Lowercase; |
| 2320 case CSSValueNone: | 2320 case CSSValueNone: |
| 2321 return TTNONE; | 2321 return ETextTransform::None; |
| 2322 default: | 2322 default: |
| 2323 break; | 2323 break; |
| 2324 } | 2324 } |
| 2325 | 2325 |
| 2326 ASSERT_NOT_REACHED(); | 2326 ASSERT_NOT_REACHED(); |
| 2327 return TTNONE; | 2327 return ETextTransform::None; |
| 2328 } | 2328 } |
| 2329 | 2329 |
| 2330 template <> | 2330 template <> |
| 2331 inline CSSIdentifierValue::CSSIdentifierValue(EUnicodeBidi e) | 2331 inline CSSIdentifierValue::CSSIdentifierValue(EUnicodeBidi e) |
| 2332 : CSSValue(IdentifierClass) { | 2332 : CSSValue(IdentifierClass) { |
| 2333 switch (e) { | 2333 switch (e) { |
| 2334 case UBNormal: | 2334 case UBNormal: |
| 2335 m_valueID = CSSValueNormal; | 2335 m_valueID = CSSValueNormal; |
| 2336 break; | 2336 break; |
| 2337 case Embed: | 2337 case Embed: |
| (...skipping 2325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4663 default: | 4663 default: |
| 4664 break; | 4664 break; |
| 4665 } | 4665 } |
| 4666 ASSERT_NOT_REACHED(); | 4666 ASSERT_NOT_REACHED(); |
| 4667 return ContainsNone; | 4667 return ContainsNone; |
| 4668 } | 4668 } |
| 4669 | 4669 |
| 4670 } // namespace blink | 4670 } // namespace blink |
| 4671 | 4671 |
| 4672 #endif | 4672 #endif |
| OLD | NEW |