| 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 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1092 } | 1092 } |
| 1093 | 1093 |
| 1094 NOTREACHED(); | 1094 NOTREACHED(); |
| 1095 return ETableLayout::kAuto; | 1095 return ETableLayout::kAuto; |
| 1096 } | 1096 } |
| 1097 | 1097 |
| 1098 template <> | 1098 template <> |
| 1099 inline CSSIdentifierValue::CSSIdentifierValue(TextAlignLast e) | 1099 inline CSSIdentifierValue::CSSIdentifierValue(TextAlignLast e) |
| 1100 : CSSValue(kIdentifierClass) { | 1100 : CSSValue(kIdentifierClass) { |
| 1101 switch (e) { | 1101 switch (e) { |
| 1102 case kTextAlignLastStart: | 1102 case TextAlignLast::kStart: |
| 1103 value_id_ = CSSValueStart; | 1103 value_id_ = CSSValueStart; |
| 1104 break; | 1104 break; |
| 1105 case kTextAlignLastEnd: | 1105 case TextAlignLast::kEnd: |
| 1106 value_id_ = CSSValueEnd; | 1106 value_id_ = CSSValueEnd; |
| 1107 break; | 1107 break; |
| 1108 case kTextAlignLastLeft: | 1108 case TextAlignLast::kLeft: |
| 1109 value_id_ = CSSValueLeft; | 1109 value_id_ = CSSValueLeft; |
| 1110 break; | 1110 break; |
| 1111 case kTextAlignLastRight: | 1111 case TextAlignLast::kRight: |
| 1112 value_id_ = CSSValueRight; | 1112 value_id_ = CSSValueRight; |
| 1113 break; | 1113 break; |
| 1114 case kTextAlignLastCenter: | 1114 case TextAlignLast::kCenter: |
| 1115 value_id_ = CSSValueCenter; | 1115 value_id_ = CSSValueCenter; |
| 1116 break; | 1116 break; |
| 1117 case kTextAlignLastJustify: | 1117 case TextAlignLast::kJustify: |
| 1118 value_id_ = CSSValueJustify; | 1118 value_id_ = CSSValueJustify; |
| 1119 break; | 1119 break; |
| 1120 case kTextAlignLastAuto: | 1120 case TextAlignLast::kAuto: |
| 1121 value_id_ = CSSValueAuto; | 1121 value_id_ = CSSValueAuto; |
| 1122 break; | 1122 break; |
| 1123 } | 1123 } |
| 1124 } | 1124 } |
| 1125 | 1125 |
| 1126 template <> | 1126 template <> |
| 1127 inline TextAlignLast CSSIdentifierValue::ConvertTo() const { | 1127 inline TextAlignLast CSSIdentifierValue::ConvertTo() const { |
| 1128 switch (value_id_) { | 1128 switch (value_id_) { |
| 1129 case CSSValueAuto: | 1129 case CSSValueAuto: |
| 1130 return kTextAlignLastAuto; | 1130 return TextAlignLast::kAuto; |
| 1131 case CSSValueStart: | 1131 case CSSValueStart: |
| 1132 return kTextAlignLastStart; | 1132 return TextAlignLast::kStart; |
| 1133 case CSSValueEnd: | 1133 case CSSValueEnd: |
| 1134 return kTextAlignLastEnd; | 1134 return TextAlignLast::kEnd; |
| 1135 case CSSValueLeft: | 1135 case CSSValueLeft: |
| 1136 return kTextAlignLastLeft; | 1136 return TextAlignLast::kLeft; |
| 1137 case CSSValueRight: | 1137 case CSSValueRight: |
| 1138 return kTextAlignLastRight; | 1138 return TextAlignLast::kRight; |
| 1139 case CSSValueCenter: | 1139 case CSSValueCenter: |
| 1140 return kTextAlignLastCenter; | 1140 return TextAlignLast::kCenter; |
| 1141 case CSSValueJustify: | 1141 case CSSValueJustify: |
| 1142 return kTextAlignLastJustify; | 1142 return TextAlignLast::kJustify; |
| 1143 default: | 1143 default: |
| 1144 break; | 1144 break; |
| 1145 } | 1145 } |
| 1146 | 1146 |
| 1147 NOTREACHED(); | 1147 NOTREACHED(); |
| 1148 return kTextAlignLastAuto; | 1148 return TextAlignLast::kAuto; |
| 1149 } | 1149 } |
| 1150 | 1150 |
| 1151 template <> | 1151 template <> |
| 1152 inline CSSIdentifierValue::CSSIdentifierValue(TextJustify e) | 1152 inline CSSIdentifierValue::CSSIdentifierValue(TextJustify e) |
| 1153 : CSSValue(kIdentifierClass) { | 1153 : CSSValue(kIdentifierClass) { |
| 1154 switch (e) { | 1154 switch (e) { |
| 1155 case kTextJustifyAuto: | 1155 case kTextJustifyAuto: |
| 1156 value_id_ = CSSValueAuto; | 1156 value_id_ = CSSValueAuto; |
| 1157 break; | 1157 break; |
| 1158 case kTextJustifyNone: | 1158 case kTextJustifyNone: |
| (...skipping 2009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3168 default: | 3168 default: |
| 3169 break; | 3169 break; |
| 3170 } | 3170 } |
| 3171 NOTREACHED(); | 3171 NOTREACHED(); |
| 3172 return kContainsNone; | 3172 return kContainsNone; |
| 3173 } | 3173 } |
| 3174 | 3174 |
| 3175 } // namespace blink | 3175 } // namespace blink |
| 3176 | 3176 |
| 3177 #endif | 3177 #endif |
| OLD | NEW |