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

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

Issue 904613005: Remove position:relative. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 months 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/CSSValueKeywords.in » ('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 1510 matching lines...) Expand 10 before | Expand all | Expand 10 after
1521 } 1521 }
1522 1522
1523 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EPosition e) 1523 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EPosition e)
1524 : CSSValue(PrimitiveClass) 1524 : CSSValue(PrimitiveClass)
1525 { 1525 {
1526 m_primitiveUnitType = CSS_VALUE_ID; 1526 m_primitiveUnitType = CSS_VALUE_ID;
1527 switch (e) { 1527 switch (e) {
1528 case StaticPosition: 1528 case StaticPosition:
1529 m_value.valueID = CSSValueStatic; 1529 m_value.valueID = CSSValueStatic;
1530 break; 1530 break;
1531 case RelativePosition:
1532 m_value.valueID = CSSValueRelative;
1533 break;
1534 case AbsolutePosition: 1531 case AbsolutePosition:
1535 m_value.valueID = CSSValueAbsolute; 1532 m_value.valueID = CSSValueAbsolute;
1536 break; 1533 break;
1537 } 1534 }
1538 } 1535 }
1539 1536
1540 template<> inline CSSPrimitiveValue::operator EPosition() const 1537 template<> inline CSSPrimitiveValue::operator EPosition() const
1541 { 1538 {
1542 ASSERT(isValueID()); 1539 ASSERT(isValueID());
1543 switch (m_value.valueID) { 1540 switch (m_value.valueID) {
1544 case CSSValueStatic: 1541 case CSSValueStatic:
1545 return StaticPosition; 1542 return StaticPosition;
1546 case CSSValueRelative:
1547 return RelativePosition;
1548 case CSSValueAbsolute: 1543 case CSSValueAbsolute:
1549 return AbsolutePosition; 1544 return AbsolutePosition;
1550 default: 1545 default:
1551 break; 1546 break;
1552 } 1547 }
1553 1548
1554 ASSERT_NOT_REACHED(); 1549 ASSERT_NOT_REACHED();
1555 return StaticPosition; 1550 return StaticPosition;
1556 } 1551 }
1557 1552
(...skipping 1869 matching lines...) Expand 10 before | Expand all | Expand 10 after
3427 default: 3422 default:
3428 break; 3423 break;
3429 } 3424 }
3430 ASSERT_NOT_REACHED(); 3425 ASSERT_NOT_REACHED();
3431 return OverflowAlignmentTrue; 3426 return OverflowAlignmentTrue;
3432 } 3427 }
3433 3428
3434 } 3429 }
3435 3430
3436 #endif // SKY_ENGINE_CORE_CSS_CSSPRIMITIVEVALUEMAPPINGS_H_ 3431 #endif // SKY_ENGINE_CORE_CSS_CSSPRIMITIVEVALUEMAPPINGS_H_
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/css/CSSValueKeywords.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698