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

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: Address review comments 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..90ae17da2437fbe8286824bd2c29110beba89900 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,
+ SelectorProfile 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()),
@@ -79,6 +81,7 @@ CSSParserContext::CSSParserContext(const CSSParserContext& other,
m_charset(other.m_charset),
m_mode(other.m_mode),
m_matchMode(other.m_matchMode),
+ m_profile(other.m_profile),
m_referrer(other.m_referrer),
m_isHTMLDocument(other.m_isHTMLDocument),
m_useLegacyBackgroundSizeShorthandBehavior(
@@ -90,6 +93,7 @@ CSSParserContext::CSSParserContext(const CSSParserContext& other,
bool CSSParserContext::operator==(const CSSParserContext& other) const {
return m_baseURL == other.m_baseURL && m_charset == other.m_charset &&
m_mode == other.m_mode && m_matchMode == other.m_matchMode &&
+ m_profile == other.m_profile &&
m_isHTMLDocument == other.m_isHTMLDocument &&
m_useLegacyBackgroundSizeShorthandBehavior ==
other.m_useLegacyBackgroundSizeShorthandBehavior;
« no previous file with comments | « third_party/WebKit/Source/core/css/parser/CSSParserMode.h ('k') | third_party/WebKit/Source/core/dom/SelectorQuery.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698