Index: Source/core/inspector/InspectorDOMAgent.cpp |
diff --git a/Source/core/inspector/InspectorDOMAgent.cpp b/Source/core/inspector/InspectorDOMAgent.cpp |
index 16de128eee8d2786f55fb70e109150c8ea326087..69ac404060f23b1770a6f742a6d398a57ceb54de 100644 |
--- a/Source/core/inspector/InspectorDOMAgent.cpp |
+++ b/Source/core/inspector/InspectorDOMAgent.cpp |
@@ -221,8 +221,13 @@ String InspectorDOMAgent::toErrorString(const ExceptionCode& ec) |
return ""; |
} |
-InspectorDOMAgent::InspectorDOMAgent(InstrumentingAgents* instrumentingAgents, InspectorPageAgent* pageAgent, InspectorCompositeState* inspectorState, InjectedScriptManager* injectedScriptManager, InspectorOverlay* overlay, InspectorClient* client) |
- : InspectorBaseAgent<InspectorDOMAgent>("DOM", instrumentingAgents, inspectorState) |
+PassRefPtr<InspectorDOMAgent> InspectorDOMAgent::create(InstrumentingAgents* instrumentingAgents, InspectorState* inspectorState, PassRefPtr<InspectorPageAgent> pageAgent, InjectedScriptManager* injectedScriptManager, InspectorOverlay* overlay, InspectorClient* client) |
+{ |
+ return adoptRef(new InspectorDOMAgent(instrumentingAgents, inspectorState, pageAgent, injectedScriptManager, overlay, client)); |
+} |
+ |
+InspectorDOMAgent::InspectorDOMAgent(InstrumentingAgents* instrumentingAgents, InspectorState* inspectorState, PassRefPtr<InspectorPageAgent> pageAgent, InjectedScriptManager* injectedScriptManager, InspectorOverlay* overlay, InspectorClient* client) |
+ : InspectorBaseAgent(instrumentingAgents, inspectorState) |
, m_pageAgent(pageAgent) |
, m_injectedScriptManager(injectedScriptManager) |
, m_overlay(overlay) |
@@ -1836,5 +1841,11 @@ PassRefPtr<TypeBuilder::Runtime::RemoteObject> InspectorDOMAgent::resolveNode(No |
return injectedScript.wrapNode(node, objectGroup); |
} |
+InspectorDOMFactory::InspectorDOMFactory(InstrumentingAgents* instrumentingAgents, InspectorCompositeState* compositeState, InspectorPageFactory* pageFactory, InjectedScriptManager* injectedScriptManager, InspectorOverlay* overlay, InspectorClient* client) |
+ : InspectorBaseFactory<InspectorDOMFactory, InspectorDOMAgent>("DOM", instrumentingAgents, compositeState) |
+{ |
+ setAgent(InspectorDOMAgent::create(m_instrumentingAgents, m_state, pageFactory->agent(), injectedScriptManager, overlay, client)); |
+} |
+ |
} // namespace WebCore |