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

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.h

Issue 2553343004: IntersectionObserver: use nullptr for implicit root. (Closed)
Patch Set: rebase Created 4 years 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 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All
7 * rights reserved. 7 * rights reserved.
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 class LayoutView; 129 class LayoutView;
130 class LayoutViewItem; 130 class LayoutViewItem;
131 class LiveNodeListBase; 131 class LiveNodeListBase;
132 class LocalDOMWindow; 132 class LocalDOMWindow;
133 class Locale; 133 class Locale;
134 class LocalFrame; 134 class LocalFrame;
135 class Location; 135 class Location;
136 class MediaQueryListListener; 136 class MediaQueryListListener;
137 class MediaQueryMatcher; 137 class MediaQueryMatcher;
138 class NodeFilter; 138 class NodeFilter;
139 class NodeIntersectionObserverData;
140 class NodeIterator; 139 class NodeIterator;
141 class NthIndexCache; 140 class NthIndexCache;
142 class OriginAccessEntry; 141 class OriginAccessEntry;
143 class Page; 142 class Page;
144 class PlatformMouseEvent; 143 class PlatformMouseEvent;
145 class ProcessingInstruction; 144 class ProcessingInstruction;
146 class PropertyRegistry; 145 class PropertyRegistry;
147 class QualifiedName; 146 class QualifiedName;
148 class Range; 147 class Range;
149 class ResizeObserverController; 148 class ResizeObserverController;
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 bool hasMutationObserversOfType(MutationObserver::MutationType type) const { 805 bool hasMutationObserversOfType(MutationObserver::MutationType type) const {
807 return m_mutationObserverTypes & type; 806 return m_mutationObserverTypes & type;
808 } 807 }
809 bool hasMutationObservers() const { return m_mutationObserverTypes; } 808 bool hasMutationObservers() const { return m_mutationObserverTypes; }
810 void addMutationObserverTypes(MutationObserverOptions types) { 809 void addMutationObserverTypes(MutationObserverOptions types) {
811 m_mutationObserverTypes |= types; 810 m_mutationObserverTypes |= types;
812 } 811 }
813 812
814 IntersectionObserverController* intersectionObserverController(); 813 IntersectionObserverController* intersectionObserverController();
815 IntersectionObserverController& ensureIntersectionObserverController(); 814 IntersectionObserverController& ensureIntersectionObserverController();
816 NodeIntersectionObserverData& ensureIntersectionObserverData();
817 815
818 ResizeObserverController* resizeObserverController() const { 816 ResizeObserverController* resizeObserverController() const {
819 return m_resizeObserverController; 817 return m_resizeObserverController;
820 } 818 }
821 ResizeObserverController& ensureResizeObserverController(); 819 ResizeObserverController& ensureResizeObserverController();
822 820
823 void updateViewportDescription(); 821 void updateViewportDescription();
824 822
825 // Returns the owning element in the parent document. Returns nullptr if 823 // Returns the owning element in the parent document. Returns nullptr if
826 // this is the top level document or the owner is remote. 824 // this is the top level document or the owner is remote.
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after
1647 1645
1648 ParserSynchronizationPolicy m_parserSyncPolicy; 1646 ParserSynchronizationPolicy m_parserSyncPolicy;
1649 1647
1650 HostsUsingFeatures::Value m_hostsUsingFeaturesValue; 1648 HostsUsingFeatures::Value m_hostsUsingFeaturesValue;
1651 1649
1652 ClientHintsPreferences m_clientHintsPreferences; 1650 ClientHintsPreferences m_clientHintsPreferences;
1653 1651
1654 Member<CanvasFontCache> m_canvasFontCache; 1652 Member<CanvasFontCache> m_canvasFontCache;
1655 1653
1656 Member<IntersectionObserverController> m_intersectionObserverController; 1654 Member<IntersectionObserverController> m_intersectionObserverController;
1657 Member<NodeIntersectionObserverData> m_intersectionObserverData;
1658 Member<ResizeObserverController> m_resizeObserverController; 1655 Member<ResizeObserverController> m_resizeObserverController;
1659 1656
1660 int m_nodeCount; 1657 int m_nodeCount;
1661 1658
1662 bool m_mayContainV0Shadow = false; 1659 bool m_mayContainV0Shadow = false;
1663 1660
1664 Member<SnapCoordinator> m_snapCoordinator; 1661 Member<SnapCoordinator> m_snapCoordinator;
1665 1662
1666 WouldLoadReason m_wouldLoadReason; 1663 WouldLoadReason m_wouldLoadReason;
1667 1664
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
1717 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1714 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1718 1715
1719 } // namespace blink 1716 } // namespace blink
1720 1717
1721 #ifndef NDEBUG 1718 #ifndef NDEBUG
1722 // Outside the WebCore namespace for ease of invocation from gdb. 1719 // Outside the WebCore namespace for ease of invocation from gdb.
1723 CORE_EXPORT void showLiveDocumentInstances(); 1720 CORE_EXPORT void showLiveDocumentInstances();
1724 #endif 1721 #endif
1725 1722
1726 #endif // Document_h 1723 #endif // Document_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/BUILD.gn ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698