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

Unified Diff: third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp

Issue 1416793004: Remove support for -webkit-canvas and Document.getCSSCanvasContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
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();
« no previous file with comments | « third_party/WebKit/Source/core/css/parser/CSSPropertyParser.h ('k') | third_party/WebKit/Source/core/dom/Document.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698