Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Unified Diff: Source/web/WebDevToolsAgentImpl.cpp

Issue 1206833003: Devtools[LayoutEditor]: Pass data about property change from InspectorOverlayPage (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/web/WebDevToolsAgentImpl.cpp
diff --git a/Source/web/WebDevToolsAgentImpl.cpp b/Source/web/WebDevToolsAgentImpl.cpp
index ec6e783c20b684303dc7e686d0601f96287005fc..bb1782deb9ebb5a1705d08b6c09f4186b08bf849 100644
--- a/Source/web/WebDevToolsAgentImpl.cpp
+++ b/Source/web/WebDevToolsAgentImpl.cpp
@@ -65,6 +65,7 @@
#include "core/inspector/InspectorTracingAgent.h"
#include "core/inspector/InspectorWorkerAgent.h"
#include "core/inspector/InstrumentingAgents.h"
+#include "core/inspector/LayoutEditor.h"
#include "core/inspector/PageConsoleAgent.h"
#include "core/inspector/PageDebuggerAgent.h"
#include "core/inspector/PageRuntimeAgent.h"
@@ -425,6 +426,7 @@ void WebDevToolsAgentImpl::willBeDestroyed()
detach();
m_injectedScriptManager->disconnect();
+ m_overlay->layoutEditor()->setCSSAgent(nullptr);
m_agents.discardAgents();
m_instrumentingAgents->reset();
}
@@ -444,6 +446,7 @@ void WebDevToolsAgentImpl::initializeDeferredAgents()
OwnPtrWillBeRawPtr<InspectorCSSAgent> cssAgentPtr(InspectorCSSAgent::create(m_domAgent, m_pageAgent, m_resourceAgent));
m_cssAgent = cssAgentPtr.get();
m_agents.append(cssAgentPtr.release());
+ m_overlay->layoutEditor()->setCSSAgent(m_cssAgent.get());
dgozman 2015/06/25 10:10:39 I'd rather call |m_overlay->setCSSAgent()|, which
sergeyv 2015/06/25 12:19:16 Done.
m_agents.append(InspectorAnimationAgent::create(m_pageAgent, m_domAgent));
« Source/core/inspector/LayoutEditor.h ('K') | « Source/web/InspectorOverlayImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698