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

Side by Side 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: 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 bool hasMutationObservers() const { return m_mutationObserverTypes; } 684 bool hasMutationObservers() const { return m_mutationObserverTypes; }
685 void addMutationObserverTypes(MutationObserverOptions types) { m_mutationObs erverTypes |= types; } 685 void addMutationObserverTypes(MutationObserverOptions types) { m_mutationObs erverTypes |= types; }
686 686
687 IntersectionObserverController* intersectionObserverController(); 687 IntersectionObserverController* intersectionObserverController();
688 IntersectionObserverController& ensureIntersectionObserverController(); 688 IntersectionObserverController& ensureIntersectionObserverController();
689 NodeIntersectionObserverData& ensureIntersectionObserverData(); 689 NodeIntersectionObserverData& ensureIntersectionObserverData();
690 690
691 void updateViewportDescription(); 691 void updateViewportDescription();
692 void processReferrerPolicy(const String& policy); 692 void processReferrerPolicy(const String& policy);
693 693
694 // Returns the owning element in the parent document. 694 // Returns the owning element in the parent document. Returns nullptr if
695 // Returns nullptr if this is the top level document. 695 // this is the top level document or the owner is remote.
696 HTMLFrameOwnerElement* ownerElement() const; 696 HTMLFrameOwnerElement* localOwnerElement() const;
697 697
698 // Returns true if this document belongs to a frame that the parent document 698 // Returns true if this document belongs to a frame that the parent document
699 // made invisible (for instance by setting as style display:none). 699 // made invisible (for instance by setting as style display:none).
700 bool isInInvisibleSubframe() const; 700 bool isInInvisibleSubframe() const;
701 701
702 String title() const { return m_title; } 702 String title() const { return m_title; }
703 void setTitle(const String&); 703 void setTitle(const String&);
704 704
705 Element* titleElement() const { return m_titleElement.get(); } 705 Element* titleElement() const { return m_titleElement.get(); }
706 void setTitleElement(Element*); 706 void setTitleElement(Element*);
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
1433 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1433 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1434 1434
1435 } // namespace blink 1435 } // namespace blink
1436 1436
1437 #ifndef NDEBUG 1437 #ifndef NDEBUG
1438 // Outside the WebCore namespace for ease of invocation from gdb. 1438 // Outside the WebCore namespace for ease of invocation from gdb.
1439 CORE_EXPORT void showLiveDocumentInstances(); 1439 CORE_EXPORT void showLiveDocumentInstances();
1440 #endif 1440 #endif
1441 1441
1442 #endif // Document_h 1442 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698