InspectorInstrumentationCookie InspectorInstrumentation::willMatchRuleImpl(InstrumentingAgents* instrumentingAgents, const CSSStyleRule* rule) { InspectorCSSAgent* cssAgent = instrumentingAgents->inspectorCSSAgent(); if (cssAgent) { cssAgent->willMatchRule(rule); return InspectorInstrumentationCookie(instrumentingAgents, 1); } return InspectorInstrumentationCookie(); }
InspectorInstrumentationCookie InspectorInstrumentation::willMatchRuleImpl(InstrumentingAgents* instrumentingAgents, const StyleRule* rule) { InspectorCSSAgent* cssAgent = instrumentingAgents->inspectorCSSAgent(); if (cssAgent) { RefPtr<CSSRule> cssRule = rule->createCSSOMWrapper(); cssAgent->willMatchRule(static_cast<CSSStyleRule*>(cssRule.get())); return InspectorInstrumentationCookie(instrumentingAgents, 1); } return InspectorInstrumentationCookie(); }