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

Side by Side Diff: Source/core/rendering/RenderLayerScrollableArea.h

Issue 235903003: Remove FrameView::containsScrollableArea (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/page/EventHandler.cpp ('k') | Source/core/rendering/RenderLayerScrollableArea.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
5 * 5 *
6 * Other contributors: 6 * Other contributors:
7 * Robert O'Callahan <roc+@cs.cmu.edu> 7 * Robert O'Callahan <roc+@cs.cmu.edu>
8 * David Baron <dbaron@fas.harvard.edu> 8 * David Baron <dbaron@fas.harvard.edu>
9 * Christian Biesinger <cbiesinger@web.de> 9 * Christian Biesinger <cbiesinger@web.de>
10 * Randall Jesup <rjesup@wgate.com> 10 * Randall Jesup <rjesup@wgate.com>
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 bool isPointInResizeControl(const IntPoint& absolutePoint, ResizerHitTestTyp e) const; 164 bool isPointInResizeControl(const IntPoint& absolutePoint, ResizerHitTestTyp e) const;
165 bool hitTestOverflowControls(HitTestResult&, const IntPoint& localPoint); 165 bool hitTestOverflowControls(HitTestResult&, const IntPoint& localPoint);
166 166
167 bool hitTestResizerInFragments(const LayerFragments&, const HitTestLocation& ) const; 167 bool hitTestResizerInFragments(const LayerFragments&, const HitTestLocation& ) const;
168 168
169 LayoutRect exposeRect(const LayoutRect&, const ScrollAlignment& alignX, cons t ScrollAlignment& alignY); 169 LayoutRect exposeRect(const LayoutRect&, const ScrollAlignment& alignX, cons t ScrollAlignment& alignY);
170 170
171 // Returns true our scrollable area is in the FrameView's collection of scro llable areas. This can 171 // Returns true our scrollable area is in the FrameView's collection of scro llable areas. This can
172 // only happen if we're both scrollable, and we do in fact overflow. This me ans that overflow: hidden 172 // only happen if we're both scrollable, and we do in fact overflow. This me ans that overflow: hidden
173 // layers never get added to the FrameView's collection. 173 // layers never get added to the FrameView's collection.
174 bool scrollsOverflow() const; 174 bool scrollsOverflow() const { return m_scrollsOverflow; }
175 175
176 // Rectangle encompassing the scroll corner and resizer rect. 176 // Rectangle encompassing the scroll corner and resizer rect.
177 IntRect scrollCornerAndResizerRect() const; 177 IntRect scrollCornerAndResizerRect() const;
178 178
179 bool needsCompositedScrolling() const; 179 bool needsCompositedScrolling() const;
180 180
181 // FIXME: This needs to be exposed as forced compositing scrolling is a Rend erLayerScrollableArea 181 // FIXME: This needs to be exposed as forced compositing scrolling is a Rend erLayerScrollableArea
182 // concept and stacking container is a RenderLayerStackingNode concept. 182 // concept and stacking container is a RenderLayerStackingNode concept.
183 bool adjustForForceCompositedScrollingMode(bool) const; 183 bool adjustForForceCompositedScrollingMode(bool) const;
184 184
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 void updateCompositingLayersAfterScroll(); 222 void updateCompositingLayersAfterScroll();
223 virtual void updateNeedsCompositedScrolling() OVERRIDE; 223 virtual void updateNeedsCompositedScrolling() OVERRIDE;
224 bool setNeedsCompositedScrolling(bool); 224 bool setNeedsCompositedScrolling(bool);
225 225
226 void setForceNeedsCompositedScrolling(ForceNeedsCompositedScrollingMode); 226 void setForceNeedsCompositedScrolling(ForceNeedsCompositedScrollingMode);
227 227
228 RenderBox* m_box; 228 RenderBox* m_box;
229 229
230 // Keeps track of whether the layer is currently resizing, so events can cau se resizing to start and stop. 230 // Keeps track of whether the layer is currently resizing, so events can cau se resizing to start and stop.
231 unsigned m_inResizeMode : 1; 231 unsigned m_inResizeMode : 1;
232 unsigned m_scrollsOverflow : 1;
232 233
233 unsigned m_scrollDimensionsDirty : 1; 234 unsigned m_scrollDimensionsDirty : 1;
234 unsigned m_inOverflowRelayout : 1; 235 unsigned m_inOverflowRelayout : 1;
235 236
236 unsigned m_needsCompositedScrolling : 1; 237 unsigned m_needsCompositedScrolling : 1;
237 238
238 ForceNeedsCompositedScrollingMode m_forceNeedsCompositedScrolling; 239 ForceNeedsCompositedScrollingMode m_forceNeedsCompositedScrolling;
239 240
240 // The width/height of our scrolled area. 241 // The width/height of our scrolled area.
241 LayoutRect m_overflowRect; 242 LayoutRect m_overflowRect;
(...skipping 10 matching lines...) Expand all
252 // Renderers to hold our custom scroll corner. 253 // Renderers to hold our custom scroll corner.
253 RenderScrollbarPart* m_scrollCorner; 254 RenderScrollbarPart* m_scrollCorner;
254 255
255 // Renderers to hold our custom resizer. 256 // Renderers to hold our custom resizer.
256 RenderScrollbarPart* m_resizer; 257 RenderScrollbarPart* m_resizer;
257 }; 258 };
258 259
259 } // Namespace WebCore 260 } // Namespace WebCore
260 261
261 #endif // RenderLayerScrollableArea_h 262 #endif // RenderLayerScrollableArea_h
OLDNEW
« no previous file with comments | « Source/core/page/EventHandler.cpp ('k') | Source/core/rendering/RenderLayerScrollableArea.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698