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

Unified Diff: third_party/WebKit/Source/core/css/StyleSheetContents.cpp

Issue 1616423003: Fix selector namespace prefix resolution. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed review issues Created 4 years, 11 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: third_party/WebKit/Source/core/css/StyleSheetContents.cpp
diff --git a/third_party/WebKit/Source/core/css/StyleSheetContents.cpp b/third_party/WebKit/Source/core/css/StyleSheetContents.cpp
index a29c1cc394709908380ffd419c1f4f54b27eca78..0ae663ebb06f8f16c9fa8b2e2456d5b97e0b34e2 100644
--- a/third_party/WebKit/Source/core/css/StyleSheetContents.cpp
+++ b/third_party/WebKit/Source/core/css/StyleSheetContents.cpp
@@ -313,14 +313,8 @@ void StyleSheetContents::parserAddNamespace(const AtomicString& prefix, const At
result.storedValue->value = uri;
}
-const AtomicString& StyleSheetContents::determineNamespace(const AtomicString& prefix)
-{
- if (prefix.isNull())
- return defaultNamespace();
- if (prefix.isEmpty())
- return emptyAtom; // No namespace. If an element/attribute has a namespace, we won't match it.
- if (prefix == starAtom)
- return starAtom; // We'll match any namespace.
+const AtomicString& StyleSheetContents::namespaceURIFromPrefix(const AtomicString& prefix)
+{
return m_namespaces.get(prefix);
}
« no previous file with comments | « third_party/WebKit/Source/core/css/StyleSheetContents.h ('k') | third_party/WebKit/Source/core/css/parser/CSSParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698