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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h

Issue 2653123002: Changed EClear to an enum class and renamed its members (Closed)
Patch Set: Rebase Created 3 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 | third_party/WebKit/Source/core/layout/LayoutBlock.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. 4 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved.
5 * (http://www.torchmobile.com/) 5 * (http://www.torchmobile.com/)
6 * Copyright (C) 2009 Jeff Schiller <codedread@gmail.com> 6 * Copyright (C) 2009 Jeff Schiller <codedread@gmail.com>
7 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 7 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
(...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after
957 } 957 }
958 958
959 ASSERT_NOT_REACHED(); 959 ASSERT_NOT_REACHED();
960 return ECaptionSide::kTop; 960 return ECaptionSide::kTop;
961 } 961 }
962 962
963 template <> 963 template <>
964 inline CSSIdentifierValue::CSSIdentifierValue(EClear e) 964 inline CSSIdentifierValue::CSSIdentifierValue(EClear e)
965 : CSSValue(IdentifierClass) { 965 : CSSValue(IdentifierClass) {
966 switch (e) { 966 switch (e) {
967 case ClearNone: 967 case EClear::kNone:
968 m_valueID = CSSValueNone; 968 m_valueID = CSSValueNone;
969 break; 969 break;
970 case ClearLeft: 970 case EClear::kLeft:
971 m_valueID = CSSValueLeft; 971 m_valueID = CSSValueLeft;
972 break; 972 break;
973 case ClearRight: 973 case EClear::kRight:
974 m_valueID = CSSValueRight; 974 m_valueID = CSSValueRight;
975 break; 975 break;
976 case ClearBoth: 976 case EClear::kBoth:
977 m_valueID = CSSValueBoth; 977 m_valueID = CSSValueBoth;
978 break; 978 break;
979 } 979 }
980 } 980 }
981 981
982 template <> 982 template <>
983 inline EClear CSSIdentifierValue::convertTo() const { 983 inline EClear CSSIdentifierValue::convertTo() const {
984 switch (m_valueID) { 984 switch (m_valueID) {
985 case CSSValueNone: 985 case CSSValueNone:
986 return ClearNone; 986 return EClear::kNone;
987 case CSSValueLeft: 987 case CSSValueLeft:
988 return ClearLeft; 988 return EClear::kLeft;
989 case CSSValueRight: 989 case CSSValueRight:
990 return ClearRight; 990 return EClear::kRight;
991 case CSSValueBoth: 991 case CSSValueBoth:
992 return ClearBoth; 992 return EClear::kBoth;
993 default: 993 default:
994 break; 994 break;
995 } 995 }
996 996
997 ASSERT_NOT_REACHED(); 997 ASSERT_NOT_REACHED();
998 return ClearNone; 998 return EClear::kNone;
999 } 999 }
1000 1000
1001 template <> 1001 template <>
1002 inline CSSIdentifierValue::CSSIdentifierValue(ECursor e) 1002 inline CSSIdentifierValue::CSSIdentifierValue(ECursor e)
1003 : CSSValue(IdentifierClass) { 1003 : CSSValue(IdentifierClass) {
1004 switch (e) { 1004 switch (e) {
1005 case ECursor::kAuto: 1005 case ECursor::kAuto:
1006 m_valueID = CSSValueAuto; 1006 m_valueID = CSSValueAuto;
1007 break; 1007 break;
1008 case ECursor::kCrosshair: 1008 case ECursor::kCrosshair:
(...skipping 3781 matching lines...) Expand 10 before | Expand all | Expand 10 after
4790 default: 4790 default:
4791 break; 4791 break;
4792 } 4792 }
4793 ASSERT_NOT_REACHED(); 4793 ASSERT_NOT_REACHED();
4794 return ContainsNone; 4794 return ContainsNone;
4795 } 4795 }
4796 4796
4797 } // namespace blink 4797 } // namespace blink
4798 4798
4799 #endif 4799 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBlock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698