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

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

Issue 2658953004: Rename EOverflowAnchor values with k prefix. (Closed)
Patch Set: 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/dom/Document.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 2778 matching lines...) Expand 10 before | Expand all | Expand 10 after
2789 } 2789 }
2790 2790
2791 ASSERT_NOT_REACHED(); 2791 ASSERT_NOT_REACHED();
2792 return NormalWordBreak; 2792 return NormalWordBreak;
2793 } 2793 }
2794 2794
2795 template <> 2795 template <>
2796 inline CSSIdentifierValue::CSSIdentifierValue(EOverflowAnchor e) 2796 inline CSSIdentifierValue::CSSIdentifierValue(EOverflowAnchor e)
2797 : CSSValue(IdentifierClass) { 2797 : CSSValue(IdentifierClass) {
2798 switch (e) { 2798 switch (e) {
2799 case EOverflowAnchor::Visible: 2799 case EOverflowAnchor::kVisible:
2800 m_valueID = CSSValueVisible; 2800 m_valueID = CSSValueVisible;
2801 break; 2801 break;
2802 case EOverflowAnchor::None: 2802 case EOverflowAnchor::kNone:
2803 m_valueID = CSSValueNone; 2803 m_valueID = CSSValueNone;
2804 break; 2804 break;
2805 case EOverflowAnchor::Auto: 2805 case EOverflowAnchor::kAuto:
2806 m_valueID = CSSValueAuto; 2806 m_valueID = CSSValueAuto;
2807 break; 2807 break;
2808 } 2808 }
2809 } 2809 }
2810 2810
2811 template <> 2811 template <>
2812 inline EOverflowAnchor CSSIdentifierValue::convertTo() const { 2812 inline EOverflowAnchor CSSIdentifierValue::convertTo() const {
2813 switch (m_valueID) { 2813 switch (m_valueID) {
2814 case CSSValueVisible: 2814 case CSSValueVisible:
2815 return EOverflowAnchor::Visible; 2815 return EOverflowAnchor::kVisible;
2816 case CSSValueNone: 2816 case CSSValueNone:
2817 return EOverflowAnchor::None; 2817 return EOverflowAnchor::kNone;
2818 case CSSValueAuto: 2818 case CSSValueAuto:
2819 return EOverflowAnchor::Auto; 2819 return EOverflowAnchor::kAuto;
2820 default: 2820 default:
2821 break; 2821 break;
2822 } 2822 }
2823 2823
2824 NOTREACHED(); 2824 NOTREACHED();
2825 return EOverflowAnchor::None; 2825 return EOverflowAnchor::kNone;
2826 } 2826 }
2827 2827
2828 template <> 2828 template <>
2829 inline CSSIdentifierValue::CSSIdentifierValue(EOverflowWrap e) 2829 inline CSSIdentifierValue::CSSIdentifierValue(EOverflowWrap e)
2830 : CSSValue(IdentifierClass) { 2830 : CSSValue(IdentifierClass) {
2831 switch (e) { 2831 switch (e) {
2832 case NormalOverflowWrap: 2832 case NormalOverflowWrap:
2833 m_valueID = CSSValueNormal; 2833 m_valueID = CSSValueNormal;
2834 break; 2834 break;
2835 case BreakOverflowWrap: 2835 case BreakOverflowWrap:
(...skipping 1954 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/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698