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

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

Issue 1580783003: Revert of Use Document, rather than document element, for implicit root. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@intersection-observer
Patch Set: Created 4 years, 11 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 class IntersectionObserverController; 129 class IntersectionObserverController;
130 class LayoutPoint; 130 class LayoutPoint;
131 class LiveNodeListBase; 131 class LiveNodeListBase;
132 class Locale; 132 class Locale;
133 class LocalFrame; 133 class LocalFrame;
134 class Location; 134 class Location;
135 class MainThreadTaskRunner; 135 class MainThreadTaskRunner;
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 QualifiedName; 145 class QualifiedName;
147 class Range; 146 class Range;
148 class LayoutView; 147 class LayoutView;
149 class ResourceFetcher; 148 class ResourceFetcher;
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 { 682 {
684 return m_mutationObserverTypes & type; 683 return m_mutationObserverTypes & type;
685 } 684 }
686 bool hasMutationObservers() const { return m_mutationObserverTypes; } 685 bool hasMutationObservers() const { return m_mutationObserverTypes; }
687 void addMutationObserverTypes(MutationObserverOptions types) { m_mutationObs erverTypes |= types; } 686 void addMutationObserverTypes(MutationObserverOptions types) { m_mutationObs erverTypes |= types; }
688 687
689 WeakPtrWillBeRawPtr<Document> createWeakPtr(); 688 WeakPtrWillBeRawPtr<Document> createWeakPtr();
690 689
691 IntersectionObserverController* intersectionObserverController(); 690 IntersectionObserverController* intersectionObserverController();
692 IntersectionObserverController& ensureIntersectionObserverController(); 691 IntersectionObserverController& ensureIntersectionObserverController();
693 NodeIntersectionObserverData& ensureIntersectionObserverData();
694 692
695 void updateViewportDescription(); 693 void updateViewportDescription();
696 void processReferrerPolicy(const String& policy); 694 void processReferrerPolicy(const String& policy);
697 695
698 // Returns the owning element in the parent document. 696 // Returns the owning element in the parent document.
699 // Returns nullptr if this is the top level document. 697 // Returns nullptr if this is the top level document.
700 HTMLFrameOwnerElement* ownerElement() const; 698 HTMLFrameOwnerElement* ownerElement() const;
701 699
702 // Returns true if this document belongs to a frame that the parent document 700 // Returns true if this document belongs to a frame that the parent document
703 // made invisible (for instance by setting as style display:none). 701 // made invisible (for instance by setting as style display:none).
(...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after
1400 1398
1401 ParserSynchronizationPolicy m_parserSyncPolicy; 1399 ParserSynchronizationPolicy m_parserSyncPolicy;
1402 1400
1403 OriginsUsingFeatures::Value m_originsUsingFeaturesValue; 1401 OriginsUsingFeatures::Value m_originsUsingFeaturesValue;
1404 1402
1405 ClientHintsPreferences m_clientHintsPreferences; 1403 ClientHintsPreferences m_clientHintsPreferences;
1406 1404
1407 PersistentWillBeMember<CanvasFontCache> m_canvasFontCache; 1405 PersistentWillBeMember<CanvasFontCache> m_canvasFontCache;
1408 1406
1409 PersistentWillBeMember<IntersectionObserverController> m_intersectionObserve rController; 1407 PersistentWillBeMember<IntersectionObserverController> m_intersectionObserve rController;
1410 PersistentWillBeMember<NodeIntersectionObserverData> m_intersectionObserverD ata;
1411 1408
1412 int m_nodeCount; 1409 int m_nodeCount;
1413 }; 1410 };
1414 1411
1415 extern template class CORE_EXTERN_TEMPLATE_EXPORT WillBeHeapSupplement<Document> ; 1412 extern template class CORE_EXTERN_TEMPLATE_EXPORT WillBeHeapSupplement<Document> ;
1416 1413
1417 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin) 1414 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin)
1418 { 1415 {
1419 // The different (legacy) meta tags have different priorities based on the t ype 1416 // The different (legacy) meta tags have different priorities based on the t ype
1420 // regardless of which order they appear in the DOM. The priority is given b y the 1417 // regardless of which order they appear in the DOM. The priority is given b y the
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1452 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1449 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1453 1450
1454 } // namespace blink 1451 } // namespace blink
1455 1452
1456 #ifndef NDEBUG 1453 #ifndef NDEBUG
1457 // Outside the WebCore namespace for ease of invocation from gdb. 1454 // Outside the WebCore namespace for ease of invocation from gdb.
1458 CORE_EXPORT void showLiveDocumentInstances(); 1455 CORE_EXPORT void showLiveDocumentInstances();
1459 #endif 1456 #endif
1460 1457
1461 #endif // Document_h 1458 #endif // Document_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698