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

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

Issue 15660004: Reporing invalid CSS selectors. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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 | « LayoutTests/inspector/console/console-css-warnings-expected.txt ('k') | Source/core/css/CSSParser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSGrammar.y.in
diff --git a/Source/core/css/CSSGrammar.y.in b/Source/core/css/CSSGrammar.y.in
index e651d858f071a7c26d9fc6dd2b02a5cbfbe3d86a..10a07eddfdf931a90f4ab5ab58aba14b0a98db7e 100644
--- a/Source/core/css/CSSGrammar.y.in
+++ b/Source/core/css/CSSGrammar.y.in
@@ -1549,7 +1549,7 @@ declaration:
$$ = parser->parseValue(static_cast<CSSPropertyID>($1), $6);
if (!$$) {
parser->rollbackLastProperties(parser->m_parsedProperties.size() - oldParsedProperties);
- parser->reportError(parser->getSource($4, parser->currentLocation()).trimTrailingWhitespace(), CSSParser::InvalidPropertyValueError);
+ parser->reportError($4, CSSParser::InvalidPropertyValueError);
} else
isPropertyParsed = true;
parser->m_valueList = nullptr;
@@ -1911,11 +1911,18 @@ at_rule_recovery:
;
invalid_rule:
- error rule_error_recovery invalid_block {
+ error rule_error_recovery at_invalid_rule_header_end invalid_block {
+ parser->resumeErrorLogging();
$$ = 0;
}
;
+at_invalid_rule_header_end:
+ /* empty */ {
+ parser->endInvalidRuleHeader();
+ }
+ ;
+
invalid_block:
'{' error_recovery closing_brace {
parser->invalidBlockHit();
« no previous file with comments | « LayoutTests/inspector/console/console-css-warnings-expected.txt ('k') | Source/core/css/CSSParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698