summaryrefslogtreecommitdiff
path: root/Source/WebCore/css/CSSParser.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@nokia.com>2012-05-25 15:09:11 +0200
committerSimon Hausmann <simon.hausmann@nokia.com>2012-05-25 15:09:11 +0200
commita89b2ebb8e192c5e8cea21079bda2ee2c0c7dddd (patch)
treeb7abd9f49ae1d4d2e426a5883bfccd42b8e2ee12 /Source/WebCore/css/CSSParser.h
parent8d473cf9743f1d30a16a27114e93bd5af5648d23 (diff)
downloadqtwebkit-a89b2ebb8e192c5e8cea21079bda2ee2c0c7dddd.tar.gz
Imported WebKit commit eb5c1b8fe4d4b1b90b5137433fc58a91da0e6878 (http://svn.webkit.org/repository/webkit/trunk@118516)
Diffstat (limited to 'Source/WebCore/css/CSSParser.h')
-rw-r--r--Source/WebCore/css/CSSParser.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/Source/WebCore/css/CSSParser.h b/Source/WebCore/css/CSSParser.h
index 2c5a27ab8..f52394413 100644
--- a/Source/WebCore/css/CSSParser.h
+++ b/Source/WebCore/css/CSSParser.h
@@ -61,7 +61,7 @@ class StylePropertyShorthand;
class StyleRuleBase;
class StyleRuleKeyframes;
class StyleKeyframe;
-class StyleSheetInternal;
+class StyleSheetContents;
class StyledElement;
class CSSParser {
@@ -70,15 +70,15 @@ public:
~CSSParser();
- void parseSheet(StyleSheetInternal*, const String&, int startLineNumber = 0, StyleRuleRangeMap* = 0);
- PassRefPtr<StyleRuleBase> parseRule(StyleSheetInternal*, const String&);
- PassRefPtr<StyleKeyframe> parseKeyframeRule(StyleSheetInternal*, const String&);
- static bool parseValue(StylePropertySet*, CSSPropertyID, const String&, bool important, CSSParserMode, StyleSheetInternal*);
+ void parseSheet(StyleSheetContents*, const String&, int startLineNumber = 0, StyleRuleRangeMap* = 0);
+ PassRefPtr<StyleRuleBase> parseRule(StyleSheetContents*, const String&);
+ PassRefPtr<StyleKeyframe> parseKeyframeRule(StyleSheetContents*, const String&);
+ static bool parseValue(StylePropertySet*, CSSPropertyID, const String&, bool important, CSSParserMode, StyleSheetContents*);
static bool parseColor(RGBA32& color, const String&, bool strict = false);
static bool parseSystemColor(RGBA32& color, const String&, Document*);
static PassRefPtr<CSSValueList> parseFontFaceValue(const AtomicString&);
PassRefPtr<CSSPrimitiveValue> parseValidPrimitive(int ident, CSSParserValue*);
- bool parseDeclaration(StylePropertySet*, const String&, RefPtr<CSSStyleSourceData>*, StyleSheetInternal* contextStyleSheet);
+ bool parseDeclaration(StylePropertySet*, const String&, RefPtr<CSSStyleSourceData>*, StyleSheetContents* contextStyleSheet);
PassOwnPtr<MediaQuery> parseMediaQuery(const String&);
void addProperty(CSSPropertyID, PassRefPtr<CSSValue>, bool important, bool implicit = false);
@@ -129,9 +129,8 @@ public:
bool parseTransitionShorthand(bool important);
bool parseAnimationShorthand(bool important);
-#if ENABLE(CSS_GRID_LAYOUT)
+ bool cssGridLayoutEnabled() const;
bool parseGridTrackList(CSSPropertyID, bool important);
-#endif
bool parseDashboardRegions(CSSPropertyID, bool important);
@@ -283,11 +282,13 @@ public:
void clearProperties();
+ PassRefPtr<StylePropertySet> createStylePropertySet();
+
CSSParserContext m_context;
bool m_important;
CSSPropertyID m_id;
- StyleSheetInternal* m_styleSheet;
+ StyleSheetContents* m_styleSheet;
RefPtr<StyleRuleBase> m_rule;
RefPtr<StyleKeyframe> m_keyframe;
OwnPtr<MediaQuery> m_mediaQuery;
@@ -348,7 +349,7 @@ private:
inline void detectDashToken(int);
inline void detectAtToken(int, bool);
- void setStyleSheet(StyleSheetInternal*);
+ void setStyleSheet(StyleSheetContents*);
inline bool inStrictMode() const { return m_context.mode == CSSStrictMode || m_context.mode == SVGAttributeMode; }
inline bool inQuirksMode() const { return m_context.mode == CSSQuirksMode; }
@@ -368,7 +369,7 @@ private:
bool isGeneratedImageValue(CSSParserValue*) const;
bool parseGeneratedImage(CSSParserValueList*, RefPtr<CSSValue>&);
- bool parseValue(StylePropertySet*, CSSPropertyID, const String&, bool important, StyleSheetInternal* contextStyleSheet);
+ bool parseValue(StylePropertySet*, CSSPropertyID, const String&, bool important, StyleSheetContents* contextStyleSheet);
enum SizeParameterType {
None,