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

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

Issue 1188563005: Compute snap offsets (both repeat and element based) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 4 years, 9 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 class SVGUseElement; 151 class SVGUseElement;
152 class ScriptRunner; 152 class ScriptRunner;
153 class ScriptableDocumentParser; 153 class ScriptableDocumentParser;
154 class ScriptedAnimationController; 154 class ScriptedAnimationController;
155 class ScriptedIdleTaskController; 155 class ScriptedIdleTaskController;
156 class SecurityOrigin; 156 class SecurityOrigin;
157 class SegmentedString; 157 class SegmentedString;
158 class SelectorQueryCache; 158 class SelectorQueryCache;
159 class SerializedScriptValue; 159 class SerializedScriptValue;
160 class Settings; 160 class Settings;
161 class SnapCoordinator;
161 class StyleEngine; 162 class StyleEngine;
162 class StyleResolver; 163 class StyleResolver;
163 class StyleSheet; 164 class StyleSheet;
164 class StyleSheetList; 165 class StyleSheetList;
165 class Text; 166 class Text;
166 class TextAutosizer; 167 class TextAutosizer;
167 class Touch; 168 class Touch;
168 class TouchList; 169 class TouchList;
169 class TransformSource; 170 class TransformSource;
170 class TreeWalker; 171 class TreeWalker;
(...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after
1047 static bool threadedParsingEnabledForTesting(); 1048 static bool threadedParsingEnabledForTesting();
1048 1049
1049 void incrementNodeCount() { m_nodeCount++; } 1050 void incrementNodeCount() { m_nodeCount++; }
1050 void decrementNodeCount() 1051 void decrementNodeCount()
1051 { 1052 {
1052 ASSERT(m_nodeCount > 0); 1053 ASSERT(m_nodeCount > 0);
1053 m_nodeCount--; 1054 m_nodeCount--;
1054 } 1055 }
1055 int nodeCount() const { return m_nodeCount; } 1056 int nodeCount() const { return m_nodeCount; }
1056 1057
1058 SnapCoordinator* snapCoordinator();
1059
1057 using WeakDocumentSet = WillBeHeapHashSet<RawPtrWillBeWeakMember<Document>>; 1060 using WeakDocumentSet = WillBeHeapHashSet<RawPtrWillBeWeakMember<Document>>;
1058 static WeakDocumentSet& liveDocumentSet(); 1061 static WeakDocumentSet& liveDocumentSet();
1059 1062
1060 WebTaskRunner* loadingTaskRunner() const; 1063 WebTaskRunner* loadingTaskRunner() const;
1061 WebTaskRunner* timerTaskRunner() const; 1064 WebTaskRunner* timerTaskRunner() const;
1062 1065
1063 void enforceStrictMixedContentChecking(); 1066 void enforceStrictMixedContentChecking();
1064 1067
1065 protected: 1068 protected:
1066 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); 1069 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass);
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
1396 OriginsUsingFeatures::Value m_originsUsingFeaturesValue; 1399 OriginsUsingFeatures::Value m_originsUsingFeaturesValue;
1397 1400
1398 ClientHintsPreferences m_clientHintsPreferences; 1401 ClientHintsPreferences m_clientHintsPreferences;
1399 1402
1400 PersistentWillBeMember<CanvasFontCache> m_canvasFontCache; 1403 PersistentWillBeMember<CanvasFontCache> m_canvasFontCache;
1401 1404
1402 PersistentWillBeMember<IntersectionObserverController> m_intersectionObserve rController; 1405 PersistentWillBeMember<IntersectionObserverController> m_intersectionObserve rController;
1403 PersistentWillBeMember<NodeIntersectionObserverData> m_intersectionObserverD ata; 1406 PersistentWillBeMember<NodeIntersectionObserverData> m_intersectionObserverD ata;
1404 1407
1405 int m_nodeCount; 1408 int m_nodeCount;
1409
1410 OwnPtrWillBeMember<SnapCoordinator> m_snapCoordinator;
1406 }; 1411 };
1407 1412
1408 extern template class CORE_EXTERN_TEMPLATE_EXPORT WillBeHeapSupplement<Document> ; 1413 extern template class CORE_EXTERN_TEMPLATE_EXPORT WillBeHeapSupplement<Document> ;
1409 1414
1410 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin) 1415 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin)
1411 { 1416 {
1412 // The different (legacy) meta tags have different priorities based on the t ype 1417 // 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 1418 // regardless of which order they appear in the DOM. The priority is given b y the
1414 // ViewportDescription::Type enum. 1419 // ViewportDescription::Type enum.
1415 return origin >= m_legacyViewportDescription.type; 1420 return origin >= m_legacyViewportDescription.type;
(...skipping 29 matching lines...) Expand all
1445 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1450 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1446 1451
1447 } // namespace blink 1452 } // namespace blink
1448 1453
1449 #ifndef NDEBUG 1454 #ifndef NDEBUG
1450 // Outside the WebCore namespace for ease of invocation from gdb. 1455 // Outside the WebCore namespace for ease of invocation from gdb.
1451 CORE_EXPORT void showLiveDocumentInstances(); 1456 CORE_EXPORT void showLiveDocumentInstances();
1452 #endif 1457 #endif
1453 1458
1454 #endif // Document_h 1459 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698