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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSPropertyParser.h

Issue 1662733002: Move remaining border-image related properties into CSSPropertyParser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix logic error Created 4 years, 10 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/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 371420ce9ac45a68745517b2c482dd04877da2ae..23db75c35f064071f12a4c11a8c32b5aa89e6213 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.h
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.h
@@ -33,8 +33,6 @@
namespace blink {
-class BorderImageParseContext;
-class CSSBorderImageSliceValue;
class CSSCustomIdentValue;
class CSSFunctionValue;
class CSSGradientValue;
@@ -44,9 +42,6 @@ struct CSSParserValue;
class CSSParserValueList;
class CSSPrimitiveValue;
class CSSProperty;
-class CSSQuadValue;
-class CSSShadowValue;
-class CSSStringValue;
class CSSValue;
class CSSValueList;
class StylePropertyShorthand;
@@ -156,8 +151,6 @@ private:
void addFillValue(RefPtrWillBeRawPtr<CSSValue>& lval, PassRefPtrWillBeRawPtr<CSSValue> rval);
- bool parseCubicBezierTimingFunctionValue(CSSParserValueList*& args, double& result);
-
// Legacy parsing allows <string>s for animation-name
bool consumeAnimationShorthand(const StylePropertyShorthand&, bool useLegacyParsing, bool important);
@@ -196,15 +189,7 @@ private:
bool parseColorFromValue(const CSSParserValue*, RGBA32&, bool acceptQuirkyColors = false);
// CSS3 Parsing Routines (for properties specific to CSS3)
- bool parseBorderImageShorthand(CSSPropertyID, bool important);
- PassRefPtrWillBeRawPtr<CSSValue> parseBorderImage(CSSPropertyID);
- bool parseBorderImageRepeat(RefPtrWillBeRawPtr<CSSValue>&);
- bool parseBorderImageSlice(CSSPropertyID, RefPtrWillBeRawPtr<CSSBorderImageSliceValue>&);
- bool parseBorderImageWidth(RefPtrWillBeRawPtr<CSSQuadValue>&);
- bool parseBorderImageOutset(RefPtrWillBeRawPtr<CSSQuadValue>&);
- bool parseRadii(RefPtrWillBeRawPtr<CSSPrimitiveValue> radii[4], RefPtrWillBeRawPtr<CSSPrimitiveValue> radii2[4], CSSParserValueList*, CSSPropertyID = CSSPropertyInvalid);
-
- PassRefPtrWillBeRawPtr<CSSValue> parseReflect();
+ bool consumeBorderImage(CSSPropertyID, bool important);
bool consumeFlex(bool important);
@@ -220,15 +205,11 @@ private:
PassRefPtrWillBeRawPtr<CSSValue> parseImageSet(CSSParserValueList*);
- PassRefPtrWillBeRawPtr<CSSValueList> parseFilter();
- PassRefPtrWillBeRawPtr<CSSFunctionValue> parseBuiltinFilterArguments(CSSParserValueList*, CSSValueID);
-
bool parseCalculation(CSSParserValue*, ValueRange);
bool parseGeneratedImage(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&);
PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveNumericValue(CSSParserValue*);
- PassRefPtrWillBeRawPtr<CSSStringValue> createPrimitiveStringValue(CSSParserValue*);
PassRefPtrWillBeRawPtr<CSSCustomIdentValue> createPrimitiveCustomIdentValue(CSSParserValue*);
class ImplicitScope {
@@ -285,16 +266,11 @@ private:
inline bool validUnit(CSSParserValue* value, Units unitflags, ReleaseParsedCalcValueCondition releaseCalc = DoNotReleaseParsedCalcValue) { return validUnit(value, unitflags, m_context.mode(), releaseCalc); }
bool validUnit(CSSParserValue*, Units, CSSParserMode, ReleaseParsedCalcValueCondition releaseCalc = DoNotReleaseParsedCalcValue);
- bool parseBorderImageQuad(Units, RefPtrWillBeRawPtr<CSSQuadValue>&);
int colorIntFromValue(CSSParserValue*);
- bool buildBorderImageParseContext(CSSPropertyID, BorderImageParseContext&);
-
bool parseDeprecatedGradientColorStop(CSSParserValue*, CSSGradientColorStop&);
PassRefPtrWillBeRawPtr<CSSValue> parseDeprecatedGradientStopColor(const CSSParserValue*);
- void commitBorderImageProperty(CSSPropertyID, PassRefPtrWillBeRawPtr<CSSValue>, bool important);
-
private:
// Inputs:
CSSParserValueList* m_valueList;

Powered by Google App Engine
This is Rietveld 408576698