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

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

Issue 1942623002: Rename Document::ownerElement to localOwner and fix main frame checks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed const changes and some gratuitous checks Created 4 years, 7 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: 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 16a0517b5ac0776da951bcdfedbbbe532eaeaf75..bc02ed4573e996370f0818513971cb53666baaa8 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
@@ -1655,7 +1655,7 @@ Node* InspectorDOMAgent::innerParentNode(Node* node)
Document* document = toDocument(node);
if (HTMLImportLoader* loader = document->importLoader())
return loader->firstImport()->link();
- return document->ownerElement();
+ return document->localOwner();
}
return node->parentOrShadowHostNode();
}
@@ -1679,7 +1679,7 @@ void InspectorDOMAgent::domContentLoadedEventFired(LocalFrame* frame)
void InspectorDOMAgent::invalidateFrameOwnerElement(LocalFrame* frame)
{
- HTMLFrameOwnerElement* frameOwner = frame->document()->ownerElement();
+ HTMLFrameOwnerElement* frameOwner = frame->document()->localOwner();
if (!frameOwner)
return;

Powered by Google App Engine
This is Rietveld 408576698