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

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

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/BisonCSSParser-in.cpp ('k') | sky/engine/core/css/parser/CSSParserMode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/parser/CSSParserMode.h
diff --git a/sky/engine/core/css/parser/CSSParserMode.h b/sky/engine/core/css/parser/CSSParserMode.h
index 26241f1afeafc498c2c1a886f30f08757563a0e6..51857a620c00bc5960eda6e38f1b4f94f4cd78a0 100644
--- a/sky/engine/core/css/parser/CSSParserMode.h
+++ b/sky/engine/core/css/parser/CSSParserMode.h
@@ -67,18 +67,12 @@ inline bool isCSSViewportParsingEnabledForMode(CSSParserMode mode)
return false;
}
-class UseCounter;
-
class CSSParserContext {
WTF_MAKE_FAST_ALLOCATED;
public:
- explicit CSSParserContext(UseCounter*);
- // FIXME: We shouldn't need the UseCounter argument as we could infer it from the Document
- // but some callers want to disable use counting (e.g. the WebInspector).
- CSSParserContext(const Document&, UseCounter*, const KURL& baseURL = KURL());
- // FIXME: This constructor shouldn't exist if we properly piped the UseCounter through the CSS
- // subsystem. Currently the UseCounter life time is too crazy and we need a way to override it.
- CSSParserContext(const CSSParserContext&, UseCounter*);
+ explicit CSSParserContext();
+ CSSParserContext(const Document&, const KURL& baseURL = KURL());
+ CSSParserContext(const CSSParserContext&);
bool operator==(const CSSParserContext&) const;
bool operator!=(const CSSParserContext& other) const { return !(*this == other); }
@@ -97,13 +91,9 @@ public:
KURL completeURL(const String& url) const;
- UseCounter* useCounter() const { return m_useCounter; }
-
private:
KURL m_baseURL;
Referrer m_referrer;
-
- UseCounter* m_useCounter;
};
const CSSParserContext& strictCSSParserContext();
« no previous file with comments | « sky/engine/core/css/parser/BisonCSSParser-in.cpp ('k') | sky/engine/core/css/parser/CSSParserMode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698