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

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

Issue 2777433003: Remove base URL, referrer, and charset setters from CSSParserContext (Closed)
Patch Set: Created 3 years, 9 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 | « third_party/WebKit/Source/core/css/parser/CSSParserContext.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/parser/CSSParserContext.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserContext.cpp b/third_party/WebKit/Source/core/css/parser/CSSParserContext.cpp
index bca0fcf64eef2f973921626bf345c111cd42f4ef..0f9e4a2f5f5c5b4a9c551e60e8682bc3bee23f7a 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParserContext.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserContext.cpp
@@ -41,6 +41,19 @@ CSSParserContext* CSSParserContext::create(const CSSParserContext* other,
}
// static
+CSSParserContext* CSSParserContext::create(const CSSParserContext* other,
+ const KURL& baseURL,
+ const String& charset,
+ const Referrer& referrer,
+ const Document* useCounterDocument) {
+ return new CSSParserContext(
+ baseURL, charset, other->m_mode, other->m_matchMode, other->m_profile,
+ referrer, other->m_isHTMLDocument,
+ other->m_useLegacyBackgroundSizeShorthandBehavior,
+ other->m_shouldCheckContentSecurityPolicy, useCounterDocument);
+}
+
+// static
CSSParserContext* CSSParserContext::create(CSSParserMode mode,
SelectorProfile profile,
const Document* useCounterDocument) {
« no previous file with comments | « third_party/WebKit/Source/core/css/parser/CSSParserContext.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698