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 1970763002: Fixed up root scroller API to be more webby (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 class HTMLImportLoader; 119 class HTMLImportLoader;
120 class HTMLImportsController; 120 class HTMLImportsController;
121 class HTMLLinkElement; 121 class HTMLLinkElement;
122 class HTMLScriptElementOrSVGScriptElement; 122 class HTMLScriptElementOrSVGScriptElement;
123 class HitTestRequest; 123 class HitTestRequest;
124 class IdleRequestCallback; 124 class IdleRequestCallback;
125 class IdleRequestOptions; 125 class IdleRequestOptions;
126 class InputDeviceCapabilities; 126 class InputDeviceCapabilities;
127 class IntersectionObserverController; 127 class IntersectionObserverController;
128 class LayoutPoint; 128 class LayoutPoint;
129 class LayoutView;
129 class LayoutViewItem; 130 class LayoutViewItem;
130 class LiveNodeListBase; 131 class LiveNodeListBase;
131 class Locale; 132 class Locale;
132 class LocalFrame; 133 class LocalFrame;
133 class Location; 134 class Location;
134 class MainThreadTaskRunner; 135 class MainThreadTaskRunner;
135 class MediaQueryListListener; 136 class MediaQueryListListener;
136 class MediaQueryMatcher; 137 class MediaQueryMatcher;
137 class NodeFilter; 138 class NodeFilter;
138 class NodeIntersectionObserverData; 139 class NodeIntersectionObserverData;
139 class NodeIterator; 140 class NodeIterator;
140 class NthIndexCache; 141 class NthIndexCache;
141 class OriginAccessEntry; 142 class OriginAccessEntry;
142 class Page; 143 class Page;
143 class PlatformMouseEvent; 144 class PlatformMouseEvent;
144 class ProcessingInstruction; 145 class ProcessingInstruction;
145 class QualifiedName; 146 class QualifiedName;
146 class Range; 147 class Range;
147 class LayoutView;
148 class ResourceFetcher; 148 class ResourceFetcher;
149 class RootScroller;
149 class SVGDocumentExtensions; 150 class SVGDocumentExtensions;
150 class SVGUseElement; 151 class SVGUseElement;
151 class ScriptRunner; 152 class ScriptRunner;
152 class ScriptableDocumentParser; 153 class ScriptableDocumentParser;
153 class ScriptedAnimationController; 154 class ScriptedAnimationController;
154 class ScriptedIdleTaskController; 155 class ScriptedIdleTaskController;
155 class SecurityOrigin; 156 class SecurityOrigin;
156 class SegmentedString; 157 class SegmentedString;
157 class SelectorQueryCache; 158 class SelectorQueryCache;
158 class SerializedScriptValue; 159 class SerializedScriptValue;
(...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after
1057 WebTaskRunner* loadingTaskRunner() const; 1058 WebTaskRunner* loadingTaskRunner() const;
1058 WebTaskRunner* timerTaskRunner() const; 1059 WebTaskRunner* timerTaskRunner() const;
1059 1060
1060 void enforceStrictMixedContentChecking(); 1061 void enforceStrictMixedContentChecking();
1061 1062
1062 bool mayContainV0Shadow() const { return m_mayContainV0Shadow; } 1063 bool mayContainV0Shadow() const { return m_mayContainV0Shadow; }
1063 1064
1064 ShadowCascadeOrder shadowCascadeOrder() const { return m_shadowCascadeOrder; } 1065 ShadowCascadeOrder shadowCascadeOrder() const { return m_shadowCascadeOrder; }
1065 void setShadowCascadeOrder(ShadowCascadeOrder); 1066 void setShadowCascadeOrder(ShadowCascadeOrder);
1066 1067
1068 Element* rootScroller() const;
1067 void setRootScroller(Element*, ExceptionState&); 1069 void setRootScroller(Element*, ExceptionState&);
1068 Element* rootScroller(); 1070 bool isEffectiveRootScroller(const Element*) const;
1069 1071
1070 bool isInMainFrame() const; 1072 bool isInMainFrame() const;
1071 1073
1072 protected: 1074 protected:
1073 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); 1075 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass);
1074 1076
1075 void didUpdateSecurityOrigin() final; 1077 void didUpdateSecurityOrigin() final;
1076 1078
1077 void clearXMLVersion() { m_xmlVersion = String(); } 1079 void clearXMLVersion() { m_xmlVersion = String(); }
1078 1080
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
1213 1215
1214 bool m_hasAutofocused; 1216 bool m_hasAutofocused;
1215 Timer<Document> m_clearFocusedElementTimer; 1217 Timer<Document> m_clearFocusedElementTimer;
1216 Member<Element> m_autofocusElement; 1218 Member<Element> m_autofocusElement;
1217 Member<Element> m_focusedElement; 1219 Member<Element> m_focusedElement;
1218 Member<Range> m_sequentialFocusNavigationStartingPoint; 1220 Member<Range> m_sequentialFocusNavigationStartingPoint;
1219 Member<Node> m_hoverNode; 1221 Member<Node> m_hoverNode;
1220 Member<Element> m_activeHoverElement; 1222 Member<Element> m_activeHoverElement;
1221 Member<Element> m_documentElement; 1223 Member<Element> m_documentElement;
1222 UserActionElementSet m_userActionElements; 1224 UserActionElementSet m_userActionElements;
1225 Member<RootScroller> m_rootScroller;
1223 1226
1224 uint64_t m_domTreeVersion; 1227 uint64_t m_domTreeVersion;
1225 static uint64_t s_globalTreeVersion; 1228 static uint64_t s_globalTreeVersion;
1226 1229
1227 uint64_t m_styleVersion; 1230 uint64_t m_styleVersion;
1228 1231
1229 HeapHashSet<WeakMember<NodeIterator>> m_nodeIterators; 1232 HeapHashSet<WeakMember<NodeIterator>> m_nodeIterators;
1230 using AttachedRangeSet = HeapHashSet<WeakMember<Range>>; 1233 using AttachedRangeSet = HeapHashSet<WeakMember<Range>>;
1231 AttachedRangeSet m_ranges; 1234 AttachedRangeSet m_ranges;
1232 1235
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
1431 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1434 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1432 1435
1433 } // namespace blink 1436 } // namespace blink
1434 1437
1435 #ifndef NDEBUG 1438 #ifndef NDEBUG
1436 // Outside the WebCore namespace for ease of invocation from gdb. 1439 // Outside the WebCore namespace for ease of invocation from gdb.
1437 CORE_EXPORT void showLiveDocumentInstances(); 1440 CORE_EXPORT void showLiveDocumentInstances();
1438 #endif 1441 #endif
1439 1442
1440 #endif // Document_h 1443 #endif // Document_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | third_party/WebKit/Source/core/dom/Document.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698