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

Unified Diff: sky/engine/core/css/parser/CSSParserMode.cpp

Issue 867903002: Remove UseCounter (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « sky/engine/core/css/parser/CSSParserMode.h ('k') | sky/engine/core/css/parser/CSSPropertyParser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/parser/CSSParserMode.cpp
diff --git a/sky/engine/core/css/parser/CSSParserMode.cpp b/sky/engine/core/css/parser/CSSParserMode.cpp
index b9f0ef414324d74834747499c24f1139438c1c68..eb8ac3acadc43b800a1cfb9ddde16913ed900aba 100644
--- a/sky/engine/core/css/parser/CSSParserMode.cpp
+++ b/sky/engine/core/css/parser/CSSParserMode.cpp
@@ -32,22 +32,19 @@
namespace blink {
-CSSParserContext::CSSParserContext(UseCounter* useCounter)
- : m_useCounter(useCounter)
+CSSParserContext::CSSParserContext()
{
}
-CSSParserContext::CSSParserContext(const Document& document, UseCounter* useCounter, const KURL& baseURL)
+CSSParserContext::CSSParserContext(const Document& document, const KURL& baseURL)
: m_baseURL(baseURL.isNull() ? document.baseURL() : baseURL)
, m_referrer(m_baseURL.strippedForUseAsReferrer(), document.referrerPolicy())
- , m_useCounter(useCounter)
{
}
-CSSParserContext::CSSParserContext(const CSSParserContext& other, UseCounter* useCounter)
+CSSParserContext::CSSParserContext(const CSSParserContext& other)
: m_baseURL(other.m_baseURL)
, m_referrer(other.m_referrer)
- , m_useCounter(useCounter)
{
}
@@ -58,7 +55,7 @@ bool CSSParserContext::operator==(const CSSParserContext& other) const
const CSSParserContext& strictCSSParserContext()
{
- DEFINE_STATIC_LOCAL(CSSParserContext, strictContext, (0));
+ DEFINE_STATIC_LOCAL(CSSParserContext, strictContext, ());
return strictContext;
}
« no previous file with comments | « sky/engine/core/css/parser/CSSParserMode.h ('k') | sky/engine/core/css/parser/CSSPropertyParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698