Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: sky/engine/core/css/CSSPrimitiveValueMappings.h

Issue 686633002: First pass at removing position:fixed. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | sky/engine/core/css/resolver/StyleAdjuster.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/css/resolver/StyleAdjuster.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698