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

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

Issue 1248643004: Test distillability without JavaScript (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@early
Patch Set: fix oopsies Created 5 years, 2 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 21 matching lines...) Expand all
32 #include "bindings/core/v8/ScriptValue.h" 32 #include "bindings/core/v8/ScriptValue.h"
33 #include "core/CoreExport.h" 33 #include "core/CoreExport.h"
34 #include "core/animation/AnimationClock.h" 34 #include "core/animation/AnimationClock.h"
35 #include "core/animation/CompositorPendingAnimations.h" 35 #include "core/animation/CompositorPendingAnimations.h"
36 #include "core/dom/ContainerNode.h" 36 #include "core/dom/ContainerNode.h"
37 #include "core/dom/DocumentEncodingData.h" 37 #include "core/dom/DocumentEncodingData.h"
38 #include "core/dom/DocumentInit.h" 38 #include "core/dom/DocumentInit.h"
39 #include "core/dom/DocumentLifecycle.h" 39 #include "core/dom/DocumentLifecycle.h"
40 #include "core/dom/DocumentLifecycleNotifier.h" 40 #include "core/dom/DocumentLifecycleNotifier.h"
41 #include "core/dom/DocumentLifecycleObserver.h" 41 #include "core/dom/DocumentLifecycleObserver.h"
42 #include "core/dom/DocumentStatisticsCollector.h"
42 #include "core/dom/DocumentTiming.h" 43 #include "core/dom/DocumentTiming.h"
43 #include "core/dom/ExecutionContext.h" 44 #include "core/dom/ExecutionContext.h"
44 #include "core/dom/MutationObserver.h" 45 #include "core/dom/MutationObserver.h"
45 #include "core/dom/TextLinkColors.h" 46 #include "core/dom/TextLinkColors.h"
46 #include "core/dom/TreeScope.h" 47 #include "core/dom/TreeScope.h"
47 #include "core/dom/UserActionElementSet.h" 48 #include "core/dom/UserActionElementSet.h"
48 #include "core/dom/ViewportDescription.h" 49 #include "core/dom/ViewportDescription.h"
49 #include "core/dom/custom/CustomElement.h" 50 #include "core/dom/custom/CustomElement.h"
50 #include "core/fetch/ClientHintsPreferences.h" 51 #include "core/fetch/ClientHintsPreferences.h"
51 #include "core/frame/DOMTimerCoordinator.h" 52 #include "core/frame/DOMTimerCoordinator.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 class TextAutosizer; 164 class TextAutosizer;
164 class Touch; 165 class Touch;
165 class TouchList; 166 class TouchList;
166 class TransformSource; 167 class TransformSource;
167 class TreeWalker; 168 class TreeWalker;
168 class VisitedLinkState; 169 class VisitedLinkState;
169 class WebGLRenderingContext; 170 class WebGLRenderingContext;
170 171
171 struct AnnotatedRegionValue; 172 struct AnnotatedRegionValue;
172 struct IconURL; 173 struct IconURL;
174 struct WebDistillabilityFeatures;
173 175
174 using MouseEventWithHitTestResults = EventWithHitTestResults<PlatformMouseEvent> ; 176 using MouseEventWithHitTestResults = EventWithHitTestResults<PlatformMouseEvent> ;
175 using ExceptionCode = int; 177 using ExceptionCode = int;
176 178
177 enum StyleResolverUpdateMode { 179 enum StyleResolverUpdateMode {
178 // Discards the StyleResolver and rebuilds it. 180 // Discards the StyleResolver and rebuilds it.
179 FullStyleUpdate, 181 FullStyleUpdate,
180 // Attempts to use StyleInvalidationAnalysis to avoid discarding the entire StyleResolver. 182 // Attempts to use StyleInvalidationAnalysis to avoid discarding the entire StyleResolver.
181 AnalyzedStyleUpdate 183 AnalyzedStyleUpdate
182 }; 184 };
(...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after
1045 ASSERT(m_nodeCount > 0); 1047 ASSERT(m_nodeCount > 0);
1046 m_nodeCount--; 1048 m_nodeCount--;
1047 } 1049 }
1048 int nodeCount() const { return m_nodeCount; } 1050 int nodeCount() const { return m_nodeCount; }
1049 1051
1050 using WeakDocumentSet = WillBeHeapHashSet<RawPtrWillBeWeakMember<Document>>; 1052 using WeakDocumentSet = WillBeHeapHashSet<RawPtrWillBeWeakMember<Document>>;
1051 static WeakDocumentSet& liveDocumentSet(); 1053 static WeakDocumentSet& liveDocumentSet();
1052 1054
1053 WebTaskRunner* loadingTaskRunner() const; 1055 WebTaskRunner* loadingTaskRunner() const;
1054 1056
1057 WebDistillabilityFeatures distillabilityFeatures();
dglazkov 2015/10/22 16:30:31 There's no need for this to be a Document member.
wychen 2015/10/23 02:51:30 Done.
1058
1055 protected: 1059 protected:
1056 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); 1060 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass);
1057 1061
1058 void didUpdateSecurityOrigin() final; 1062 void didUpdateSecurityOrigin() final;
1059 1063
1060 void clearXMLVersion() { m_xmlVersion = String(); } 1064 void clearXMLVersion() { m_xmlVersion = String(); }
1061 1065
1062 #if !ENABLE(OILPAN) 1066 #if !ENABLE(OILPAN)
1063 void dispose() override; 1067 void dispose() override;
1064 #endif 1068 #endif
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
1388 int m_styleRecalcElementCounter; 1392 int m_styleRecalcElementCounter;
1389 1393
1390 ParserSynchronizationPolicy m_parserSyncPolicy; 1394 ParserSynchronizationPolicy m_parserSyncPolicy;
1391 1395
1392 OriginsUsingFeatures::Value m_originsUsingFeaturesValue; 1396 OriginsUsingFeatures::Value m_originsUsingFeaturesValue;
1393 1397
1394 ClientHintsPreferences m_clientHintsPreferences; 1398 ClientHintsPreferences m_clientHintsPreferences;
1395 1399
1396 PersistentWillBeMember<CanvasFontCache> m_canvasFontCache; 1400 PersistentWillBeMember<CanvasFontCache> m_canvasFontCache;
1397 1401
1402 DocumentStatisticsCollector m_statisticsCollector;
dglazkov 2015/10/22 16:30:31 Does not need to be a member.
wychen 2015/10/23 02:51:30 Done.
1403
1398 int m_nodeCount; 1404 int m_nodeCount;
1399 }; 1405 };
1400 1406
1401 extern template class CORE_EXTERN_TEMPLATE_EXPORT WillBeHeapSupplement<Document> ; 1407 extern template class CORE_EXTERN_TEMPLATE_EXPORT WillBeHeapSupplement<Document> ;
1402 1408
1403 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin) 1409 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin)
1404 { 1410 {
1405 // 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
1406 // 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
1407 // ViewportDescription::Type enum. 1413 // ViewportDescription::Type enum.
(...skipping 30 matching lines...) Expand all
1438 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1444 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1439 1445
1440 } // namespace blink 1446 } // namespace blink
1441 1447
1442 #ifndef NDEBUG 1448 #ifndef NDEBUG
1443 // Outside the WebCore namespace for ease of invocation from gdb. 1449 // Outside the WebCore namespace for ease of invocation from gdb.
1444 CORE_EXPORT void showLiveDocumentInstances(); 1450 CORE_EXPORT void showLiveDocumentInstances();
1445 #endif 1451 #endif
1446 1452
1447 #endif // Document_h 1453 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698