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

Unified Diff: Source/core/css/SelectorFilter.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
« no previous file with comments | « Source/core/css/SelectorChecker.cpp ('k') | Source/core/css/parser/CSSParserValues.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/SelectorFilter.cpp
diff --git a/Source/core/css/SelectorFilter.cpp b/Source/core/css/SelectorFilter.cpp
index ad7c35ab8abc2ef7a40c9ef1f018e19901ccf77b..647da7aee07c075a4d708a327ce2d6560b1ac710 100644
--- a/Source/core/css/SelectorFilter.cpp
+++ b/Source/core/css/SelectorFilter.cpp
@@ -120,7 +120,7 @@ static inline void collectDescendantSelectorIdentifierHashes(const CSSSelector&
(*hash++) = selector.value().impl()->existingHash() * ClassAttributeSalt;
break;
case CSSSelector::Tag:
- if (selector.tagQName().localName() != starAtom)
+ if (!selector.tagIsCamelCase() && selector.tagQName().localName() != starAtom)
esprehn 2015/04/22 15:57:57 This doesn't make sense. How does being camel case
rune 2015/04/22 21:48:24 starAtom is not added to the bloom filter for any
(*hash++) = selector.tagQName().localName().impl()->existingHash() * TagNameSalt;
break;
default:
« no previous file with comments | « Source/core/css/SelectorChecker.cpp ('k') | Source/core/css/parser/CSSParserValues.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698