Index: third_party/WebKit/Source/core/css/parser/CSSPropertyParser.h |
diff --git a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.h b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.h |
index 0b8560390a4c702559f27b08664554b3524fd0b0..b0a974868c45d7bdab067f659cc5bd0a2fb6b820 100644 |
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.h |
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.h |
@@ -100,6 +100,16 @@ public: |
return imageValue; |
} |
+ // TODO(rwlbuis): move to CSSPropertyParser.cpp once CSSParserToken conversion is done. |
+ static bool isGeneratedImage(CSSValueID id) |
+ { |
+ return id == CSSValueLinearGradient || id == CSSValueRadialGradient |
+ || id == CSSValueRepeatingLinearGradient || id == CSSValueRepeatingRadialGradient |
+ || id == CSSValueWebkitLinearGradient || id == CSSValueWebkitRadialGradient |
+ || id == CSSValueWebkitRepeatingLinearGradient || id == CSSValueWebkitRepeatingRadialGradient |
+ || id == CSSValueWebkitGradient || id == CSSValueWebkitCrossFade; |
+ } |
+ |
private: |
CSSPropertyParser(const CSSParserTokenRange&, const CSSParserContext&, |
WillBeHeapVector<CSSProperty, 256>&); |
@@ -205,8 +215,6 @@ private: |
PassRefPtrWillBeRawPtr<CSSValue> parseColor(const CSSParserValue*, bool acceptQuirkyColors = false); |
bool parseColorFromValue(const CSSParserValue*, RGBA32&, bool acceptQuirkyColors = false); |
- PassRefPtrWillBeRawPtr<CSSValueList> consumeFontFaceSrc(); |
- |
// CSS3 Parsing Routines (for properties specific to CSS3) |
bool parseBorderImageShorthand(CSSPropertyID, bool important); |
PassRefPtrWillBeRawPtr<CSSValue> parseBorderImage(CSSPropertyID); |
@@ -248,9 +256,6 @@ private: |
PassRefPtrWillBeRawPtr<CSSBasicShapeInsetValue> parseInsetRoundedCorners(PassRefPtrWillBeRawPtr<CSSBasicShapeInsetValue>, CSSParserValueList*); |
- PassRefPtrWillBeRawPtr<CSSValue> consumeFontFaceSrcURI(); |
- PassRefPtrWillBeRawPtr<CSSValue> consumeFontFaceSrcLocal(); |
- |
class ImplicitScope { |
STACK_ALLOCATED(); |
WTF_MAKE_NONCOPYABLE(ImplicitScope); |