| 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 2964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2975 } | 2975 } |
| 2976 NOTREACHED(); | 2976 NOTREACHED(); |
| 2977 return kContentBox; | 2977 return kContentBox; |
| 2978 } | 2978 } |
| 2979 | 2979 |
| 2980 template <> | 2980 template <> |
| 2981 inline CSSIdentifierValue::CSSIdentifierValue(ItemPosition item_position) | 2981 inline CSSIdentifierValue::CSSIdentifierValue(ItemPosition item_position) |
| 2982 : CSSValue(kIdentifierClass) { | 2982 : CSSValue(kIdentifierClass) { |
| 2983 switch (item_position) { | 2983 switch (item_position) { |
| 2984 case kItemPositionAuto: | 2984 case kItemPositionAuto: |
| 2985 // The 'auto' values might have been already resolved. | 2985 value_id_ = CSSValueAuto; |
| 2986 NOTREACHED(); | |
| 2987 value_id_ = CSSValueNormal; | |
| 2988 break; | 2986 break; |
| 2989 case kItemPositionNormal: | 2987 case kItemPositionNormal: |
| 2990 value_id_ = CSSValueNormal; | 2988 value_id_ = CSSValueNormal; |
| 2991 break; | 2989 break; |
| 2992 case kItemPositionStretch: | 2990 case kItemPositionStretch: |
| 2993 value_id_ = CSSValueStretch; | 2991 value_id_ = CSSValueStretch; |
| 2994 break; | 2992 break; |
| 2995 case kItemPositionBaseline: | 2993 case kItemPositionBaseline: |
| 2996 value_id_ = CSSValueBaseline; | 2994 value_id_ = CSSValueBaseline; |
| 2997 break; | 2995 break; |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3320 default: | 3318 default: |
| 3321 break; | 3319 break; |
| 3322 } | 3320 } |
| 3323 NOTREACHED(); | 3321 NOTREACHED(); |
| 3324 return kContainsNone; | 3322 return kContainsNone; |
| 3325 } | 3323 } |
| 3326 | 3324 |
| 3327 } // namespace blink | 3325 } // namespace blink |
| 3328 | 3326 |
| 3329 #endif | 3327 #endif |
| OLD | NEW |