| 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 859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 870 } | 870 } |
| 871 | 871 |
| 872 NOTREACHED(); | 872 NOTREACHED(); |
| 873 return EFloat::kNone; | 873 return EFloat::kNone; |
| 874 } | 874 } |
| 875 | 875 |
| 876 template <> | 876 template <> |
| 877 inline CSSIdentifierValue::CSSIdentifierValue(Hyphens e) | 877 inline CSSIdentifierValue::CSSIdentifierValue(Hyphens e) |
| 878 : CSSValue(kIdentifierClass) { | 878 : CSSValue(kIdentifierClass) { |
| 879 switch (e) { | 879 switch (e) { |
| 880 case kHyphensAuto: | 880 case Hyphens::kAuto: |
| 881 value_id_ = CSSValueAuto; | 881 value_id_ = CSSValueAuto; |
| 882 break; | 882 break; |
| 883 case kHyphensManual: | 883 case Hyphens::kManual: |
| 884 value_id_ = CSSValueManual; | 884 value_id_ = CSSValueManual; |
| 885 break; | 885 break; |
| 886 case kHyphensNone: | 886 case Hyphens::kNone: |
| 887 value_id_ = CSSValueNone; | 887 value_id_ = CSSValueNone; |
| 888 break; | 888 break; |
| 889 } | 889 } |
| 890 } | 890 } |
| 891 | 891 |
| 892 template <> | 892 template <> |
| 893 inline Hyphens CSSIdentifierValue::ConvertTo() const { | 893 inline Hyphens CSSIdentifierValue::ConvertTo() const { |
| 894 switch (value_id_) { | 894 switch (value_id_) { |
| 895 case CSSValueAuto: | 895 case CSSValueAuto: |
| 896 return kHyphensAuto; | 896 return Hyphens::kAuto; |
| 897 case CSSValueManual: | 897 case CSSValueManual: |
| 898 return kHyphensManual; | 898 return Hyphens::kManual; |
| 899 case CSSValueNone: | 899 case CSSValueNone: |
| 900 return kHyphensNone; | 900 return Hyphens::kNone; |
| 901 default: | 901 default: |
| 902 break; | 902 break; |
| 903 } | 903 } |
| 904 | 904 |
| 905 NOTREACHED(); | 905 NOTREACHED(); |
| 906 return kHyphensManual; | 906 return Hyphens::kManual; |
| 907 } | 907 } |
| 908 | 908 |
| 909 template <> | 909 template <> |
| 910 inline CSSIdentifierValue::CSSIdentifierValue(LineBreak e) | 910 inline CSSIdentifierValue::CSSIdentifierValue(LineBreak e) |
| 911 : CSSValue(kIdentifierClass) { | 911 : CSSValue(kIdentifierClass) { |
| 912 switch (e) { | 912 switch (e) { |
| 913 case LineBreak::kAuto: | 913 case LineBreak::kAuto: |
| 914 value_id_ = CSSValueAuto; | 914 value_id_ = CSSValueAuto; |
| 915 break; | 915 break; |
| 916 case LineBreak::kLoose: | 916 case LineBreak::kLoose: |
| (...skipping 2403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3320 default: | 3320 default: |
| 3321 break; | 3321 break; |
| 3322 } | 3322 } |
| 3323 NOTREACHED(); | 3323 NOTREACHED(); |
| 3324 return kContainsNone; | 3324 return kContainsNone; |
| 3325 } | 3325 } |
| 3326 | 3326 |
| 3327 } // namespace blink | 3327 } // namespace blink |
| 3328 | 3328 |
| 3329 #endif | 3329 #endif |
| OLD | NEW |