summaryrefslogtreecommitdiffstats
path: root/WebKitTools/DumpRenderTree/chromium/DRTDevToolsAgent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKitTools/DumpRenderTree/chromium/DRTDevToolsAgent.cpp')
-rw-r--r--WebKitTools/DumpRenderTree/chromium/DRTDevToolsAgent.cpp22
1 files changed, 12 insertions, 10 deletions
diff --git a/WebKitTools/DumpRenderTree/chromium/DRTDevToolsAgent.cpp b/WebKitTools/DumpRenderTree/chromium/DRTDevToolsAgent.cpp
index 4736676..639ee52 100644
--- a/WebKitTools/DumpRenderTree/chromium/DRTDevToolsAgent.cpp
+++ b/WebKitTools/DumpRenderTree/chromium/DRTDevToolsAgent.cpp
@@ -74,14 +74,9 @@ void DRTDevToolsAgent::forceRepaint()
{
}
-void DRTDevToolsAgent::runtimeFeatureStateChanged(const WebKit::WebString& feature, bool enabled)
+void DRTDevToolsAgent::runtimePropertyChanged(const WebKit::WebString& name, const WebKit::WebString& value)
{
- // FIXME: implement this.
-}
-
-WebCString DRTDevToolsAgent::injectedScriptSource()
-{
- return webkit_support::GetDevToolsInjectedScriptSource();
+ // FIXME: Implement.
}
WebCString DRTDevToolsAgent::debuggerScriptSource()
@@ -104,6 +99,14 @@ void DRTDevToolsAgent::call(const DRTDevToolsCallArgs &args)
m_drtDevToolsClient->allMessagesProcessed();
}
+void DRTDevToolsAgent::delayedFrontendLoaded()
+{
+ WebDevToolsAgent* agent = webDevToolsAgent();
+ if (agent)
+ agent->frontendLoaded();
+}
+
+
WebDevToolsAgent* DRTDevToolsAgent::webDevToolsAgent()
{
if (!m_webView)
@@ -130,9 +133,8 @@ void DRTDevToolsAgent::detach()
}
void DRTDevToolsAgent::frontendLoaded() {
- WebDevToolsAgent* agent = webDevToolsAgent();
- if (agent)
- agent->frontendLoaded();
+ webkit_support::PostTaskFromHere(
+ m_callMethodFactory.NewRunnableMethod(&DRTDevToolsAgent::delayedFrontendLoaded));
}
bool DRTDevToolsAgent::setTimelineProfilingEnabled(bool enabled)