| Index: Source/core/css/parser/CSSPropertyParser.cpp
|
| diff --git a/Source/core/css/parser/CSSPropertyParser.cpp b/Source/core/css/parser/CSSPropertyParser.cpp
|
| index c4d902a23587fd251209c5e9a399b7b307f8aa57..f7ff7ce93a64e051703baf68dd4b124f81b29936 100644
|
| --- a/Source/core/css/parser/CSSPropertyParser.cpp
|
| +++ b/Source/core/css/parser/CSSPropertyParser.cpp
|
| @@ -30,7 +30,6 @@
|
| // FIXME: Way too many!
|
| #include "core/CSSValueKeywords.h"
|
| #include "core/StylePropertyShorthand.h"
|
| -#include "core/css/CSSAspectRatioValue.h"
|
| #include "core/css/CSSBasicShapes.h"
|
| #include "core/css/CSSBorderImage.h"
|
| #include "core/css/CSSCanvasValue.h"
|
| @@ -1008,9 +1007,6 @@ bool CSSPropertyParser::parseValue(CSSPropertyID propId, bool important)
|
| case CSSPropertyTabSize:
|
| validPrimitive = validUnit(value, FInteger | FNonNeg);
|
| break;
|
| - case CSSPropertyWebkitAspectRatio:
|
| - parsedValue = parseAspectRatio();
|
| - break;
|
| case CSSPropertyBorderRadius:
|
| case CSSPropertyWebkitBorderRadius:
|
| return parseBorderRadius(propId, important);
|
| @@ -6141,34 +6137,6 @@ bool CSSPropertyParser::parseBorderRadius(CSSPropertyID propId, bool important)
|
| return true;
|
| }
|
|
|
| -PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parseAspectRatio()
|
| -{
|
| - unsigned num = m_valueList->size();
|
| - if (num == 1 && m_valueList->valueAt(0)->id == CSSValueNone) {
|
| - m_valueList->next();
|
| - return cssValuePool().createIdentifierValue(CSSValueNone);
|
| - }
|
| -
|
| - if (num != 3)
|
| - return nullptr;
|
| -
|
| - CSSParserValue* lvalue = m_valueList->current();
|
| - CSSParserValue* op = m_valueList->next();
|
| - CSSParserValue* rvalue = m_valueList->next();
|
| - m_valueList->next();
|
| -
|
| - if (!isForwardSlashOperator(op))
|
| - return nullptr;
|
| -
|
| - if (!validUnit(lvalue, FNumber | FNonNeg) || !validUnit(rvalue, FNumber | FNonNeg))
|
| - return nullptr;
|
| -
|
| - if (!lvalue->fValue || !rvalue->fValue)
|
| - return nullptr;
|
| -
|
| - return CSSAspectRatioValue::create(narrowPrecisionToFloat(lvalue->fValue), narrowPrecisionToFloat(rvalue->fValue));
|
| -}
|
| -
|
| PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parseCounter(int defaultValue)
|
| {
|
| RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createCommaSeparated();
|
|
|