Chromium Code Reviews| Index: Source/core/css/parser/CSSPropertyParser.cpp |
| diff --git a/Source/core/css/parser/CSSPropertyParser.cpp b/Source/core/css/parser/CSSPropertyParser.cpp |
| index cf75d7284b82dce2516b8dbddb16531749ef39e3..a4782c538baf9ebfadae4b0af69c1fbcc67d1397 100644 |
| --- a/Source/core/css/parser/CSSPropertyParser.cpp |
| +++ b/Source/core/css/parser/CSSPropertyParser.cpp |
| @@ -4178,7 +4178,7 @@ PassRefPtrWillBeRawPtr<CSSBasicShape> CSSPropertyParser::parseBasicShapeCircle(C |
| RefPtrWillBeRawPtr<CSSValue> centerY; |
| args->next(); // set list to start of position center |
| parseFillPosition(args, centerX, centerY); |
| - if (centerX && centerY) { |
| + if (centerX && centerY && !args->current()) { |
| ASSERT(centerX->isPrimitiveValue()); |
| ASSERT(centerY->isPrimitiveValue()); |
| shape->setCenterX(toCSSPrimitiveValue(centerX.get())); |
| @@ -4281,7 +4281,7 @@ PassRefPtrWillBeRawPtr<CSSBasicShape> CSSPropertyParser::parseBasicShapeEllipse( |
| RefPtrWillBeRawPtr<CSSValue> centerY; |
| args->next(); // set list to start of position center |
| parseFillPosition(args, centerX, centerY); |
| - if (!centerX || !centerY) |
| + if (!centerX || !centerY || args->current()) |
| return nullptr; |
| ASSERT(centerX->isPrimitiveValue()); |
| @@ -4519,6 +4519,7 @@ PassRefPtrWillBeRawPtr<CSSPrimitiveValue> CSSPropertyParser::parseBasicShape() |
| return nullptr; |
| m_valueList->next(); |
| + |
|
Bear Travis
2014/03/11 00:15:26
Small nit: extra newline added.
|
| return cssValuePool().createValue(shape.release()); |
| } |