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

Unified Diff: third_party/WebKit/Source/core/dom/Document.h

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/dom/Document.h
diff --git a/third_party/WebKit/Source/core/dom/Document.h b/third_party/WebKit/Source/core/dom/Document.h
index 43ed093dbc516aaf3c216bd60c42fe9ce8952af6..e047786c4634519804cdf62e73eb90ec6728d0f1 100644
--- a/third_party/WebKit/Source/core/dom/Document.h
+++ b/third_party/WebKit/Source/core/dom/Document.h
@@ -691,9 +691,9 @@ public:
void updateViewportDescription();
void processReferrerPolicy(const String& policy);
- // Returns the owning element in the parent document.
- // Returns nullptr if this is the top level document.
- HTMLFrameOwnerElement* ownerElement() const;
+ // Returns the owning element in the parent document. Returns nullptr if
+ // this is the top level document or the owner is remote.
+ HTMLFrameOwnerElement* localOwner() const;
// Returns true if this document belongs to a frame that the parent document
// made invisible (for instance by setting as style display:none).
@@ -1065,6 +1065,8 @@ public:
void setRootScroller(Element*, ExceptionState&);
Element* rootScroller();
+ bool isInMainFrame() const;
+
protected:
Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass);
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.cpp ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698