| 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 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1175 return DRAG_ELEMENT; | 1175 return DRAG_ELEMENT; |
| 1176 default: | 1176 default: |
| 1177 break; | 1177 break; |
| 1178 } | 1178 } |
| 1179 | 1179 |
| 1180 NOTREACHED(); | 1180 NOTREACHED(); |
| 1181 return DRAG_AUTO; | 1181 return DRAG_AUTO; |
| 1182 } | 1182 } |
| 1183 | 1183 |
| 1184 template <> | 1184 template <> |
| 1185 inline CSSIdentifierValue::CSSIdentifierValue(EUserModify e) | |
| 1186 : CSSValue(kIdentifierClass) { | |
| 1187 switch (e) { | |
| 1188 case EUserModify::kReadOnly: | |
| 1189 value_id_ = CSSValueReadOnly; | |
| 1190 break; | |
| 1191 case EUserModify::kReadWrite: | |
| 1192 value_id_ = CSSValueReadWrite; | |
| 1193 break; | |
| 1194 case EUserModify::kReadWritePlaintextOnly: | |
| 1195 value_id_ = CSSValueReadWritePlaintextOnly; | |
| 1196 break; | |
| 1197 } | |
| 1198 } | |
| 1199 | |
| 1200 template <> | |
| 1201 inline EUserModify CSSIdentifierValue::ConvertTo() const { | |
| 1202 switch (value_id_) { | |
| 1203 case CSSValueReadOnly: | |
| 1204 return EUserModify::kReadOnly; | |
| 1205 case CSSValueReadWrite: | |
| 1206 return EUserModify::kReadWrite; | |
| 1207 case CSSValueReadWritePlaintextOnly: | |
| 1208 return EUserModify::kReadWritePlaintextOnly; | |
| 1209 default: | |
| 1210 break; | |
| 1211 } | |
| 1212 | |
| 1213 NOTREACHED(); | |
| 1214 return EUserModify::kReadOnly; | |
| 1215 } | |
| 1216 | |
| 1217 template <> | |
| 1218 inline CSSIdentifierValue::CSSIdentifierValue(EVerticalAlign a) | 1185 inline CSSIdentifierValue::CSSIdentifierValue(EVerticalAlign a) |
| 1219 : CSSValue(kIdentifierClass) { | 1186 : CSSValue(kIdentifierClass) { |
| 1220 switch (a) { | 1187 switch (a) { |
| 1221 case EVerticalAlign::kTop: | 1188 case EVerticalAlign::kTop: |
| 1222 value_id_ = CSSValueTop; | 1189 value_id_ = CSSValueTop; |
| 1223 break; | 1190 break; |
| 1224 case EVerticalAlign::kBottom: | 1191 case EVerticalAlign::kBottom: |
| 1225 value_id_ = CSSValueBottom; | 1192 value_id_ = CSSValueBottom; |
| 1226 break; | 1193 break; |
| 1227 case EVerticalAlign::kMiddle: | 1194 case EVerticalAlign::kMiddle: |
| (...skipping 1682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2910 default: | 2877 default: |
| 2911 break; | 2878 break; |
| 2912 } | 2879 } |
| 2913 NOTREACHED(); | 2880 NOTREACHED(); |
| 2914 return kContainsNone; | 2881 return kContainsNone; |
| 2915 } | 2882 } |
| 2916 | 2883 |
| 2917 } // namespace blink | 2884 } // namespace blink |
| 2918 | 2885 |
| 2919 #endif | 2886 #endif |
| OLD | NEW |