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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSParserMode.cpp

Issue 2493003003: Introduce CSS parser mode for distinguishing static/dynamic profile (Closed)
Patch Set: clean up Created 4 years, 1 month 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/parser/CSSParserMode.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserMode.cpp b/third_party/WebKit/Source/core/css/parser/CSSParserMode.cpp
index 761ac63538e9be164323044d362926ea047cbfa6..96c2cb32ccb0016ad8311c3dbf6e408c103c0648 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParserMode.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserMode.cpp
@@ -47,10 +47,12 @@ CSSParserContext::CSSParserContext(CSSParserMode mode, UseCounter* useCounter)
CSSParserContext::CSSParserContext(const Document& document,
UseCounter* useCounter,
const KURL& baseURL,
- const String& charset)
+ const String& charset,
+ Profile profile)
: m_baseURL(baseURL.isNull() ? document.baseURL() : baseURL),
m_charset(charset),
m_mode(document.inQuirksMode() ? HTMLQuirksMode : HTMLStandardMode),
+ m_profile(profile),
m_referrer(m_baseURL.strippedForUseAsReferrer(),
document.getReferrerPolicy()),
m_isHTMLDocument(document.isHTMLDocument()),

Powered by Google App Engine
This is Rietveld 408576698