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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp

Issue 2455943003: Backend for css rule tracking (Closed)
Patch Set: Backend for CSS Rule tracking. Created 4 years, 1 month 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: third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
index af9bd8e9e9ba8de5c718b873ffc1e8e6372faae1..96a68f7cd35622fe5329c2c57e308d64bddc48ef 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
@@ -1912,6 +1912,10 @@ void InspectorDOMAgent::invalidateFrameOwnerElement(LocalFrame* frame) {
}
void InspectorDOMAgent::didCommitLoad(LocalFrame*, DocumentLoader* loader) {
+ Document* document = loader->frame()->document();
+ if (m_domListener)
+ m_domListener->didAddDocument(document);
+
LocalFrame* inspectedFrame = m_inspectedFrames->root();
if (loader->frame() != inspectedFrame) {
invalidateFrameOwnerElement(loader->frame());

Powered by Google App Engine
This is Rietveld 408576698