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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h

Issue 2478463003: Revert of Implement overlay scrollbar fade out for non-composited scrollers. (Closed)
Patch Set: Created 4 years, 1 month 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) 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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 void scrollbarVisibilityChanged() override; 288 void scrollbarVisibilityChanged() override;
289 IntRect scrollableAreaBoundingBox() const override; 289 IntRect scrollableAreaBoundingBox() const override;
290 void registerForAnimation() override; 290 void registerForAnimation() override;
291 void deregisterForAnimation() override; 291 void deregisterForAnimation() override;
292 bool userInputScrollable(ScrollbarOrientation) const override; 292 bool userInputScrollable(ScrollbarOrientation) const override;
293 bool shouldPlaceVerticalScrollbarOnLeft() const override; 293 bool shouldPlaceVerticalScrollbarOnLeft() const override;
294 int pageStep(ScrollbarOrientation) const override; 294 int pageStep(ScrollbarOrientation) const override;
295 ScrollBehavior scrollBehaviorStyle() const override; 295 ScrollBehavior scrollBehaviorStyle() const override;
296 CompositorAnimationTimeline* compositorAnimationTimeline() const override; 296 CompositorAnimationTimeline* compositorAnimationTimeline() const override;
297 297
298 void visibleSizeChanged();
299
300 // FIXME: We shouldn't allow access to m_overflowRect outside this class. 298 // FIXME: We shouldn't allow access to m_overflowRect outside this class.
301 LayoutRect overflowRect() const { return m_overflowRect; } 299 LayoutRect overflowRect() const { return m_overflowRect; }
302 300
303 void scrollToAbsolutePosition( 301 void scrollToAbsolutePosition(
304 const FloatPoint& position, 302 const FloatPoint& position,
305 ScrollBehavior scrollBehavior = ScrollBehaviorInstant, 303 ScrollBehavior scrollBehavior = ScrollBehaviorInstant,
306 ScrollType scrollType = ProgrammaticScroll) { 304 ScrollType scrollType = ProgrammaticScroll) {
307 setScrollOffset(position - scrollOrigin(), scrollType, scrollBehavior); 305 setScrollOffset(position - scrollOrigin(), scrollType, scrollBehavior);
308 } 306 }
309 307
310 // This will set the scroll position without clamping, and it will do all 308 // This will set the scroll position without clamping, and it will do all
311 // post-update work even if the scroll position didn't change. 309 // post-update work even if the scroll position didn't change.
312 void setScrollOffsetUnconditionally(const ScrollOffset&, 310 void setScrollOffsetUnconditionally(const ScrollOffset&,
313 ScrollType = ProgrammaticScroll); 311 ScrollType = ProgrammaticScroll);
314 312
315 // This will set the scroll position without clamping, and it will do all 313 // This will set the scroll position without clamping, and it will do all
316 // post-update work even if the scroll position didn't change. 314 // post-update work even if the scroll position didn't change.
317 void setScrollPositionUnconditionally(const DoublePoint&, 315 void setScrollPositionUnconditionally(const DoublePoint&,
318 ScrollType = ProgrammaticScroll); 316 ScrollType = ProgrammaticScroll);
319 317
320 // TODO(szager): Actually run these after all of layout is finished. 318 // TODO(szager): Actually run these after all of layout is finished.
321 // Currently, they run at the end of box()'es layout (or after all flexbox 319 // Currently, they run at the end of box()'es layout (or after all flexbox
322 // layout has finished) but while document layout is still happening. 320 // layout has finished) but while document layout is still happening.
323 void updateAfterLayout(); 321 void updateAfterLayout();
324 void clampScrollOffsetsAfterLayout(); 322 void clampScrollOffsetsAfterLayout();
325 323
324 void didChangeScrollbarsHidden() override;
325
326 void updateAfterStyleChange(const ComputedStyle*); 326 void updateAfterStyleChange(const ComputedStyle*);
327 void updateAfterOverflowRecalc(); 327 void updateAfterOverflowRecalc();
328 328
329 bool updateAfterCompositingChange() override; 329 bool updateAfterCompositingChange() override;
330 330
331 bool hasScrollbar() const { 331 bool hasScrollbar() const {
332 return hasHorizontalScrollbar() || hasVerticalScrollbar(); 332 return hasHorizontalScrollbar() || hasVerticalScrollbar();
333 } 333 }
334 bool hasOverflowControls() const { 334 bool hasOverflowControls() const {
335 return hasScrollbar() || scrollCorner() || resizer(); 335 return hasScrollbar() || scrollCorner() || resizer();
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 581
582 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, 582 DEFINE_TYPE_CASTS(PaintLayerScrollableArea,
583 ScrollableArea, 583 ScrollableArea,
584 scrollableArea, 584 scrollableArea,
585 scrollableArea->isPaintLayerScrollableArea(), 585 scrollableArea->isPaintLayerScrollableArea(),
586 scrollableArea.isPaintLayerScrollableArea()); 586 scrollableArea.isPaintLayerScrollableArea());
587 587
588 } // namespace blink 588 } // namespace blink
589 589
590 #endif // LayerScrollableArea_h 590 #endif // LayerScrollableArea_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayer.cpp ('k') | third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698