| 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. (http://www.torchmo
bile.com/) | 4 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 5 * Copyright (C) 2009 Jeff Schiller <codedread@gmail.com> | 5 * Copyright (C) 2009 Jeff Schiller <codedread@gmail.com> |
| 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 7 * | 7 * |
| 8 * Redistribution and use in source and binary forms, with or without | 8 * Redistribution and use in source and binary forms, with or without |
| 9 * modification, are permitted provided that the following conditions | 9 * modification, are permitted provided that the following conditions |
| 10 * are met: | 10 * are met: |
| (...skipping 4032 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4043 case CSSValueCollapse: | 4043 case CSSValueCollapse: |
| 4044 return BCOLLAPSE; | 4044 return BCOLLAPSE; |
| 4045 default: | 4045 default: |
| 4046 break; | 4046 break; |
| 4047 } | 4047 } |
| 4048 | 4048 |
| 4049 ASSERT_NOT_REACHED(); | 4049 ASSERT_NOT_REACHED(); |
| 4050 return BSEPARATE; | 4050 return BSEPARATE; |
| 4051 } | 4051 } |
| 4052 | 4052 |
| 4053 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EBorderFit e) | |
| 4054 : CSSValue(PrimitiveClass) | |
| 4055 { | |
| 4056 m_primitiveUnitType = CSS_VALUE_ID; | |
| 4057 switch (e) { | |
| 4058 case BorderFitBorder: | |
| 4059 m_value.valueID = CSSValueBorder; | |
| 4060 break; | |
| 4061 case BorderFitLines: | |
| 4062 m_value.valueID = CSSValueLines; | |
| 4063 break; | |
| 4064 } | |
| 4065 } | |
| 4066 | |
| 4067 template<> inline CSSPrimitiveValue::operator EBorderFit() const | |
| 4068 { | |
| 4069 ASSERT(isValueID()); | |
| 4070 switch (m_value.valueID) { | |
| 4071 case CSSValueBorder: | |
| 4072 return BorderFitBorder; | |
| 4073 case CSSValueLines: | |
| 4074 return BorderFitLines; | |
| 4075 default: | |
| 4076 break; | |
| 4077 } | |
| 4078 | |
| 4079 ASSERT_NOT_REACHED(); | |
| 4080 return BorderFitLines; | |
| 4081 } | |
| 4082 | |
| 4083 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EImageRendering e) | 4053 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EImageRendering e) |
| 4084 : CSSValue(PrimitiveClass) | 4054 : CSSValue(PrimitiveClass) |
| 4085 { | 4055 { |
| 4086 m_primitiveUnitType = CSS_VALUE_ID; | 4056 m_primitiveUnitType = CSS_VALUE_ID; |
| 4087 switch (e) { | 4057 switch (e) { |
| 4088 case ImageRenderingAuto: | 4058 case ImageRenderingAuto: |
| 4089 m_value.valueID = CSSValueAuto; | 4059 m_value.valueID = CSSValueAuto; |
| 4090 break; | 4060 break; |
| 4091 case ImageRenderingOptimizeSpeed: | 4061 case ImageRenderingOptimizeSpeed: |
| 4092 m_value.valueID = CSSValueOptimizespeed; | 4062 m_value.valueID = CSSValueOptimizespeed; |
| (...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4849 default: | 4819 default: |
| 4850 break; | 4820 break; |
| 4851 } | 4821 } |
| 4852 ASSERT_NOT_REACHED(); | 4822 ASSERT_NOT_REACHED(); |
| 4853 return ScrollBehaviorInstant; | 4823 return ScrollBehaviorInstant; |
| 4854 } | 4824 } |
| 4855 | 4825 |
| 4856 } | 4826 } |
| 4857 | 4827 |
| 4858 #endif | 4828 #endif |
| OLD | NEW |