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

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 3a66f9b07547b61c630f51ac1d3c538fbb2ac7e4..b397124d0e9442c2b2bcdbb93092fe10825a0d75 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
@@ -1876,6 +1876,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