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

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

Issue 2826893003: Remove ScrollableArea::GetFrameViewBase and move ScheduleAnimation into subclasses. (Closed)
Patch Set: Remove UNREACHED Created 3 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
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 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 const IntPoint& CachedOverlayScrollbarOffset() { 420 const IntPoint& CachedOverlayScrollbarOffset() {
421 return cached_overlay_scrollbar_offset_; 421 return cached_overlay_scrollbar_offset_;
422 } 422 }
423 void SetCachedOverlayScrollbarOffset(const IntPoint& offset) { 423 void SetCachedOverlayScrollbarOffset(const IntPoint& offset) {
424 cached_overlay_scrollbar_offset_ = offset; 424 cached_overlay_scrollbar_offset_ = offset;
425 } 425 }
426 426
427 IntRect RectForHorizontalScrollbar(const IntRect& border_box_rect) const; 427 IntRect RectForHorizontalScrollbar(const IntRect& border_box_rect) const;
428 IntRect RectForVerticalScrollbar(const IntRect& border_box_rect) const; 428 IntRect RectForVerticalScrollbar(const IntRect& border_box_rect) const;
429 429
430 FrameViewBase* GetFrameViewBase() override; 430 bool ScheduleAnimation() override;
431 bool ShouldPerformScrollAnchoring() const override; 431 bool ShouldPerformScrollAnchoring() const override;
432 ScrollAnchor* GetScrollAnchor() override { return &scroll_anchor_; } 432 ScrollAnchor* GetScrollAnchor() override { return &scroll_anchor_; }
433 bool IsPaintLayerScrollableArea() const override { return true; } 433 bool IsPaintLayerScrollableArea() const override { return true; }
434 434
435 LayoutBox* GetLayoutBox() const override { return &Box(); } 435 LayoutBox* GetLayoutBox() const override { return &Box(); }
436 436
437 FloatQuad LocalToVisibleContentQuad(const FloatQuad&, 437 FloatQuad LocalToVisibleContentQuad(const FloatQuad&,
438 const LayoutObject*, 438 const LayoutObject*,
439 unsigned = 0) const final; 439 unsigned = 0) const final;
440 440
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 604
605 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, 605 DEFINE_TYPE_CASTS(PaintLayerScrollableArea,
606 ScrollableArea, 606 ScrollableArea,
607 scrollableArea, 607 scrollableArea,
608 scrollableArea->IsPaintLayerScrollableArea(), 608 scrollableArea->IsPaintLayerScrollableArea(),
609 scrollableArea.IsPaintLayerScrollableArea()); 609 scrollableArea.IsPaintLayerScrollableArea());
610 610
611 } // namespace blink 611 } // namespace blink
612 612
613 #endif // LayerScrollableArea_h 613 #endif // LayerScrollableArea_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698