Chromium Code Reviews| 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 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1030 | 1030 |
| 1031 NthIndexCache* nthIndexCache() const { return m_nthIndexCache; } | 1031 NthIndexCache* nthIndexCache() const { return m_nthIndexCache; } |
| 1032 | 1032 |
| 1033 bool isPrivilegedContext(String& errorMessage, const PrivilegeContextCheck = StandardPrivilegeCheck) const override; | 1033 bool isPrivilegedContext(String& errorMessage, const PrivilegeContextCheck = StandardPrivilegeCheck) const override; |
| 1034 | 1034 |
| 1035 void setClientHintsPreferences(const ClientHintsPreferences& preferences) { m_clientHintsPreferences.set(preferences); } | 1035 void setClientHintsPreferences(const ClientHintsPreferences& preferences) { m_clientHintsPreferences.set(preferences); } |
| 1036 const ClientHintsPreferences& clientHintsPreferences() const { return m_clie ntHintsPreferences; } | 1036 const ClientHintsPreferences& clientHintsPreferences() const { return m_clie ntHintsPreferences; } |
| 1037 | 1037 |
| 1038 CanvasFontCache* canvasFontCache(); | 1038 CanvasFontCache* canvasFontCache(); |
| 1039 | 1039 |
| 1040 void incrementNodeCount() { m_nodeCount++; } | |
| 1041 void decrementNodeCount() { m_nodeCount--; } | |
|
haraken
2015/08/03 01:03:59
I'd use 'signed int' for m_nodeCount and add ASSER
keishi
2015/08/06 06:59:14
Done.
| |
| 1042 unsigned nodeCount() { return m_nodeCount; } | |
| 1043 | |
| 1044 using WeakDocumentSet = WillBeHeapHashSet<RawPtrWillBeWeakMember<Document>>; | |
| 1045 static WeakDocumentSet& liveDocumentSet(); | |
| 1046 | |
| 1040 protected: | 1047 protected: |
| 1041 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); | 1048 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); |
| 1042 | 1049 |
| 1043 void didUpdateSecurityOrigin() final; | 1050 void didUpdateSecurityOrigin() final; |
| 1044 | 1051 |
| 1045 void clearXMLVersion() { m_xmlVersion = String(); } | 1052 void clearXMLVersion() { m_xmlVersion = String(); } |
| 1046 | 1053 |
| 1047 #if !ENABLE(OILPAN) | 1054 #if !ENABLE(OILPAN) |
| 1048 void dispose() override; | 1055 void dispose() override; |
| 1049 #endif | 1056 #endif |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1376 | 1383 |
| 1377 int m_styleRecalcElementCounter; | 1384 int m_styleRecalcElementCounter; |
| 1378 | 1385 |
| 1379 ParserSynchronizationPolicy m_parserSyncPolicy; | 1386 ParserSynchronizationPolicy m_parserSyncPolicy; |
| 1380 | 1387 |
| 1381 OriginsUsingFeatures::Value m_originsUsingFeaturesValue; | 1388 OriginsUsingFeatures::Value m_originsUsingFeaturesValue; |
| 1382 | 1389 |
| 1383 ClientHintsPreferences m_clientHintsPreferences; | 1390 ClientHintsPreferences m_clientHintsPreferences; |
| 1384 | 1391 |
| 1385 PersistentWillBeMember<CanvasFontCache> m_canvasFontCache; | 1392 PersistentWillBeMember<CanvasFontCache> m_canvasFontCache; |
| 1393 | |
| 1394 unsigned m_nodeCount; | |
| 1386 }; | 1395 }; |
| 1387 | 1396 |
| 1388 extern template class CORE_EXTERN_TEMPLATE_EXPORT WillBeHeapSupplement<Document> ; | 1397 extern template class CORE_EXTERN_TEMPLATE_EXPORT WillBeHeapSupplement<Document> ; |
| 1389 | 1398 |
| 1390 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin) | 1399 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin) |
| 1391 { | 1400 { |
| 1392 // The different (legacy) meta tags have different priorities based on the t ype | 1401 // The different (legacy) meta tags have different priorities based on the t ype |
| 1393 // regardless of which order they appear in the DOM. The priority is given b y the | 1402 // regardless of which order they appear in the DOM. The priority is given b y the |
| 1394 // ViewportDescription::Type enum. | 1403 // ViewportDescription::Type enum. |
| 1395 return origin >= m_legacyViewportDescription.type; | 1404 return origin >= m_legacyViewportDescription.type; |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 1425 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1434 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
| 1426 | 1435 |
| 1427 } // namespace blink | 1436 } // namespace blink |
| 1428 | 1437 |
| 1429 #ifndef NDEBUG | 1438 #ifndef NDEBUG |
| 1430 // Outside the WebCore namespace for ease of invocation from gdb. | 1439 // Outside the WebCore namespace for ease of invocation from gdb. |
| 1431 CORE_EXPORT void showLiveDocumentInstances(); | 1440 CORE_EXPORT void showLiveDocumentInstances(); |
| 1432 #endif | 1441 #endif |
| 1433 | 1442 |
| 1434 #endif // Document_h | 1443 #endif // Document_h |
| OLD | NEW |