Index: third_party/WebKit/Source/core/frame/UseCounter.cpp |
diff --git a/third_party/WebKit/Source/core/frame/UseCounter.cpp b/third_party/WebKit/Source/core/frame/UseCounter.cpp |
index 95de635c0081b1f9ec5c6ca89ca5ed9fa52cc07a..1a88df5ffb335e1359b4cfcb1fd95fb469404177 100644 |
--- a/third_party/WebKit/Source/core/frame/UseCounter.cpp |
+++ b/third_party/WebKit/Source/core/frame/UseCounter.cpp |
@@ -1250,26 +1250,6 @@ void UseCounter::count(Feature feature) { |
recordMeasurement(feature); |
} |
-UseCounter* UseCounter::getFrom(const Document* document) { |
- if (document && document->frameHost()) |
- return &document->frameHost()->useCounter(); |
- return 0; |
-} |
- |
-UseCounter* UseCounter::getFrom(const CSSStyleSheet* sheet) { |
- if (sheet) |
- return getFrom(sheet->contents()); |
- return 0; |
-} |
- |
-UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) { |
- // FIXME: We may want to handle stylesheets that have multiple owners |
- // https://crbug.com/242125 |
- if (sheetContents && sheetContents->hasSingleOwnerNode()) |
- return getFrom(sheetContents->singleOwnerDocument()); |
- return 0; |
-} |
- |
EnumerationHistogram& UseCounter::featuresHistogram() const { |
// Every SVGImage has it's own Page instance, and multiple web pages can |
// share the usage of a single SVGImage. Ideally perhaps we'd delegate |