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

Unified Diff: Source/core/css/StyleSheetContents.h

Issue 1322543004: CSSStyleSheet::insertRule should respect the default namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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/StyleSheetContents.h
diff --git a/Source/core/css/StyleSheetContents.h b/Source/core/css/StyleSheetContents.h
index aad72df37d3abc5978baffbdcff3301c66bc7104..cb03edab91ee730b88992d6d61ac280691b7238c 100644
--- a/Source/core/css/StyleSheetContents.h
+++ b/Source/core/css/StyleSheetContents.h
@@ -64,6 +64,7 @@ public:
const CSSParserContext& parserContext() const { return m_parserContext; }
+ const AtomicString& defaultNamespace() { return m_defaultNamespace; }
const AtomicString& determineNamespace(const AtomicString& prefix);
void parseAuthorStyleSheet(const CSSStyleSheetResource*, const SecurityOrigin*);
@@ -174,6 +175,7 @@ private:
WillBeHeapVector<RefPtrWillBeMember<StyleRuleBase>> m_childRules;
typedef HashMap<AtomicString, AtomicString> PrefixNamespaceURIMap;
PrefixNamespaceURIMap m_namespaces;
+ AtomicString m_defaultNamespace;
bool m_hasSyntacticallyValidCSSHeader : 1;
bool m_didLoadErrorOccur : 1;
« no previous file with comments | « LayoutTests/fast/css/namespaces/default-namespace-insert-rule.html ('k') | Source/core/css/StyleSheetContents.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698