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

Side by Side Diff: Source/core/css/parser/CSSPropertyParser.cpp

Issue 216793009: Remove shape-padding (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove m_padding Created 6 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) 2003 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) 3 * Copyright (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com)
4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com>
6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
8 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. 8 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved.
9 * Copyright (C) 2012 Intel Corporation. All rights reserved. 9 * Copyright (C) 2012 Intel Corporation. All rights reserved.
10 * 10 *
(...skipping 1496 matching lines...) Expand 10 before | Expand all | Expand 10 after
1507 } else if (value->unit == CSSPrimitiveValue::CSS_URI) { 1507 } else if (value->unit == CSSPrimitiveValue::CSS_URI) {
1508 parsedValue = CSSPrimitiveValue::create(value->string, CSSPrimitiveV alue::CSS_URI); 1508 parsedValue = CSSPrimitiveValue::create(value->string, CSSPrimitiveV alue::CSS_URI);
1509 addProperty(propId, parsedValue.release(), important); 1509 addProperty(propId, parsedValue.release(), important);
1510 return true; 1510 return true;
1511 } 1511 }
1512 break; 1512 break;
1513 case CSSPropertyShapeOutside: 1513 case CSSPropertyShapeOutside:
1514 parsedValue = parseShapeProperty(propId); 1514 parsedValue = parseShapeProperty(propId);
1515 break; 1515 break;
1516 case CSSPropertyShapeMargin: 1516 case CSSPropertyShapeMargin:
1517 case CSSPropertyShapePadding:
1518 validPrimitive = (RuntimeEnabledFeatures::cssShapesEnabled() && !id && v alidUnit(value, FLength | FNonNeg)); 1517 validPrimitive = (RuntimeEnabledFeatures::cssShapesEnabled() && !id && v alidUnit(value, FLength | FNonNeg));
1519 break; 1518 break;
1520 case CSSPropertyShapeImageThreshold: 1519 case CSSPropertyShapeImageThreshold:
1521 validPrimitive = (RuntimeEnabledFeatures::cssShapesEnabled() && !id && v alidUnit(value, FNumber)); 1520 validPrimitive = (RuntimeEnabledFeatures::cssShapesEnabled() && !id && v alidUnit(value, FNumber));
1522 break; 1521 break;
1523 1522
1524 case CSSPropertyTouchAction: 1523 case CSSPropertyTouchAction:
1525 // auto | none | [pan-x || pan-y] | manipulation 1524 // auto | none | [pan-x || pan-y] | manipulation
1526 return parseTouchAction(important); 1525 return parseTouchAction(important);
1527 1526
(...skipping 6928 matching lines...) Expand 10 before | Expand all | Expand 10 after
8456 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueFill)); 8455 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueFill));
8457 if (!seenStroke) 8456 if (!seenStroke)
8458 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueStroke) ); 8457 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueStroke) );
8459 if (!seenMarkers) 8458 if (!seenMarkers)
8460 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueMarkers )); 8459 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueMarkers ));
8461 8460
8462 return parsedValues.release(); 8461 return parsedValues.release();
8463 } 8462 }
8464 8463
8465 } // namespace WebCore 8464 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/parser/BisonCSSParser-in.cpp ('k') | Source/core/css/resolver/StyleBuilderCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698