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

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: Use client and scroll size to handle overlay scrollbars Created 4 years, 7 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 class SVGUseElement; 152 class SVGUseElement;
153 class ScriptRunner; 153 class ScriptRunner;
154 class ScriptableDocumentParser; 154 class ScriptableDocumentParser;
155 class ScriptedAnimationController; 155 class ScriptedAnimationController;
156 class ScriptedIdleTaskController; 156 class ScriptedIdleTaskController;
157 class SecurityOrigin; 157 class SecurityOrigin;
158 class SegmentedString; 158 class SegmentedString;
159 class SelectorQueryCache; 159 class SelectorQueryCache;
160 class SerializedScriptValue; 160 class SerializedScriptValue;
161 class Settings; 161 class Settings;
162 class SnapCoordinator;
162 class StyleEngine; 163 class StyleEngine;
163 class StyleResolver; 164 class StyleResolver;
164 class StyleSheet; 165 class StyleSheet;
165 class StyleSheetList; 166 class StyleSheetList;
166 class Text; 167 class Text;
167 class TextAutosizer; 168 class TextAutosizer;
168 class Touch; 169 class Touch;
169 class TouchList; 170 class TouchList;
170 class TransformSource; 171 class TransformSource;
171 class TreeWalker; 172 class TreeWalker;
(...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after
1045 static bool threadedParsingEnabledForTesting(); 1046 static bool threadedParsingEnabledForTesting();
1046 1047
1047 void incrementNodeCount() { m_nodeCount++; } 1048 void incrementNodeCount() { m_nodeCount++; }
1048 void decrementNodeCount() 1049 void decrementNodeCount()
1049 { 1050 {
1050 DCHECK_GT(m_nodeCount, 0); 1051 DCHECK_GT(m_nodeCount, 0);
1051 m_nodeCount--; 1052 m_nodeCount--;
1052 } 1053 }
1053 int nodeCount() const { return m_nodeCount; } 1054 int nodeCount() const { return m_nodeCount; }
1054 1055
1056 SnapCoordinator* snapCoordinator();
1057
1055 using WeakDocumentSet = HeapHashSet<WeakMember<Document>>; 1058 using WeakDocumentSet = HeapHashSet<WeakMember<Document>>;
1056 static WeakDocumentSet& liveDocumentSet(); 1059 static WeakDocumentSet& liveDocumentSet();
1057 1060
1058 WebTaskRunner* loadingTaskRunner() const; 1061 WebTaskRunner* loadingTaskRunner() const;
1059 WebTaskRunner* timerTaskRunner() const; 1062 WebTaskRunner* timerTaskRunner() const;
1060 1063
1061 void enforceStrictMixedContentChecking(); 1064 void enforceStrictMixedContentChecking();
1062 1065
1063 bool mayContainV0Shadow() const { return m_mayContainV0Shadow; } 1066 bool mayContainV0Shadow() const { return m_mayContainV0Shadow; }
1064 1067
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
1384 ClientHintsPreferences m_clientHintsPreferences; 1387 ClientHintsPreferences m_clientHintsPreferences;
1385 1388
1386 Member<CanvasFontCache> m_canvasFontCache; 1389 Member<CanvasFontCache> m_canvasFontCache;
1387 1390
1388 Member<IntersectionObserverController> m_intersectionObserverController; 1391 Member<IntersectionObserverController> m_intersectionObserverController;
1389 Member<NodeIntersectionObserverData> m_intersectionObserverData; 1392 Member<NodeIntersectionObserverData> m_intersectionObserverData;
1390 1393
1391 int m_nodeCount; 1394 int m_nodeCount;
1392 1395
1393 bool m_mayContainV0Shadow = false; 1396 bool m_mayContainV0Shadow = false;
1397
1398 Member<SnapCoordinator> m_snapCoordinator;
1394 }; 1399 };
1395 1400
1396 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>; 1401 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>;
1397 1402
1398 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin) 1403 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin)
1399 { 1404 {
1400 // The different (legacy) meta tags have different priorities based on the t ype 1405 // The different (legacy) meta tags have different priorities based on the t ype
1401 // regardless of which order they appear in the DOM. The priority is given b y the 1406 // regardless of which order they appear in the DOM. The priority is given b y the
1402 // ViewportDescription::Type enum. 1407 // ViewportDescription::Type enum.
1403 return origin >= m_legacyViewportDescription.type; 1408 return origin >= m_legacyViewportDescription.type;
(...skipping 29 matching lines...) Expand all
1433 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1438 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1434 1439
1435 } // namespace blink 1440 } // namespace blink
1436 1441
1437 #ifndef NDEBUG 1442 #ifndef NDEBUG
1438 // Outside the WebCore namespace for ease of invocation from gdb. 1443 // Outside the WebCore namespace for ease of invocation from gdb.
1439 CORE_EXPORT void showLiveDocumentInstances(); 1444 CORE_EXPORT void showLiveDocumentInstances();
1440 #endif 1445 #endif
1441 1446
1442 #endif // Document_h 1447 #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