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

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

Issue 1048803002: Remove support of nonstandard 'CSSValueCenter' property value for floated element. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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
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 1405 matching lines...) Expand 10 before | Expand all | Expand 10 after
1416 1416
1417 template<> inline CSSPrimitiveValue::operator EFloat() const 1417 template<> inline CSSPrimitiveValue::operator EFloat() const
1418 { 1418 {
1419 ASSERT(isValueID()); 1419 ASSERT(isValueID());
1420 switch (m_value.valueID) { 1420 switch (m_value.valueID) {
1421 case CSSValueLeft: 1421 case CSSValueLeft:
1422 return LeftFloat; 1422 return LeftFloat;
1423 case CSSValueRight: 1423 case CSSValueRight:
1424 return RightFloat; 1424 return RightFloat;
1425 case CSSValueNone: 1425 case CSSValueNone:
1426 case CSSValueCenter: // Non-standard CSS value.
1427 return NoFloat; 1426 return NoFloat;
1428 default: 1427 default:
1429 break; 1428 break;
1430 } 1429 }
1431 1430
1432 ASSERT_NOT_REACHED(); 1431 ASSERT_NOT_REACHED();
1433 return NoFloat; 1432 return NoFloat;
1434 } 1433 }
1435 1434
1436 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(LineBreak e) 1435 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(LineBreak e)
(...skipping 3265 matching lines...) Expand 10 before | Expand all | Expand 10 after
4702 default: 4701 default:
4703 break; 4702 break;
4704 } 4703 }
4705 ASSERT_NOT_REACHED(); 4704 ASSERT_NOT_REACHED();
4706 return ScrollBehaviorAuto; 4705 return ScrollBehaviorAuto;
4707 } 4706 }
4708 4707
4709 } 4708 }
4710 4709
4711 #endif 4710 #endif
OLDNEW
« no previous file with comments | « LayoutTests/fast/block/float/override-property-float-expected.txt ('k') | Source/core/css/parser/CSSParserFastPaths.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698