| 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 1297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1308 return EVerticalAlign::kBaselineMiddle; | 1308 return EVerticalAlign::kBaselineMiddle; |
| 1309 default: | 1309 default: |
| 1310 break; | 1310 break; |
| 1311 } | 1311 } |
| 1312 | 1312 |
| 1313 NOTREACHED(); | 1313 NOTREACHED(); |
| 1314 return EVerticalAlign::kTop; | 1314 return EVerticalAlign::kTop; |
| 1315 } | 1315 } |
| 1316 | 1316 |
| 1317 template <> | 1317 template <> |
| 1318 inline CSSIdentifierValue::CSSIdentifierValue(TextCombine e) | |
| 1319 : CSSValue(kIdentifierClass) { | |
| 1320 switch (e) { | |
| 1321 case TextCombine::kNone: | |
| 1322 value_id_ = CSSValueNone; | |
| 1323 break; | |
| 1324 case TextCombine::kAll: | |
| 1325 value_id_ = CSSValueAll; | |
| 1326 break; | |
| 1327 } | |
| 1328 } | |
| 1329 | |
| 1330 template <> | |
| 1331 inline TextCombine CSSIdentifierValue::ConvertTo() const { | |
| 1332 switch (value_id_) { | |
| 1333 case CSSValueNone: | |
| 1334 return TextCombine::kNone; | |
| 1335 case CSSValueAll: | |
| 1336 case CSSValueHorizontal: // -webkit-text-combine | |
| 1337 return TextCombine::kAll; | |
| 1338 default: | |
| 1339 break; | |
| 1340 } | |
| 1341 | |
| 1342 NOTREACHED(); | |
| 1343 return TextCombine::kNone; | |
| 1344 } | |
| 1345 | |
| 1346 template <> | |
| 1347 inline CSSIdentifierValue::CSSIdentifierValue(TextEmphasisPosition position) | 1318 inline CSSIdentifierValue::CSSIdentifierValue(TextEmphasisPosition position) |
| 1348 : CSSValue(kIdentifierClass) { | 1319 : CSSValue(kIdentifierClass) { |
| 1349 switch (position) { | 1320 switch (position) { |
| 1350 case TextEmphasisPosition::kOver: | 1321 case TextEmphasisPosition::kOver: |
| 1351 value_id_ = CSSValueOver; | 1322 value_id_ = CSSValueOver; |
| 1352 break; | 1323 break; |
| 1353 case TextEmphasisPosition::kUnder: | 1324 case TextEmphasisPosition::kUnder: |
| 1354 value_id_ = CSSValueUnder; | 1325 value_id_ = CSSValueUnder; |
| 1355 break; | 1326 break; |
| 1356 } | 1327 } |
| (...skipping 1654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3011 default: | 2982 default: |
| 3012 break; | 2983 break; |
| 3013 } | 2984 } |
| 3014 NOTREACHED(); | 2985 NOTREACHED(); |
| 3015 return kContainsNone; | 2986 return kContainsNone; |
| 3016 } | 2987 } |
| 3017 | 2988 |
| 3018 } // namespace blink | 2989 } // namespace blink |
| 3019 | 2990 |
| 3020 #endif | 2991 #endif |
| OLD | NEW |