Index: third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp |
diff --git a/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp b/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp |
index 1fc1c3fe89cd7b5152894cfdcde3bc4b866222b1..2a5b9af9947a4b6d1009d4e8e3bb73d691d4ae31 100644 |
--- a/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp |
+++ b/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp |
@@ -30,7 +30,6 @@ |
#include "core/StylePropertyShorthand.h" |
#include "core/css/CSSBasicShapeValues.h" |
#include "core/css/CSSBorderImage.h" |
-#include "core/css/CSSCanvasValue.h" |
#include "core/css/CSSContentDistributionValue.h" |
#include "core/css/CSSCounterValue.h" |
#include "core/css/CSSCrossfadeValue.h" |
@@ -305,7 +304,6 @@ static bool isGeneratedImageValue(CSSParserValue* val) |
|| id == CSSValueWebkitRepeatingLinearGradient |
|| id == CSSValueWebkitRepeatingRadialGradient |
|| id == CSSValueWebkitGradient |
- || id == CSSValueWebkitCanvas |
|| id == CSSValueWebkitCrossFade; |
} |
@@ -5722,9 +5720,6 @@ bool CSSPropertyParser::parseGeneratedImage(CSSParserValueList* valueList, RefPt |
if (val->function->id == CSSValueRepeatingRadialGradient) |
return parseRadialGradient(valueList, value, Repeating); |
- if (val->function->id == CSSValueWebkitCanvas) |
- return parseCanvas(valueList, value); |
- |
if (val->function->id == CSSValueWebkitCrossFade) |
return parseCrossfade(valueList, value); |
@@ -5774,22 +5769,6 @@ bool CSSPropertyParser::parseCrossfade(CSSParserValueList* valueList, RefPtrWill |
return true; |
} |
-bool CSSPropertyParser::parseCanvas(CSSParserValueList* valueList, RefPtrWillBeRawPtr<CSSValue>& canvas) |
-{ |
- // Walk the arguments. |
- CSSParserValueList* args = valueList->current()->function->args.get(); |
- if (!args || args->size() != 1) |
- return false; |
- |
- // The first argument is the canvas name. It is an identifier. |
- CSSParserValue* value = args->current(); |
- if (!value || value->m_unit != CSSParserValue::Identifier) |
- return false; |
- |
- canvas = CSSCanvasValue::create(value->string); |
- return true; |
-} |
- |
PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parseImageSet(CSSParserValueList* valueList) |
{ |
CSSParserValue* function = valueList->current(); |