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

Unified Diff: Source/core/css/CSSParser.h

Issue 13646013: Enable support for CSS Conditional Rules (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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
« no previous file with comments | « Source/core/css/CSSGrammar.y.in ('k') | Source/core/css/CSSParser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSParser.h
diff --git a/Source/core/css/CSSParser.h b/Source/core/css/CSSParser.h
index f2a9356448dc4cbeed25dc69d3961bbff0b1dbb2..10e18eae854462769dc96e0062999f37b5dff36d 100644
--- a/Source/core/css/CSSParser.h
+++ b/Source/core/css/CSSParser.h
@@ -85,9 +85,7 @@ public:
void parseSheet(StyleSheetContents*, const String&, int startLineNumber = 0, SourceDataHandler* = 0, bool = false);
PassRefPtr<StyleRuleBase> parseRule(StyleSheetContents*, const String&);
PassRefPtr<StyleKeyframe> parseKeyframeRule(StyleSheetContents*, const String&);
-#if ENABLE(CSS3_CONDITIONAL_RULES)
bool parseSupportsCondition(const String&);
-#endif
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*);
@@ -303,12 +301,10 @@ public:
StyleRuleBase* createPageRule(PassOwnPtr<CSSParserSelector> pageSelector);
StyleRuleBase* createRegionRule(Vector<OwnPtr<CSSParserSelector> >* regionSelector, RuleList* rules);
StyleRuleBase* createMarginAtRule(CSSSelector::MarginBoxType);
-#if ENABLE(CSS3_CONDITIONAL_RULES)
StyleRuleBase* createSupportsRule(bool conditionIsSupported, RuleList*);
void markSupportsRuleHeaderStart();
void markSupportsRuleHeaderEnd();
PassRefPtr<CSSRuleSourceData> popSupportsRuleData();
-#endif
StyleRuleBase* createHostRule(RuleList* rules);
StyleRuleBase* createFilterRule(const CSSParserString&);
@@ -357,9 +353,7 @@ public:
RefPtr<StyleKeyframe> m_keyframe;
OwnPtr<MediaQuery> m_mediaQuery;
OwnPtr<CSSParserValueList> m_valueList;
-#if ENABLE(CSS3_CONDITIONAL_RULES)
bool m_supportsCondition;
-#endif
typedef Vector<CSSProperty, 256> ParsedPropertyVector;
ParsedPropertyVector m_parsedProperties;
@@ -476,10 +470,8 @@ private:
inline void detectDashToken(int);
template <typename CharacterType>
inline void detectAtToken(int, bool);
-#if ENABLE(CSS3_CONDITIONAL_RULES)
template <typename CharacterType>
inline void detectSupportsToken(int);
-#endif
void setStyleSheet(StyleSheetContents* styleSheet) { m_styleSheet = styleSheet; }
@@ -528,9 +520,7 @@ private:
enum ParsingMode {
NormalMode,
MediaQueryMode,
-#if ENABLE(CSS3_CONDITIONAL_RULES)
SupportsMode,
-#endif
NthChildMode
};
@@ -583,9 +573,7 @@ private:
RefPtr<CSSCalcValue> m_parsedCalculation;
-#if ENABLE(CSS3_CONDITIONAL_RULES)
OwnPtr<RuleSourceDataList> m_supportsRuleDataStack;
-#endif
// defines units allowed for a certain property, used in parseUnit
enum Units {
« no previous file with comments | « Source/core/css/CSSGrammar.y.in ('k') | Source/core/css/CSSParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698