| 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 1265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1276 } | 1276 } |
| 1277 | 1277 |
| 1278 NOTREACHED(); | 1278 NOTREACHED(); |
| 1279 return kTextJustifyAuto; | 1279 return kTextJustifyAuto; |
| 1280 } | 1280 } |
| 1281 | 1281 |
| 1282 template <> | 1282 template <> |
| 1283 inline TextDecoration CSSIdentifierValue::ConvertTo() const { | 1283 inline TextDecoration CSSIdentifierValue::ConvertTo() const { |
| 1284 switch (value_id_) { | 1284 switch (value_id_) { |
| 1285 case CSSValueNone: | 1285 case CSSValueNone: |
| 1286 return kTextDecorationNone; | 1286 return TextDecoration::kNone; |
| 1287 case CSSValueUnderline: | 1287 case CSSValueUnderline: |
| 1288 return kTextDecorationUnderline; | 1288 return TextDecoration::kUnderline; |
| 1289 case CSSValueOverline: | 1289 case CSSValueOverline: |
| 1290 return kTextDecorationOverline; | 1290 return TextDecoration::kOverline; |
| 1291 case CSSValueLineThrough: | 1291 case CSSValueLineThrough: |
| 1292 return kTextDecorationLineThrough; | 1292 return TextDecoration::kLineThrough; |
| 1293 case CSSValueBlink: | 1293 case CSSValueBlink: |
| 1294 return kTextDecorationBlink; | 1294 return TextDecoration::kBlink; |
| 1295 default: | 1295 default: |
| 1296 break; | 1296 break; |
| 1297 } | 1297 } |
| 1298 | 1298 |
| 1299 NOTREACHED(); | 1299 NOTREACHED(); |
| 1300 return kTextDecorationNone; | 1300 return TextDecoration::kNone; |
| 1301 } | 1301 } |
| 1302 | 1302 |
| 1303 template <> | 1303 template <> |
| 1304 inline TextDecorationStyle CSSIdentifierValue::ConvertTo() const { | 1304 inline TextDecorationStyle CSSIdentifierValue::ConvertTo() const { |
| 1305 switch (value_id_) { | 1305 switch (value_id_) { |
| 1306 case CSSValueSolid: | 1306 case CSSValueSolid: |
| 1307 return kTextDecorationStyleSolid; | 1307 return kTextDecorationStyleSolid; |
| 1308 case CSSValueDouble: | 1308 case CSSValueDouble: |
| 1309 return kTextDecorationStyleDouble; | 1309 return kTextDecorationStyleDouble; |
| 1310 case CSSValueDotted: | 1310 case CSSValueDotted: |
| (...skipping 2102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3413 default: | 3413 default: |
| 3414 break; | 3414 break; |
| 3415 } | 3415 } |
| 3416 NOTREACHED(); | 3416 NOTREACHED(); |
| 3417 return kContainsNone; | 3417 return kContainsNone; |
| 3418 } | 3418 } |
| 3419 | 3419 |
| 3420 } // namespace blink | 3420 } // namespace blink |
| 3421 | 3421 |
| 3422 #endif | 3422 #endif |
| OLD | NEW |