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

Unified Diff: Source/core/css/CSSGroupingRule.cpp

Issue 756313002: Remove CSSCharsetRule (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tests Created 6 years, 1 month 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/CSSCharsetRule.idl ('k') | Source/core/css/CSSStyleSheet.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSGroupingRule.cpp
diff --git a/Source/core/css/CSSGroupingRule.cpp b/Source/core/css/CSSGroupingRule.cpp
index b19fe9a16380cdbea5c65fa7d5c16992365d09dd..d4138f42d55b749a16d61465c10f390881f18283 100644
--- a/Source/core/css/CSSGroupingRule.cpp
+++ b/Source/core/css/CSSGroupingRule.cpp
@@ -77,9 +77,8 @@ unsigned CSSGroupingRule::insertRule(const String& ruleString, unsigned index, E
}
if (newRule->isImportRule()) {
- // FIXME: an HierarchyRequestError should also be thrown for a @charset or a nested
- // @media rule. They are currently not getting parsed, resulting in a SyntaxError
- // to get raised above.
+ // FIXME: an HierarchyRequestError should also be thrown for a nested @media rule. They are
+ // currently not getting parsed, resulting in a SyntaxError to get raised above.
exceptionState.throwDOMException(HierarchyRequestError, "'@import' rules cannot be inserted inside a group rule.");
return 0;
}
« no previous file with comments | « Source/core/css/CSSCharsetRule.idl ('k') | Source/core/css/CSSStyleSheet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698