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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/Document.h
diff --git a/third_party/WebKit/Source/core/dom/Document.h b/third_party/WebKit/Source/core/dom/Document.h
index 6037f0f6e73858ea0c847883a06d8fb35e67f5a5..35785b11490d4974441c0e136616d7dc0fd8b4b8 100644
--- a/third_party/WebKit/Source/core/dom/Document.h
+++ b/third_party/WebKit/Source/core/dom/Document.h
@@ -122,6 +122,7 @@ class IdleRequestOptions;
class InputDeviceCapabilities;
class IntersectionObserverController;
class LayoutPoint;
+class LayoutView;
class LayoutViewItem;
class LiveNodeListBase;
class LocalDOMWindow;
@@ -141,8 +142,8 @@ class PlatformMouseEvent;
class ProcessingInstruction;
class QualifiedName;
class Range;
-class LayoutView;
class ResourceFetcher;
+class RootScroller;
class SVGDocumentExtensions;
class SVGUseElement;
class ScriptRunner;
@@ -1081,8 +1082,9 @@ public:
bool containsV1ShadowTree() const { return m_shadowCascadeOrder == ShadowCascadeOrder::ShadowCascadeV1; }
+ Element* rootScroller() const;
void setRootScroller(Element*, ExceptionState&);
- Element* rootScroller();
+ bool isEffectiveRootScroller(const Element&) const;
bool isInMainFrame() const;
@@ -1238,6 +1240,7 @@ private:
Member<Element> m_activeHoverElement;
Member<Element> m_documentElement;
UserActionElementSet m_userActionElements;
+ Member<RootScroller> m_rootScroller;
uint64_t m_domTreeVersion;
static uint64_t s_globalTreeVersion;

Powered by Google App Engine
This is Rietveld 408576698