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

Unified Diff: Source/core/css/parser/CSSGrammar.y

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/BisonCSSParser-in.cpp ('k') | Source/core/css/parser/CSSParserImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/parser/CSSGrammar.y
diff --git a/Source/core/css/parser/CSSGrammar.y b/Source/core/css/parser/CSSGrammar.y
index 792a54b734f08d5f07a25266b778d567a717aaad..f1d7c559ae1398298782d4a327e1ac2c56d7a46f 100644
--- a/Source/core/css/parser/CSSGrammar.y
+++ b/Source/core/css/parser/CSSGrammar.y
@@ -552,7 +552,7 @@ block_rule:
before_import_rule:
/* empty */ {
- parser->startRuleHeader(CSSRuleSourceData::IMPORT_RULE);
+ parser->startRuleHeader(StyleRule::Import);
}
;
@@ -718,7 +718,7 @@ at_rule_body_start:
before_media_rule:
/* empty */ {
- parser->startRuleHeader(CSSRuleSourceData::MEDIA_RULE);
+ parser->startRuleHeader(StyleRule::Media);
}
;
@@ -749,7 +749,7 @@ supports:
before_supports_rule:
/* empty */ {
- parser->startRuleHeader(CSSRuleSourceData::SUPPORTS_RULE);
+ parser->startRuleHeader(StyleRule::Supports);
parser->markSupportsRuleHeaderStart();
}
;
@@ -826,7 +826,7 @@ supports_declaration_condition:
before_keyframes_rule:
/* empty */ {
- parser->startRuleHeader(CSSRuleSourceData::KEYFRAMES_RULE);
+ parser->startRuleHeader(StyleRule::Keyframes);
}
;
@@ -918,7 +918,7 @@ keyframes_error_recovery:
before_page_rule:
/* empty */ {
- parser->startRuleHeader(CSSRuleSourceData::PAGE_RULE);
+ parser->startRuleHeader(StyleRule::Page);
}
;
@@ -1022,7 +1022,7 @@ margin_sym :
before_font_face_rule:
/* empty */ {
- parser->startRuleHeader(CSSRuleSourceData::FONT_FACE_RULE);
+ parser->startRuleHeader(StyleRule::FontFace);
}
;
@@ -1036,7 +1036,7 @@ font_face:
before_viewport_rule:
/* empty */ {
parser->markViewportRuleBodyStart();
- parser->startRuleHeader(CSSRuleSourceData::VIEWPORT_RULE);
+ parser->startRuleHeader(StyleRule::Viewport);
}
;
@@ -1078,7 +1078,7 @@ maybe_space_before_declaration:
before_selector_list:
/* empty */ {
- parser->startRuleHeader(CSSRuleSourceData::STYLE_RULE);
+ parser->startRuleHeader(StyleRule::Style);
parser->startSelector();
}
;
« no previous file with comments | « Source/core/css/parser/BisonCSSParser-in.cpp ('k') | Source/core/css/parser/CSSParserImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698