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

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

Issue 1949843004: Revert of Compute snap offsets (both repeat and element based) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: manual revert 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 class SVGUseElement; 153 class SVGUseElement;
154 class ScriptRunner; 154 class ScriptRunner;
155 class ScriptableDocumentParser; 155 class ScriptableDocumentParser;
156 class ScriptedAnimationController; 156 class ScriptedAnimationController;
157 class ScriptedIdleTaskController; 157 class ScriptedIdleTaskController;
158 class SecurityOrigin; 158 class SecurityOrigin;
159 class SegmentedString; 159 class SegmentedString;
160 class SelectorQueryCache; 160 class SelectorQueryCache;
161 class SerializedScriptValue; 161 class SerializedScriptValue;
162 class Settings; 162 class Settings;
163 class SnapCoordinator;
164 class StyleEngine; 163 class StyleEngine;
165 class StyleResolver; 164 class StyleResolver;
166 class StyleSheet; 165 class StyleSheet;
167 class StyleSheetList; 166 class StyleSheetList;
168 class Text; 167 class Text;
169 class TextAutosizer; 168 class TextAutosizer;
170 class Touch; 169 class Touch;
171 class TouchList; 170 class TouchList;
172 class TransformSource; 171 class TransformSource;
173 class TreeWalker; 172 class TreeWalker;
(...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after
1049 static bool threadedParsingEnabledForTesting(); 1048 static bool threadedParsingEnabledForTesting();
1050 1049
1051 void incrementNodeCount() { m_nodeCount++; } 1050 void incrementNodeCount() { m_nodeCount++; }
1052 void decrementNodeCount() 1051 void decrementNodeCount()
1053 { 1052 {
1054 DCHECK_GT(m_nodeCount, 0); 1053 DCHECK_GT(m_nodeCount, 0);
1055 m_nodeCount--; 1054 m_nodeCount--;
1056 } 1055 }
1057 int nodeCount() const { return m_nodeCount; } 1056 int nodeCount() const { return m_nodeCount; }
1058 1057
1059 SnapCoordinator* snapCoordinator();
1060
1061 using WeakDocumentSet = HeapHashSet<WeakMember<Document>>; 1058 using WeakDocumentSet = HeapHashSet<WeakMember<Document>>;
1062 static WeakDocumentSet& liveDocumentSet(); 1059 static WeakDocumentSet& liveDocumentSet();
1063 1060
1064 WebTaskRunner* loadingTaskRunner() const; 1061 WebTaskRunner* loadingTaskRunner() const;
1065 WebTaskRunner* timerTaskRunner() const; 1062 WebTaskRunner* timerTaskRunner() const;
1066 1063
1067 void enforceStrictMixedContentChecking(); 1064 void enforceStrictMixedContentChecking();
1068 1065
1069 bool mayContainV0Shadow() const { return m_mayContainV0Shadow; } 1066 bool mayContainV0Shadow() const { return m_mayContainV0Shadow; }
1070 1067
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
1390 ClientHintsPreferences m_clientHintsPreferences; 1387 ClientHintsPreferences m_clientHintsPreferences;
1391 1388
1392 Member<CanvasFontCache> m_canvasFontCache; 1389 Member<CanvasFontCache> m_canvasFontCache;
1393 1390
1394 Member<IntersectionObserverController> m_intersectionObserverController; 1391 Member<IntersectionObserverController> m_intersectionObserverController;
1395 Member<NodeIntersectionObserverData> m_intersectionObserverData; 1392 Member<NodeIntersectionObserverData> m_intersectionObserverData;
1396 1393
1397 int m_nodeCount; 1394 int m_nodeCount;
1398 1395
1399 bool m_mayContainV0Shadow = false; 1396 bool m_mayContainV0Shadow = false;
1400
1401 Member<SnapCoordinator> m_snapCoordinator;
1402 }; 1397 };
1403 1398
1404 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>; 1399 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>;
1405 1400
1406 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin) 1401 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin)
1407 { 1402 {
1408 // The different (legacy) meta tags have different priorities based on the t ype 1403 // The different (legacy) meta tags have different priorities based on the t ype
1409 // regardless of which order they appear in the DOM. The priority is given b y the 1404 // regardless of which order they appear in the DOM. The priority is given b y the
1410 // ViewportDescription::Type enum. 1405 // ViewportDescription::Type enum.
1411 return origin >= m_legacyViewportDescription.type; 1406 return origin >= m_legacyViewportDescription.type;
(...skipping 29 matching lines...) Expand all
1441 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1436 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1442 1437
1443 } // namespace blink 1438 } // namespace blink
1444 1439
1445 #ifndef NDEBUG 1440 #ifndef NDEBUG
1446 // Outside the WebCore namespace for ease of invocation from gdb. 1441 // Outside the WebCore namespace for ease of invocation from gdb.
1447 CORE_EXPORT void showLiveDocumentInstances(); 1442 CORE_EXPORT void showLiveDocumentInstances();
1448 #endif 1443 #endif
1449 1444
1450 #endif // Document_h 1445 #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