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

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: Addressed review issues. Created 5 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 | « Source/core/css/SelectorChecker.cpp ('k') | Source/core/dom/Element.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 42d4e3fd28cf558ab50cb26974734b93df647d15..20f454fa84b223da605eb615baa4cd033e574e73 100644
--- a/Source/core/css/SelectorFilter.cpp
+++ b/Source/core/css/SelectorFilter.cpp
@@ -30,6 +30,7 @@
#include "core/css/SelectorFilter.h"
#include "core/css/CSSSelector.h"
+#include "core/dom/Document.h"
namespace blink {
@@ -38,7 +39,7 @@ enum { TagNameSalt = 13, IdAttributeSalt = 17, ClassAttributeSalt = 19 };
static inline void collectElementIdentifierHashes(const Element& element, Vector<unsigned, 4>& identifierHashes)
{
- identifierHashes.append(element.localName().impl()->existingHash() * TagNameSalt);
+ identifierHashes.append(element.localNameForSelectorMatching().impl()->existingHash() * TagNameSalt);
if (element.hasID())
identifierHashes.append(element.idForStyleResolution().impl()->existingHash() * IdAttributeSalt);
if (element.isStyledElement() && element.hasClass()) {
« no previous file with comments | « Source/core/css/SelectorChecker.cpp ('k') | Source/core/dom/Element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698