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

Unified Diff: third_party/WebKit/Source/core/frame/UseCounter.h

Issue 2671173002: Change CSSParserContext to have a Document handle (vs UseCounter). (Closed)
Patch Set: fix trace and import Created 3 years, 10 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/frame/UseCounter.h
diff --git a/third_party/WebKit/Source/core/frame/UseCounter.h b/third_party/WebKit/Source/core/frame/UseCounter.h
index 5579ffa5c0fd904b1f40c1d2a867a8d2e99a28ce..3f80ea5b2f6e6cf277aae6ab53d42b158b161795 100644
--- a/third_party/WebKit/Source/core/frame/UseCounter.h
+++ b/third_party/WebKit/Source/core/frame/UseCounter.h
@@ -1462,6 +1462,9 @@ class CORE_EXPORT UseCounter {
NumberOfFeatures, // This enum value must be last.
};
+ static const Document* singleOwnerDocument(const StyleSheetContents*);
+ static const Document* singleOwnerDocument(const CSSStyleSheet*);
haraken 2017/02/08 01:40:00 I'd move these methods to StyleSheetContents (or s
Bret 2017/02/09 01:53:33 Done. I moved these into their own class files (St
+
// "count" sets the bit for this feature to 1. Repeated calls are ignored.
static void count(const Frame*, Feature);
static void count(const Document&, Feature);
@@ -1485,10 +1488,6 @@ class CORE_EXPORT UseCounter {
// Invoked when a new document is loaded into the main frame of the page.
void didCommitLoad(KURL);
- static UseCounter* getFrom(const Document*);
- static UseCounter* getFrom(const CSSStyleSheet*);
- static UseCounter* getFrom(const StyleSheetContents*);
-
static int mapCSSPropertyIdToCSSSampleIdForHistogram(CSSPropertyID);
// When muted, all calls to "count" functions are ignoed. May be nested.

Powered by Google App Engine
This is Rietveld 408576698