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

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

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
Index: third_party/WebKit/Source/core/css/parser/CSSParserContext.h
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserContext.h b/third_party/WebKit/Source/core/css/parser/CSSParserContext.h
index 5f60e91f1566da4b988ccb1652e8042769515000..28eb51f061bc288705addaf6b4c6ea89c4e6b2df 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParserContext.h
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserContext.h
@@ -37,6 +37,12 @@ class CORE_EXPORT CSSParserContext
static CSSParserContext* create(const CSSParserContext* other,
const Document* useCounterDocument);
+ static CSSParserContext* create(const CSSParserContext* other,
+ const KURL& baseURLOverride,
+ const String& charsetOverride,
+ const Referrer& referrerOverride,
+ const Document* useCounterDocument);
+
static CSSParserContext* create(CSSParserMode,
SelectorProfile = DynamicProfile,
const Document* useCounterDocument = nullptr);
@@ -69,13 +75,10 @@ class CORE_EXPORT CSSParserContext
return m_useLegacyBackgroundSizeShorthandBehavior;
}
- // FIXME: These setters shouldn't exist, however the current lifetime of
+ // FIXME: This setter shouldn't exist, however the current lifetime of
// CSSParserContext is not well understood and thus we sometimes need to
- // override these fields.
+ // override this field.
void setMode(CSSParserMode mode) { m_mode = mode; }
- void setBaseURL(const KURL& baseURL) { m_baseURL = baseURL; }
- void setCharset(const String& charset) { m_charset = charset; }
- void setReferrer(const Referrer& referrer) { m_referrer = referrer; }
KURL completeURL(const String& url) const;
« no previous file with comments | « third_party/WebKit/Source/core/css/StyleRuleImport.cpp ('k') | third_party/WebKit/Source/core/css/parser/CSSParserContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698