| OLD | NEW |
| 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 Loading... |
| 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* localOwner() 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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1058 void enforceStrictMixedContentChecking(); | 1058 void enforceStrictMixedContentChecking(); |
| 1059 | 1059 |
| 1060 bool mayContainV0Shadow() const { return m_mayContainV0Shadow; } | 1060 bool mayContainV0Shadow() const { return m_mayContainV0Shadow; } |
| 1061 | 1061 |
| 1062 ShadowCascadeOrder shadowCascadeOrder() const { return m_shadowCascadeOrder;
} | 1062 ShadowCascadeOrder shadowCascadeOrder() const { return m_shadowCascadeOrder;
} |
| 1063 void setShadowCascadeOrder(ShadowCascadeOrder); | 1063 void setShadowCascadeOrder(ShadowCascadeOrder); |
| 1064 | 1064 |
| 1065 void setRootScroller(Element*, ExceptionState&); | 1065 void setRootScroller(Element*, ExceptionState&); |
| 1066 Element* rootScroller(); | 1066 Element* rootScroller(); |
| 1067 | 1067 |
| 1068 bool isInMainFrame() const; |
| 1069 |
| 1068 protected: | 1070 protected: |
| 1069 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); | 1071 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); |
| 1070 | 1072 |
| 1071 void didUpdateSecurityOrigin() final; | 1073 void didUpdateSecurityOrigin() final; |
| 1072 | 1074 |
| 1073 void clearXMLVersion() { m_xmlVersion = String(); } | 1075 void clearXMLVersion() { m_xmlVersion = String(); } |
| 1074 | 1076 |
| 1075 virtual Document* cloneDocumentWithoutChildren(); | 1077 virtual Document* cloneDocumentWithoutChildren(); |
| 1076 | 1078 |
| 1077 bool importContainerNodeChildren(ContainerNode* oldContainerNode, ContainerN
ode* newContainerNode, ExceptionState&); | 1079 bool importContainerNodeChildren(ContainerNode* oldContainerNode, ContainerN
ode* newContainerNode, ExceptionState&); |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1427 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1429 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
| 1428 | 1430 |
| 1429 } // namespace blink | 1431 } // namespace blink |
| 1430 | 1432 |
| 1431 #ifndef NDEBUG | 1433 #ifndef NDEBUG |
| 1432 // Outside the WebCore namespace for ease of invocation from gdb. | 1434 // Outside the WebCore namespace for ease of invocation from gdb. |
| 1433 CORE_EXPORT void showLiveDocumentInstances(); | 1435 CORE_EXPORT void showLiveDocumentInstances(); |
| 1434 #endif | 1436 #endif |
| 1435 | 1437 |
| 1436 #endif // Document_h | 1438 #endif // Document_h |
| OLD | NEW |