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: Sigh...fix test expectation again, fix crash when there's no renderer Created 4 years, 6 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 class HTMLImportLoader; 115 class HTMLImportLoader;
116 class HTMLImportsController; 116 class HTMLImportsController;
117 class HTMLLinkElement; 117 class HTMLLinkElement;
118 class HTMLScriptElementOrSVGScriptElement; 118 class HTMLScriptElementOrSVGScriptElement;
119 class HitTestRequest; 119 class HitTestRequest;
120 class IdleRequestCallback; 120 class IdleRequestCallback;
121 class IdleRequestOptions; 121 class IdleRequestOptions;
122 class InputDeviceCapabilities; 122 class InputDeviceCapabilities;
123 class IntersectionObserverController; 123 class IntersectionObserverController;
124 class LayoutPoint; 124 class LayoutPoint;
125 class LayoutView;
125 class LayoutViewItem; 126 class LayoutViewItem;
126 class LiveNodeListBase; 127 class LiveNodeListBase;
127 class LocalDOMWindow; 128 class LocalDOMWindow;
128 class Locale; 129 class Locale;
129 class LocalFrame; 130 class LocalFrame;
130 class Location; 131 class Location;
131 class MainThreadTaskRunner; 132 class MainThreadTaskRunner;
132 class MediaQueryListListener; 133 class MediaQueryListListener;
133 class MediaQueryMatcher; 134 class MediaQueryMatcher;
134 class NodeFilter; 135 class NodeFilter;
135 class NodeIntersectionObserverData; 136 class NodeIntersectionObserverData;
136 class NodeIterator; 137 class NodeIterator;
137 class NthIndexCache; 138 class NthIndexCache;
138 class OriginAccessEntry; 139 class OriginAccessEntry;
139 class Page; 140 class Page;
140 class PlatformMouseEvent; 141 class PlatformMouseEvent;
141 class ProcessingInstruction; 142 class ProcessingInstruction;
142 class QualifiedName; 143 class QualifiedName;
143 class Range; 144 class Range;
144 class LayoutView;
145 class ResourceFetcher; 145 class ResourceFetcher;
146 class RootScroller;
146 class SVGDocumentExtensions; 147 class SVGDocumentExtensions;
147 class SVGUseElement; 148 class SVGUseElement;
148 class ScriptRunner; 149 class ScriptRunner;
149 class ScriptableDocumentParser; 150 class ScriptableDocumentParser;
150 class ScriptedAnimationController; 151 class ScriptedAnimationController;
151 class ScriptedIdleTaskController; 152 class ScriptedIdleTaskController;
152 class SecurityOrigin; 153 class SecurityOrigin;
153 class SegmentedString; 154 class SegmentedString;
154 class SelectorQueryCache; 155 class SelectorQueryCache;
155 class SerializedScriptValue; 156 class SerializedScriptValue;
(...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 1075
1075 void enforceStrictMixedContentChecking(); 1076 void enforceStrictMixedContentChecking();
1076 1077
1077 bool mayContainV0Shadow() const { return m_mayContainV0Shadow; } 1078 bool mayContainV0Shadow() const { return m_mayContainV0Shadow; }
1078 1079
1079 ShadowCascadeOrder shadowCascadeOrder() const { return m_shadowCascadeOrder; } 1080 ShadowCascadeOrder shadowCascadeOrder() const { return m_shadowCascadeOrder; }
1080 void setShadowCascadeOrder(ShadowCascadeOrder); 1081 void setShadowCascadeOrder(ShadowCascadeOrder);
1081 1082
1082 bool containsV1ShadowTree() const { return m_shadowCascadeOrder == ShadowCas cadeOrder::ShadowCascadeV1; } 1083 bool containsV1ShadowTree() const { return m_shadowCascadeOrder == ShadowCas cadeOrder::ShadowCascadeV1; }
1083 1084
1085 Element* rootScroller() const;
1084 void setRootScroller(Element*, ExceptionState&); 1086 void setRootScroller(Element*, ExceptionState&);
1085 Element* rootScroller(); 1087 bool isEffectiveRootScroller(const Element&) const;
1086 1088
1087 bool isInMainFrame() const; 1089 bool isInMainFrame() const;
1088 1090
1089 protected: 1091 protected:
1090 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); 1092 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass);
1091 1093
1092 void didUpdateSecurityOrigin() final; 1094 void didUpdateSecurityOrigin() final;
1093 1095
1094 void clearXMLVersion() { m_xmlVersion = String(); } 1096 void clearXMLVersion() { m_xmlVersion = String(); }
1095 1097
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
1231 1233
1232 bool m_hasAutofocused; 1234 bool m_hasAutofocused;
1233 Timer<Document> m_clearFocusedElementTimer; 1235 Timer<Document> m_clearFocusedElementTimer;
1234 Member<Element> m_autofocusElement; 1236 Member<Element> m_autofocusElement;
1235 Member<Element> m_focusedElement; 1237 Member<Element> m_focusedElement;
1236 Member<Range> m_sequentialFocusNavigationStartingPoint; 1238 Member<Range> m_sequentialFocusNavigationStartingPoint;
1237 Member<Node> m_hoverNode; 1239 Member<Node> m_hoverNode;
1238 Member<Element> m_activeHoverElement; 1240 Member<Element> m_activeHoverElement;
1239 Member<Element> m_documentElement; 1241 Member<Element> m_documentElement;
1240 UserActionElementSet m_userActionElements; 1242 UserActionElementSet m_userActionElements;
1243 Member<RootScroller> m_rootScroller;
1241 1244
1242 uint64_t m_domTreeVersion; 1245 uint64_t m_domTreeVersion;
1243 static uint64_t s_globalTreeVersion; 1246 static uint64_t s_globalTreeVersion;
1244 1247
1245 uint64_t m_styleVersion; 1248 uint64_t m_styleVersion;
1246 1249
1247 HeapHashSet<WeakMember<NodeIterator>> m_nodeIterators; 1250 HeapHashSet<WeakMember<NodeIterator>> m_nodeIterators;
1248 using AttachedRangeSet = HeapHashSet<WeakMember<Range>>; 1251 using AttachedRangeSet = HeapHashSet<WeakMember<Range>>;
1249 AttachedRangeSet m_ranges; 1252 AttachedRangeSet m_ranges;
1250 1253
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
1451 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1454 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1452 1455
1453 } // namespace blink 1456 } // namespace blink
1454 1457
1455 #ifndef NDEBUG 1458 #ifndef NDEBUG
1456 // Outside the WebCore namespace for ease of invocation from gdb. 1459 // Outside the WebCore namespace for ease of invocation from gdb.
1457 CORE_EXPORT void showLiveDocumentInstances(); 1460 CORE_EXPORT void showLiveDocumentInstances();
1458 #endif 1461 #endif
1459 1462
1460 #endif // Document_h 1463 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698