| 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 1703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1714 switch (e) { | 1714 switch (e) { |
| 1715 case StaticPosition: | 1715 case StaticPosition: |
| 1716 m_value.valueID = CSSValueStatic; | 1716 m_value.valueID = CSSValueStatic; |
| 1717 break; | 1717 break; |
| 1718 case RelativePosition: | 1718 case RelativePosition: |
| 1719 m_value.valueID = CSSValueRelative; | 1719 m_value.valueID = CSSValueRelative; |
| 1720 break; | 1720 break; |
| 1721 case AbsolutePosition: | 1721 case AbsolutePosition: |
| 1722 m_value.valueID = CSSValueAbsolute; | 1722 m_value.valueID = CSSValueAbsolute; |
| 1723 break; | 1723 break; |
| 1724 case FixedPosition: | |
| 1725 m_value.valueID = CSSValueFixed; | |
| 1726 break; | |
| 1727 } | 1724 } |
| 1728 } | 1725 } |
| 1729 | 1726 |
| 1730 template<> inline CSSPrimitiveValue::operator EPosition() const | 1727 template<> inline CSSPrimitiveValue::operator EPosition() const |
| 1731 { | 1728 { |
| 1732 ASSERT(isValueID()); | 1729 ASSERT(isValueID()); |
| 1733 switch (m_value.valueID) { | 1730 switch (m_value.valueID) { |
| 1734 case CSSValueStatic: | 1731 case CSSValueStatic: |
| 1735 return StaticPosition; | 1732 return StaticPosition; |
| 1736 case CSSValueRelative: | 1733 case CSSValueRelative: |
| 1737 return RelativePosition; | 1734 return RelativePosition; |
| 1738 case CSSValueAbsolute: | 1735 case CSSValueAbsolute: |
| 1739 return AbsolutePosition; | 1736 return AbsolutePosition; |
| 1740 case CSSValueFixed: | |
| 1741 return FixedPosition; | |
| 1742 default: | 1737 default: |
| 1743 break; | 1738 break; |
| 1744 } | 1739 } |
| 1745 | 1740 |
| 1746 ASSERT_NOT_REACHED(); | 1741 ASSERT_NOT_REACHED(); |
| 1747 return StaticPosition; | 1742 return StaticPosition; |
| 1748 } | 1743 } |
| 1749 | 1744 |
| 1750 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EResize e) | 1745 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EResize e) |
| 1751 : CSSValue(PrimitiveClass) | 1746 : CSSValue(PrimitiveClass) |
| (...skipping 2113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3865 default: | 3860 default: |
| 3866 break; | 3861 break; |
| 3867 } | 3862 } |
| 3868 ASSERT_NOT_REACHED(); | 3863 ASSERT_NOT_REACHED(); |
| 3869 return ScrollBehaviorInstant; | 3864 return ScrollBehaviorInstant; |
| 3870 } | 3865 } |
| 3871 | 3866 |
| 3872 } | 3867 } |
| 3873 | 3868 |
| 3874 #endif | 3869 #endif |
| OLD | NEW |