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

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

Issue 2528573002: Changed EBorderCollapse to an enum class and renamed its members (Closed)
Patch Set: Rebase Created 4 years 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/css/ComputedStyleCSSValueMapping.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 3852 matching lines...) Expand 10 before | Expand all | Expand 10 after
3863 } 3863 }
3864 3864
3865 ASSERT_NOT_REACHED(); 3865 ASSERT_NOT_REACHED();
3866 return AB_AUTO; 3866 return AB_AUTO;
3867 } 3867 }
3868 3868
3869 template <> 3869 template <>
3870 inline CSSIdentifierValue::CSSIdentifierValue(EBorderCollapse e) 3870 inline CSSIdentifierValue::CSSIdentifierValue(EBorderCollapse e)
3871 : CSSValue(IdentifierClass) { 3871 : CSSValue(IdentifierClass) {
3872 switch (e) { 3872 switch (e) {
3873 case BorderCollapseSeparate: 3873 case EBorderCollapse::Separate:
3874 m_valueID = CSSValueSeparate; 3874 m_valueID = CSSValueSeparate;
3875 break; 3875 break;
3876 case BorderCollapseCollapse: 3876 case EBorderCollapse::Collapse:
3877 m_valueID = CSSValueCollapse; 3877 m_valueID = CSSValueCollapse;
3878 break; 3878 break;
3879 } 3879 }
3880 } 3880 }
3881 3881
3882 template <> 3882 template <>
3883 inline EBorderCollapse CSSIdentifierValue::convertTo() const { 3883 inline EBorderCollapse CSSIdentifierValue::convertTo() const {
3884 switch (m_valueID) { 3884 switch (m_valueID) {
3885 case CSSValueSeparate: 3885 case CSSValueSeparate:
3886 return BorderCollapseSeparate; 3886 return EBorderCollapse::Separate;
3887 case CSSValueCollapse: 3887 case CSSValueCollapse:
3888 return BorderCollapseCollapse; 3888 return EBorderCollapse::Collapse;
3889 default: 3889 default:
3890 break; 3890 break;
3891 } 3891 }
3892 3892
3893 ASSERT_NOT_REACHED(); 3893 ASSERT_NOT_REACHED();
3894 return BorderCollapseSeparate; 3894 return EBorderCollapse::Separate;
3895 } 3895 }
3896 3896
3897 template <> 3897 template <>
3898 inline CSSIdentifierValue::CSSIdentifierValue(EImageRendering e) 3898 inline CSSIdentifierValue::CSSIdentifierValue(EImageRendering e)
3899 : CSSValue(IdentifierClass) { 3899 : CSSValue(IdentifierClass) {
3900 switch (e) { 3900 switch (e) {
3901 case ImageRenderingAuto: 3901 case ImageRenderingAuto:
3902 m_valueID = CSSValueAuto; 3902 m_valueID = CSSValueAuto;
3903 break; 3903 break;
3904 case ImageRenderingOptimizeSpeed: 3904 case ImageRenderingOptimizeSpeed:
(...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after
4744 default: 4744 default:
4745 break; 4745 break;
4746 } 4746 }
4747 ASSERT_NOT_REACHED(); 4747 ASSERT_NOT_REACHED();
4748 return ContainsNone; 4748 return ContainsNone;
4749 } 4749 }
4750 4750
4751 } // namespace blink 4751 } // namespace blink
4752 4752
4753 #endif 4753 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698