| 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 2040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2051 return EBreakInside::kAvoidColumn; | 2051 return EBreakInside::kAvoidColumn; |
| 2052 case CSSValueAvoidPage: | 2052 case CSSValueAvoidPage: |
| 2053 return EBreakInside::kAvoidPage; | 2053 return EBreakInside::kAvoidPage; |
| 2054 } | 2054 } |
| 2055 } | 2055 } |
| 2056 | 2056 |
| 2057 template <> | 2057 template <> |
| 2058 inline CSSIdentifierValue::CSSIdentifierValue(EPosition e) | 2058 inline CSSIdentifierValue::CSSIdentifierValue(EPosition e) |
| 2059 : CSSValue(IdentifierClass) { | 2059 : CSSValue(IdentifierClass) { |
| 2060 switch (e) { | 2060 switch (e) { |
| 2061 case StaticPosition: | 2061 case EPosition::kStatic: |
| 2062 m_valueID = CSSValueStatic; | 2062 m_valueID = CSSValueStatic; |
| 2063 break; | 2063 break; |
| 2064 case RelativePosition: | 2064 case EPosition::kRelative: |
| 2065 m_valueID = CSSValueRelative; | 2065 m_valueID = CSSValueRelative; |
| 2066 break; | 2066 break; |
| 2067 case AbsolutePosition: | 2067 case EPosition::kAbsolute: |
| 2068 m_valueID = CSSValueAbsolute; | 2068 m_valueID = CSSValueAbsolute; |
| 2069 break; | 2069 break; |
| 2070 case FixedPosition: | 2070 case EPosition::kFixed: |
| 2071 m_valueID = CSSValueFixed; | 2071 m_valueID = CSSValueFixed; |
| 2072 break; | 2072 break; |
| 2073 case StickyPosition: | 2073 case EPosition::kSticky: |
| 2074 m_valueID = CSSValueSticky; | 2074 m_valueID = CSSValueSticky; |
| 2075 break; | 2075 break; |
| 2076 } | 2076 } |
| 2077 } | 2077 } |
| 2078 | 2078 |
| 2079 template <> | 2079 template <> |
| 2080 inline EPosition CSSIdentifierValue::convertTo() const { | 2080 inline EPosition CSSIdentifierValue::convertTo() const { |
| 2081 switch (m_valueID) { | 2081 switch (m_valueID) { |
| 2082 case CSSValueStatic: | 2082 case CSSValueStatic: |
| 2083 return StaticPosition; | 2083 return EPosition::kStatic; |
| 2084 case CSSValueRelative: | 2084 case CSSValueRelative: |
| 2085 return RelativePosition; | 2085 return EPosition::kRelative; |
| 2086 case CSSValueAbsolute: | 2086 case CSSValueAbsolute: |
| 2087 return AbsolutePosition; | 2087 return EPosition::kAbsolute; |
| 2088 case CSSValueFixed: | 2088 case CSSValueFixed: |
| 2089 return FixedPosition; | 2089 return EPosition::kFixed; |
| 2090 case CSSValueSticky: | 2090 case CSSValueSticky: |
| 2091 return StickyPosition; | 2091 return EPosition::kSticky; |
| 2092 default: | 2092 default: |
| 2093 break; | 2093 break; |
| 2094 } | 2094 } |
| 2095 | 2095 |
| 2096 ASSERT_NOT_REACHED(); | 2096 ASSERT_NOT_REACHED(); |
| 2097 return StaticPosition; | 2097 return EPosition::kStatic; |
| 2098 } | 2098 } |
| 2099 | 2099 |
| 2100 template <> | 2100 template <> |
| 2101 inline CSSIdentifierValue::CSSIdentifierValue(EResize e) | 2101 inline CSSIdentifierValue::CSSIdentifierValue(EResize e) |
| 2102 : CSSValue(IdentifierClass) { | 2102 : CSSValue(IdentifierClass) { |
| 2103 switch (e) { | 2103 switch (e) { |
| 2104 case RESIZE_BOTH: | 2104 case RESIZE_BOTH: |
| 2105 m_valueID = CSSValueBoth; | 2105 m_valueID = CSSValueBoth; |
| 2106 break; | 2106 break; |
| 2107 case RESIZE_HORIZONTAL: | 2107 case RESIZE_HORIZONTAL: |
| (...skipping 2714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4822 default: | 4822 default: |
| 4823 break; | 4823 break; |
| 4824 } | 4824 } |
| 4825 ASSERT_NOT_REACHED(); | 4825 ASSERT_NOT_REACHED(); |
| 4826 return ContainsNone; | 4826 return ContainsNone; |
| 4827 } | 4827 } |
| 4828 | 4828 |
| 4829 } // namespace blink | 4829 } // namespace blink |
| 4830 | 4830 |
| 4831 #endif | 4831 #endif |
| OLD | NEW |