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

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

Issue 1851743002: Simplify Supplementables post Oilpan. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix component build Created 4 years, 8 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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 XHTMLDocumentClass = 1 << 1, 205 XHTMLDocumentClass = 1 << 1,
206 ImageDocumentClass = 1 << 2, 206 ImageDocumentClass = 1 << 2,
207 PluginDocumentClass = 1 << 3, 207 PluginDocumentClass = 1 << 3,
208 MediaDocumentClass = 1 << 4, 208 MediaDocumentClass = 1 << 4,
209 SVGDocumentClass = 1 << 5, 209 SVGDocumentClass = 1 << 5,
210 XMLDocumentClass = 1 << 6, 210 XMLDocumentClass = 1 << 6,
211 }; 211 };
212 212
213 using DocumentClassFlags = unsigned char; 213 using DocumentClassFlags = unsigned char;
214 214
215 class CORE_EXPORT Document : public ContainerNode, public TreeScope, public Secu rityContext, public ExecutionContext 215 class CORE_EXPORT Document : public ContainerNode, public TreeScope, public Secu rityContext, public ExecutionContext, public Supplementable<Document>, public Do cumentLifecycleNotifier {
216 , public HeapSupplementable<Document>, public DocumentLifecycleNotifier {
217 DEFINE_WRAPPERTYPEINFO(); 216 DEFINE_WRAPPERTYPEINFO();
218 USING_GARBAGE_COLLECTED_MIXIN(Document); 217 USING_GARBAGE_COLLECTED_MIXIN(Document);
219 public: 218 public:
220 static RawPtr<Document> create(const DocumentInit& initializer = DocumentIni t()) 219 static RawPtr<Document> create(const DocumentInit& initializer = DocumentIni t())
221 { 220 {
222 return new Document(initializer); 221 return new Document(initializer);
223 } 222 }
224 ~Document() override; 223 ~Document() override;
225 224
226 MediaQueryMatcher& mediaQueryMatcher(); 225 MediaQueryMatcher& mediaQueryMatcher();
(...skipping 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after
1398 ClientHintsPreferences m_clientHintsPreferences; 1397 ClientHintsPreferences m_clientHintsPreferences;
1399 1398
1400 Member<CanvasFontCache> m_canvasFontCache; 1399 Member<CanvasFontCache> m_canvasFontCache;
1401 1400
1402 Member<IntersectionObserverController> m_intersectionObserverController; 1401 Member<IntersectionObserverController> m_intersectionObserverController;
1403 Member<NodeIntersectionObserverData> m_intersectionObserverData; 1402 Member<NodeIntersectionObserverData> m_intersectionObserverData;
1404 1403
1405 int m_nodeCount; 1404 int m_nodeCount;
1406 }; 1405 };
1407 1406
1408 extern template class CORE_EXTERN_TEMPLATE_EXPORT HeapSupplement<Document>; 1407 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>;
1409 1408
1410 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin) 1409 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin)
1411 { 1410 {
1412 // The different (legacy) meta tags have different priorities based on the t ype 1411 // The different (legacy) meta tags have different priorities based on the t ype
1413 // regardless of which order they appear in the DOM. The priority is given b y the 1412 // regardless of which order they appear in the DOM. The priority is given b y the
1414 // ViewportDescription::Type enum. 1413 // ViewportDescription::Type enum.
1415 return origin >= m_legacyViewportDescription.type; 1414 return origin >= m_legacyViewportDescription.type;
1416 } 1415 }
1417 1416
1418 inline void Document::scheduleLayoutTreeUpdateIfNeeded() 1417 inline void Document::scheduleLayoutTreeUpdateIfNeeded()
(...skipping 26 matching lines...) Expand all
1445 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1444 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1446 1445
1447 } // namespace blink 1446 } // namespace blink
1448 1447
1449 #ifndef NDEBUG 1448 #ifndef NDEBUG
1450 // Outside the WebCore namespace for ease of invocation from gdb. 1449 // Outside the WebCore namespace for ease of invocation from gdb.
1451 CORE_EXPORT void showLiveDocumentInstances(); 1450 CORE_EXPORT void showLiveDocumentInstances();
1452 #endif 1451 #endif
1453 1452
1454 #endif // Document_h 1453 #endif // Document_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ContextFeatures.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