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

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

Issue 2001823004: style: Rename the EBoxPack enum values to be prefixed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/LayoutDeprecatedFlexibleBox.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. (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 669 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 680
681 ASSERT_NOT_REACHED(); 681 ASSERT_NOT_REACHED();
682 return RepeatFill; 682 return RepeatFill;
683 } 683 }
684 684
685 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EBoxPack e) 685 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EBoxPack e)
686 : CSSValue(PrimitiveClass) 686 : CSSValue(PrimitiveClass)
687 { 687 {
688 init(UnitType::ValueID); 688 init(UnitType::ValueID);
689 switch (e) { 689 switch (e) {
690 case Start: 690 case BoxPackStart:
691 m_value.valueID = CSSValueStart; 691 m_value.valueID = CSSValueStart;
692 break; 692 break;
693 case Center: 693 case BoxPackCenter:
694 m_value.valueID = CSSValueCenter; 694 m_value.valueID = CSSValueCenter;
695 break; 695 break;
696 case End: 696 case BoxPackEnd:
697 m_value.valueID = CSSValueEnd; 697 m_value.valueID = CSSValueEnd;
698 break; 698 break;
699 case Justify: 699 case BoxPackJustify:
700 m_value.valueID = CSSValueJustify; 700 m_value.valueID = CSSValueJustify;
701 break; 701 break;
702 } 702 }
703 } 703 }
704 704
705 template<> inline EBoxPack CSSPrimitiveValue::convertTo() const 705 template<> inline EBoxPack CSSPrimitiveValue::convertTo() const
706 { 706 {
707 ASSERT(isValueID()); 707 ASSERT(isValueID());
708 switch (m_value.valueID) { 708 switch (m_value.valueID) {
709 case CSSValueStart: 709 case CSSValueStart:
710 return Start; 710 return BoxPackStart;
711 case CSSValueEnd: 711 case CSSValueEnd:
712 return End; 712 return BoxPackEnd;
713 case CSSValueCenter: 713 case CSSValueCenter:
714 return Center; 714 return BoxPackCenter;
715 case CSSValueJustify: 715 case CSSValueJustify:
716 return Justify; 716 return BoxPackJustify;
717 default: 717 default:
718 break; 718 break;
719 } 719 }
720 720
721 ASSERT_NOT_REACHED(); 721 ASSERT_NOT_REACHED();
722 return Justify; 722 return BoxPackJustify;
723 } 723 }
724 724
725 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EBoxAlignment e) 725 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EBoxAlignment e)
726 : CSSValue(PrimitiveClass) 726 : CSSValue(PrimitiveClass)
727 { 727 {
728 init(UnitType::ValueID); 728 init(UnitType::ValueID);
729 switch (e) { 729 switch (e) {
730 case BSTRETCH: 730 case BSTRETCH:
731 m_value.valueID = CSSValueStretch; 731 m_value.valueID = CSSValueStretch;
732 break; 732 break;
(...skipping 3942 matching lines...) Expand 10 before | Expand all | Expand 10 after
4675 default: 4675 default:
4676 break; 4676 break;
4677 } 4677 }
4678 ASSERT_NOT_REACHED(); 4678 ASSERT_NOT_REACHED();
4679 return ContainsNone; 4679 return ContainsNone;
4680 } 4680 }
4681 4681
4682 } // namespace blink 4682 } // namespace blink
4683 4683
4684 #endif 4684 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutDeprecatedFlexibleBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698