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

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

Issue 1099963003: Support type selector for camel-cased SVG elements in HTML. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix performance regression. tagMatches() became too big to be inlined on Linux. Created 5 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
Index: Source/core/css/RuleSet.cpp
diff --git a/Source/core/css/RuleSet.cpp b/Source/core/css/RuleSet.cpp
index cf5df1c6f080ee5abb4343ab57aeeb2cd415ec47..3014335fba7133889a806ecff36c7762f6fd323a 100644
--- a/Source/core/css/RuleSet.cpp
+++ b/Source/core/css/RuleSet.cpp
@@ -208,6 +208,8 @@ bool RuleSet::findBestRuleSetAndAdd(const CSSSelector& component, RuleData& rule
if (!tagName.isEmpty()) {
addToRuleSet(tagName, ensurePendingRules()->tagRules, ruleData);
+ if (component.tagIsCamelCase())
+ addToRuleSet(tagName.lower(), ensurePendingRules()->tagRules, ruleData);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698