| 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 1464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1475 return EVerticalAlign::kBaselineMiddle; | 1475 return EVerticalAlign::kBaselineMiddle; |
| 1476 default: | 1476 default: |
| 1477 break; | 1477 break; |
| 1478 } | 1478 } |
| 1479 | 1479 |
| 1480 NOTREACHED(); | 1480 NOTREACHED(); |
| 1481 return EVerticalAlign::kTop; | 1481 return EVerticalAlign::kTop; |
| 1482 } | 1482 } |
| 1483 | 1483 |
| 1484 template <> | 1484 template <> |
| 1485 inline CSSIdentifierValue::CSSIdentifierValue(EWordBreak e) | |
| 1486 : CSSValue(kIdentifierClass) { | |
| 1487 switch (e) { | |
| 1488 case EWordBreak::kNormal: | |
| 1489 value_id_ = CSSValueNormal; | |
| 1490 break; | |
| 1491 case EWordBreak::kBreakAll: | |
| 1492 value_id_ = CSSValueBreakAll; | |
| 1493 break; | |
| 1494 case EWordBreak::kBreakWord: | |
| 1495 value_id_ = CSSValueBreakWord; | |
| 1496 break; | |
| 1497 case EWordBreak::kKeepAll: | |
| 1498 value_id_ = CSSValueKeepAll; | |
| 1499 break; | |
| 1500 } | |
| 1501 } | |
| 1502 | |
| 1503 template <> | |
| 1504 inline EWordBreak CSSIdentifierValue::ConvertTo() const { | |
| 1505 switch (value_id_) { | |
| 1506 case CSSValueBreakAll: | |
| 1507 return EWordBreak::kBreakAll; | |
| 1508 case CSSValueBreakWord: | |
| 1509 return EWordBreak::kBreakWord; | |
| 1510 case CSSValueNormal: | |
| 1511 return EWordBreak::kNormal; | |
| 1512 case CSSValueKeepAll: | |
| 1513 return EWordBreak::kKeepAll; | |
| 1514 default: | |
| 1515 break; | |
| 1516 } | |
| 1517 | |
| 1518 NOTREACHED(); | |
| 1519 return EWordBreak::kNormal; | |
| 1520 } | |
| 1521 | |
| 1522 template <> | |
| 1523 inline CSSIdentifierValue::CSSIdentifierValue(TextCombine e) | 1485 inline CSSIdentifierValue::CSSIdentifierValue(TextCombine e) |
| 1524 : CSSValue(kIdentifierClass) { | 1486 : CSSValue(kIdentifierClass) { |
| 1525 switch (e) { | 1487 switch (e) { |
| 1526 case kTextCombineNone: | 1488 case kTextCombineNone: |
| 1527 value_id_ = CSSValueNone; | 1489 value_id_ = CSSValueNone; |
| 1528 break; | 1490 break; |
| 1529 case kTextCombineAll: | 1491 case kTextCombineAll: |
| 1530 value_id_ = CSSValueAll; | 1492 value_id_ = CSSValueAll; |
| 1531 break; | 1493 break; |
| 1532 } | 1494 } |
| (...skipping 1759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3292 default: | 3254 default: |
| 3293 break; | 3255 break; |
| 3294 } | 3256 } |
| 3295 NOTREACHED(); | 3257 NOTREACHED(); |
| 3296 return kContainsNone; | 3258 return kContainsNone; |
| 3297 } | 3259 } |
| 3298 | 3260 |
| 3299 } // namespace blink | 3261 } // namespace blink |
| 3300 | 3262 |
| 3301 #endif | 3263 #endif |
| OLD | NEW |