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

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

Issue 689283003: Remove scroll corners and resizers. (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
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 1636 matching lines...) Expand 10 before | Expand all | Expand 10 after
1647 case CSSValueAbsolute: 1647 case CSSValueAbsolute:
1648 return AbsolutePosition; 1648 return AbsolutePosition;
1649 default: 1649 default:
1650 break; 1650 break;
1651 } 1651 }
1652 1652
1653 ASSERT_NOT_REACHED(); 1653 ASSERT_NOT_REACHED();
1654 return StaticPosition; 1654 return StaticPosition;
1655 } 1655 }
1656 1656
1657 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EResize e)
1658 : CSSValue(PrimitiveClass)
1659 {
1660 m_primitiveUnitType = CSS_VALUE_ID;
1661 switch (e) {
1662 case RESIZE_BOTH:
1663 m_value.valueID = CSSValueBoth;
1664 break;
1665 case RESIZE_HORIZONTAL:
1666 m_value.valueID = CSSValueHorizontal;
1667 break;
1668 case RESIZE_VERTICAL:
1669 m_value.valueID = CSSValueVertical;
1670 break;
1671 case RESIZE_NONE:
1672 m_value.valueID = CSSValueNone;
1673 break;
1674 }
1675 }
1676
1677 template<> inline CSSPrimitiveValue::operator EResize() const
1678 {
1679 ASSERT(isValueID());
1680 switch (m_value.valueID) {
1681 case CSSValueBoth:
1682 return RESIZE_BOTH;
1683 case CSSValueHorizontal:
1684 return RESIZE_HORIZONTAL;
1685 case CSSValueVertical:
1686 return RESIZE_VERTICAL;
1687 case CSSValueAuto:
1688 ASSERT_NOT_REACHED(); // Depends on settings, thus should be handled by the caller.
1689 return RESIZE_NONE;
1690 case CSSValueNone:
1691 return RESIZE_NONE;
1692 default:
1693 break;
1694 }
1695
1696 ASSERT_NOT_REACHED();
1697 return RESIZE_NONE;
1698 }
1699
1700 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(ETableLayout e) 1657 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(ETableLayout e)
1701 : CSSValue(PrimitiveClass) 1658 : CSSValue(PrimitiveClass)
1702 { 1659 {
1703 m_primitiveUnitType = CSS_VALUE_ID; 1660 m_primitiveUnitType = CSS_VALUE_ID;
1704 switch (e) { 1661 switch (e) {
1705 case TAUTO: 1662 case TAUTO:
1706 m_value.valueID = CSSValueAuto; 1663 m_value.valueID = CSSValueAuto;
1707 break; 1664 break;
1708 case TFIXED: 1665 case TFIXED:
1709 m_value.valueID = CSSValueFixed; 1666 m_value.valueID = CSSValueFixed;
(...skipping 1952 matching lines...) Expand 10 before | Expand all | Expand 10 after
3662 default: 3619 default:
3663 break; 3620 break;
3664 } 3621 }
3665 ASSERT_NOT_REACHED(); 3622 ASSERT_NOT_REACHED();
3666 return ScrollBehaviorInstant; 3623 return ScrollBehaviorInstant;
3667 } 3624 }
3668 3625
3669 } 3626 }
3670 3627
3671 #endif 3628 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/css/CSSComputedStyleDeclaration.cpp ('k') | sky/engine/core/css/CSSProperties.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698