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 2793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2804 } | 2804 } |
2805 | 2805 |
2806 ASSERT_NOT_REACHED(); | 2806 ASSERT_NOT_REACHED(); |
2807 return NormalOverflowWrap; | 2807 return NormalOverflowWrap; |
2808 } | 2808 } |
2809 | 2809 |
2810 template <> | 2810 template <> |
2811 inline CSSIdentifierValue::CSSIdentifierValue(TextDirection e) | 2811 inline CSSIdentifierValue::CSSIdentifierValue(TextDirection e) |
2812 : CSSValue(IdentifierClass) { | 2812 : CSSValue(IdentifierClass) { |
2813 switch (e) { | 2813 switch (e) { |
2814 case LTR: | 2814 case TextDirection::Ltr: |
2815 m_valueID = CSSValueLtr; | 2815 m_valueID = CSSValueLtr; |
2816 break; | 2816 break; |
2817 case RTL: | 2817 case TextDirection::Rtl: |
2818 m_valueID = CSSValueRtl; | 2818 m_valueID = CSSValueRtl; |
2819 break; | 2819 break; |
2820 } | 2820 } |
2821 } | 2821 } |
2822 | 2822 |
2823 template <> | 2823 template <> |
2824 inline TextDirection CSSIdentifierValue::convertTo() const { | 2824 inline TextDirection CSSIdentifierValue::convertTo() const { |
2825 switch (m_valueID) { | 2825 switch (m_valueID) { |
2826 case CSSValueLtr: | 2826 case CSSValueLtr: |
2827 return LTR; | 2827 return TextDirection::Ltr; |
2828 case CSSValueRtl: | 2828 case CSSValueRtl: |
2829 return RTL; | 2829 return TextDirection::Rtl; |
2830 default: | 2830 default: |
2831 break; | 2831 break; |
2832 } | 2832 } |
2833 | 2833 |
2834 ASSERT_NOT_REACHED(); | 2834 ASSERT_NOT_REACHED(); |
2835 return LTR; | 2835 return TextDirection::Ltr; |
2836 } | 2836 } |
2837 | 2837 |
2838 template <> | 2838 template <> |
2839 inline CSSIdentifierValue::CSSIdentifierValue(WritingMode e) | 2839 inline CSSIdentifierValue::CSSIdentifierValue(WritingMode e) |
2840 : CSSValue(IdentifierClass) { | 2840 : CSSValue(IdentifierClass) { |
2841 switch (e) { | 2841 switch (e) { |
2842 case TopToBottomWritingMode: | 2842 case TopToBottomWritingMode: |
2843 m_valueID = CSSValueHorizontalTb; | 2843 m_valueID = CSSValueHorizontalTb; |
2844 break; | 2844 break; |
2845 case RightToLeftWritingMode: | 2845 case RightToLeftWritingMode: |
(...skipping 1898 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4744 default: | 4744 default: |
4745 break; | 4745 break; |
4746 } | 4746 } |
4747 ASSERT_NOT_REACHED(); | 4747 ASSERT_NOT_REACHED(); |
4748 return ContainsNone; | 4748 return ContainsNone; |
4749 } | 4749 } |
4750 | 4750 |
4751 } // namespace blink | 4751 } // namespace blink |
4752 | 4752 |
4753 #endif | 4753 #endif |
OLD | NEW |