| 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 2773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2784 } | 2784 } |
| 2785 | 2785 |
| 2786 ASSERT_NOT_REACHED(); | 2786 ASSERT_NOT_REACHED(); |
| 2787 return NormalWordBreak; | 2787 return NormalWordBreak; |
| 2788 } | 2788 } |
| 2789 | 2789 |
| 2790 template <> | 2790 template <> |
| 2791 inline CSSIdentifierValue::CSSIdentifierValue(EOverflowAnchor e) | 2791 inline CSSIdentifierValue::CSSIdentifierValue(EOverflowAnchor e) |
| 2792 : CSSValue(IdentifierClass) { | 2792 : CSSValue(IdentifierClass) { |
| 2793 switch (e) { | 2793 switch (e) { |
| 2794 case AnchorVisible: | 2794 case EOverflowAnchor::Visible: |
| 2795 m_valueID = CSSValueVisible; | 2795 m_valueID = CSSValueVisible; |
| 2796 break; | 2796 break; |
| 2797 case AnchorNone: | 2797 case EOverflowAnchor::None: |
| 2798 m_valueID = CSSValueNone; | 2798 m_valueID = CSSValueNone; |
| 2799 break; | 2799 break; |
| 2800 case AnchorAuto: | 2800 case EOverflowAnchor::Auto: |
| 2801 m_valueID = CSSValueAuto; | 2801 m_valueID = CSSValueAuto; |
| 2802 break; | 2802 break; |
| 2803 } | 2803 } |
| 2804 } | 2804 } |
| 2805 | 2805 |
| 2806 template <> | 2806 template <> |
| 2807 inline EOverflowAnchor CSSIdentifierValue::convertTo() const { | 2807 inline EOverflowAnchor CSSIdentifierValue::convertTo() const { |
| 2808 switch (m_valueID) { | 2808 switch (m_valueID) { |
| 2809 case CSSValueVisible: | 2809 case CSSValueVisible: |
| 2810 return AnchorVisible; | 2810 return EOverflowAnchor::Visible; |
| 2811 case CSSValueNone: | 2811 case CSSValueNone: |
| 2812 return AnchorNone; | 2812 return EOverflowAnchor::None; |
| 2813 case CSSValueAuto: | 2813 case CSSValueAuto: |
| 2814 return AnchorAuto; | 2814 return EOverflowAnchor::Auto; |
| 2815 default: | 2815 default: |
| 2816 break; | 2816 break; |
| 2817 } | 2817 } |
| 2818 | 2818 |
| 2819 NOTREACHED(); | 2819 NOTREACHED(); |
| 2820 return AnchorNone; | 2820 return EOverflowAnchor::None; |
| 2821 } | 2821 } |
| 2822 | 2822 |
| 2823 template <> | 2823 template <> |
| 2824 inline CSSIdentifierValue::CSSIdentifierValue(EOverflowWrap e) | 2824 inline CSSIdentifierValue::CSSIdentifierValue(EOverflowWrap e) |
| 2825 : CSSValue(IdentifierClass) { | 2825 : CSSValue(IdentifierClass) { |
| 2826 switch (e) { | 2826 switch (e) { |
| 2827 case NormalOverflowWrap: | 2827 case NormalOverflowWrap: |
| 2828 m_valueID = CSSValueNormal; | 2828 m_valueID = CSSValueNormal; |
| 2829 break; | 2829 break; |
| 2830 case BreakOverflowWrap: | 2830 case BreakOverflowWrap: |
| (...skipping 1954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4785 default: | 4785 default: |
| 4786 break; | 4786 break; |
| 4787 } | 4787 } |
| 4788 ASSERT_NOT_REACHED(); | 4788 ASSERT_NOT_REACHED(); |
| 4789 return ContainsNone; | 4789 return ContainsNone; |
| 4790 } | 4790 } |
| 4791 | 4791 |
| 4792 } // namespace blink | 4792 } // namespace blink |
| 4793 | 4793 |
| 4794 #endif | 4794 #endif |
| OLD | NEW |