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

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

Issue 2128553002: Make rootScroller the layout viewport. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@viewportScrollCallbackInterface
Patch Set: Rebase + comment fix in test Created 4 years, 5 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 class StyleEngine; 160 class StyleEngine;
161 class StyleResolver; 161 class StyleResolver;
162 class StyleSheet; 162 class StyleSheet;
163 class StyleSheetList; 163 class StyleSheetList;
164 class Text; 164 class Text;
165 class TextAutosizer; 165 class TextAutosizer;
166 class Touch; 166 class Touch;
167 class TouchList; 167 class TouchList;
168 class TransformSource; 168 class TransformSource;
169 class TreeWalker; 169 class TreeWalker;
170 class ViewportScrollCallback;
170 class VisitedLinkState; 171 class VisitedLinkState;
171 class VisualViewport; 172 class VisualViewport;
172 class WebGLRenderingContext; 173 class WebGLRenderingContext;
173 enum class SelectionBehaviorOnFocus; 174 enum class SelectionBehaviorOnFocus;
174 struct AnnotatedRegionValue; 175 struct AnnotatedRegionValue;
175 struct FocusParams; 176 struct FocusParams;
176 struct IconURL; 177 struct IconURL;
177 178
178 using MouseEventWithHitTestResults = EventWithHitTestResults<PlatformMouseEvent> ; 179 using MouseEventWithHitTestResults = EventWithHitTestResults<PlatformMouseEvent> ;
179 using ExceptionCode = int; 180 using ExceptionCode = int;
(...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after
1076 1077
1077 void enforceInsecureRequestPolicy(WebInsecureRequestPolicy); 1078 void enforceInsecureRequestPolicy(WebInsecureRequestPolicy);
1078 1079
1079 bool mayContainV0Shadow() const { return m_mayContainV0Shadow; } 1080 bool mayContainV0Shadow() const { return m_mayContainV0Shadow; }
1080 1081
1081 ShadowCascadeOrder shadowCascadeOrder() const { return m_shadowCascadeOrder; } 1082 ShadowCascadeOrder shadowCascadeOrder() const { return m_shadowCascadeOrder; }
1082 void setShadowCascadeOrder(ShadowCascadeOrder); 1083 void setShadowCascadeOrder(ShadowCascadeOrder);
1083 1084
1084 bool containsV1ShadowTree() const { return m_shadowCascadeOrder == ShadowCas cadeOrder::ShadowCascadeV1; } 1085 bool containsV1ShadowTree() const { return m_shadowCascadeOrder == ShadowCas cadeOrder::ShadowCascadeV1; }
1085 1086
1087 void initializeRootScroller(ViewportScrollCallback*);
1086 Element* rootScroller() const; 1088 Element* rootScroller() const;
1087 void setRootScroller(Element*, ExceptionState&); 1089 void setRootScroller(Element*, ExceptionState&);
1088 const Element* effectiveRootScroller() const; 1090 const Element* effectiveRootScroller() const;
1089 1091
1090 // TODO(bokan): Temporarily added to allow ScrollCustomization to properly 1092 // TODO(bokan): Temporarily added to allow ScrollCustomization to properly
1091 // opt out for wheel scrolls. crbug.com/623079. 1093 // opt out for wheel scrolls. crbug.com/623079.
1092 bool isViewportScrollCallback(const ScrollStateCallback*); 1094 bool isViewportScrollCallback(const ScrollStateCallback*);
1093 1095
1094 bool isInMainFrame() const; 1096 bool isInMainFrame() const;
1095 1097
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
1459 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1461 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1460 1462
1461 } // namespace blink 1463 } // namespace blink
1462 1464
1463 #ifndef NDEBUG 1465 #ifndef NDEBUG
1464 // Outside the WebCore namespace for ease of invocation from gdb. 1466 // Outside the WebCore namespace for ease of invocation from gdb.
1465 CORE_EXPORT void showLiveDocumentInstances(); 1467 CORE_EXPORT void showLiveDocumentInstances();
1466 #endif 1468 #endif
1467 1469
1468 #endif // Document_h 1470 #endif // Document_h
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/scrolling/set-root-scroller.html ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698