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

Unified Diff: Source/core/css/parser/CSSPropertyParser.cpp

Issue 951213004: Make CSSRuleSourceData use the CSSRule Type enum (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use StyleRule::Type Created 5 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
« no previous file with comments | « Source/core/css/parser/CSSPropertyParser.h ('k') | Source/core/inspector/InspectorStyleSheet.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/parser/CSSPropertyParser.cpp
diff --git a/Source/core/css/parser/CSSPropertyParser.cpp b/Source/core/css/parser/CSSPropertyParser.cpp
index abd04e819c8fefbe89a6ecbef46d19a915204041..3b558a55459d2bcd2122207797aed14f03cb8a2e 100644
--- a/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/Source/core/css/parser/CSSPropertyParser.cpp
@@ -86,7 +86,7 @@ static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveValuePair(PassRe
CSSPropertyParser::CSSPropertyParser(CSSParserValueList* valueList,
const CSSParserContext& context, bool inViewport,
WillBeHeapVector<CSSProperty, 256>& parsedProperties,
- CSSRuleSourceData::Type ruleType)
+ StyleRule::Type ruleType)
: m_valueList(valueList)
, m_context(context)
, m_inViewport(inViewport)
@@ -100,7 +100,7 @@ CSSPropertyParser::CSSPropertyParser(CSSParserValueList* valueList,
bool CSSPropertyParser::parseValue(CSSPropertyID property, bool important,
CSSParserValueList* valueList, const CSSParserContext& context, bool inViewport,
- WillBeHeapVector<CSSProperty, 256>& parsedProperties, CSSRuleSourceData::Type ruleType)
+ WillBeHeapVector<CSSProperty, 256>& parsedProperties, StyleRule::Type ruleType)
{
int parsedPropertiesSize = parsedProperties.size();
@@ -4751,7 +4751,7 @@ bool CSSPropertyParser::parseFontVariant(bool important)
}
if (values && values->length()) {
- if (m_ruleType != CSSRuleSourceData::FONT_FACE_RULE)
+ if (m_ruleType != StyleRule::FontFace)
return false;
addProperty(CSSPropertyFontVariant, values.release(), important);
return true;
« no previous file with comments | « Source/core/css/parser/CSSPropertyParser.h ('k') | Source/core/inspector/InspectorStyleSheet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698