Home | History | Annotate | Download | only in frame

Lines Matching refs:useCounter

28 #include "core/frame/UseCounter.h"
45 int UseCounter::m_muteCount = 0;
52 int UseCounter::mapCSSPropertyIdToCSSSampleIdForHistogram(int id)
538 void UseCounter::muteForInspector()
540 UseCounter::m_muteCount++;
543 void UseCounter::unmuteForInspector()
545 UseCounter::m_muteCount--;
548 UseCounter::UseCounter()
554 UseCounter::~UseCounter()
562 void UseCounter::updateMeasurements()
593 void UseCounter::didCommitLoad()
598 void UseCounter::count(const Document& document, Feature feature)
604 ASSERT(host->useCounter().deprecationMessage(feature).isEmpty());
605 host->useCounter().recordMeasurement(feature);
608 void UseCounter::count(const ExecutionContext* context, Feature feature)
620 void UseCounter::countDeprecation(ExecutionContext* context, Feature feature)
625 UseCounter::countDeprecation(*toDocument(context), feature);
632 void UseCounter::countDeprecation(const LocalDOMWindow* window, Feature feature)
636 UseCounter::countDeprecation(*window->document(), feature);
639 void UseCounter::countDeprecation(const Document& document, Feature feature)
646 if (host->useCounter().recordMeasurement(feature)) {
647 ASSERT(!host->useCounter().deprecationMessage(feature).isEmpty());
648 frame->console().addMessage(DeprecationMessageSource, WarningMessageLevel, host->useCounter().deprecationMessage(feature));
652 String UseCounter::deprecationMessage(Feature feature)
757 void UseCounter::count(CSSParserContext context, CSSPropertyID feature)
769 void UseCounter::count(Feature feature)
775 UseCounter* UseCounter::getFrom(const Document* document)
778 return &document->frameHost()->useCounter();
782 UseCounter* UseCounter::getFrom(const CSSStyleSheet* sheet)
789 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)