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

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

Issue 2677033002: Remove BreakAlways from EBreak enum (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/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 1941 matching lines...) Expand 10 before | Expand all | Expand 10 after
1952 1952
1953 template <> 1953 template <>
1954 inline CSSIdentifierValue::CSSIdentifierValue(EBreak e) 1954 inline CSSIdentifierValue::CSSIdentifierValue(EBreak e)
1955 : CSSValue(IdentifierClass) { 1955 : CSSValue(IdentifierClass) {
1956 switch (e) { 1956 switch (e) {
1957 default: 1957 default:
1958 ASSERT_NOT_REACHED(); 1958 ASSERT_NOT_REACHED();
1959 case BreakAuto: 1959 case BreakAuto:
1960 m_valueID = CSSValueAuto; 1960 m_valueID = CSSValueAuto;
1961 break; 1961 break;
1962 case BreakAlways:
1963 m_valueID = CSSValueAlways;
1964 break;
1965 case BreakAvoid: 1962 case BreakAvoid:
1966 m_valueID = CSSValueAvoid; 1963 m_valueID = CSSValueAvoid;
1967 break; 1964 break;
1968 case BreakAvoidPage: 1965 case BreakAvoidPage:
1969 m_valueID = CSSValueAvoidPage; 1966 m_valueID = CSSValueAvoidPage;
1970 break; 1967 break;
1971 case BreakPage: 1968 case BreakPage:
1972 m_valueID = CSSValuePage; 1969 m_valueID = CSSValuePage;
1973 break; 1970 break;
1974 case BreakLeft: 1971 case BreakLeft:
(...skipping 19 matching lines...) Expand all
1994 1991
1995 template <> 1992 template <>
1996 inline EBreak CSSIdentifierValue::convertTo() const { 1993 inline EBreak CSSIdentifierValue::convertTo() const {
1997 switch (m_valueID) { 1994 switch (m_valueID) {
1998 default: 1995 default:
1999 ASSERT_NOT_REACHED(); 1996 ASSERT_NOT_REACHED();
2000 case CSSValueAuto: 1997 case CSSValueAuto:
2001 return BreakAuto; 1998 return BreakAuto;
2002 case CSSValueAvoid: 1999 case CSSValueAvoid:
2003 return BreakAvoid; 2000 return BreakAvoid;
2004 case CSSValueAlways:
2005 return BreakAlways;
2006 case CSSValueAvoidPage: 2001 case CSSValueAvoidPage:
2007 return BreakAvoidPage; 2002 return BreakAvoidPage;
2008 case CSSValuePage: 2003 case CSSValuePage:
2009 return BreakPage; 2004 return BreakPage;
2010 case CSSValueLeft: 2005 case CSSValueLeft:
2011 return BreakLeft; 2006 return BreakLeft;
2012 case CSSValueRight: 2007 case CSSValueRight:
2013 return BreakRight; 2008 return BreakRight;
2014 case CSSValueRecto: 2009 case CSSValueRecto:
2015 return BreakRecto; 2010 return BreakRecto;
(...skipping 2774 matching lines...) Expand 10 before | Expand all | Expand 10 after
4790 default: 4785 default:
4791 break; 4786 break;
4792 } 4787 }
4793 ASSERT_NOT_REACHED(); 4788 ASSERT_NOT_REACHED();
4794 return ContainsNone; 4789 return ContainsNone;
4795 } 4790 }
4796 4791
4797 } // namespace blink 4792 } // namespace blink
4798 4793
4799 #endif 4794 #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