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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 case ReflectionLeft: | 141 case ReflectionLeft: |
142 m_value.valueID = CSSValueLeft; | 142 m_value.valueID = CSSValueLeft; |
143 break; | 143 break; |
144 case ReflectionRight: | 144 case ReflectionRight: |
145 m_value.valueID = CSSValueRight; | 145 m_value.valueID = CSSValueRight; |
146 } | 146 } |
147 } | 147 } |
148 | 148 |
149 template<> inline CSSPrimitiveValue::operator CSSReflectionDirection() const | 149 template<> inline CSSPrimitiveValue::operator CSSReflectionDirection() const |
150 { | 150 { |
151 ASSERT(isValueID()); | 151 ASSERT(isValueID() || isVariableReference()); |
152 switch (m_value.valueID) { | 152 switch (m_value.valueID) { |
153 case CSSValueAbove: | 153 case CSSValueAbove: |
154 return ReflectionAbove; | 154 return ReflectionAbove; |
155 case CSSValueBelow: | 155 case CSSValueBelow: |
156 return ReflectionBelow; | 156 return ReflectionBelow; |
157 case CSSValueLeft: | 157 case CSSValueLeft: |
158 return ReflectionLeft; | 158 return ReflectionLeft; |
159 case CSSValueRight: | 159 case CSSValueRight: |
160 return ReflectionRight; | 160 return ReflectionRight; |
161 default: | 161 default: |
(...skipping 4505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4667 default: | 4667 default: |
4668 break; | 4668 break; |
4669 } | 4669 } |
4670 ASSERT_NOT_REACHED(); | 4670 ASSERT_NOT_REACHED(); |
4671 return ScrollSnapTypeNone; | 4671 return ScrollSnapTypeNone; |
4672 } | 4672 } |
4673 | 4673 |
4674 } // namespace blink | 4674 } // namespace blink |
4675 | 4675 |
4676 #endif | 4676 #endif |
OLD | NEW |