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

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

Issue 2644243002: Move ScrollableArea timer to TaskRunnerTimer. (Closed)
Patch Set: use derived class in unique_ptr Created 3 years, 11 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 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 bool shouldPerformScrollAnchoring() const override; 426 bool shouldPerformScrollAnchoring() const override;
427 ScrollAnchor* scrollAnchor() override { return &m_scrollAnchor; } 427 ScrollAnchor* scrollAnchor() override { return &m_scrollAnchor; }
428 bool isPaintLayerScrollableArea() const override { return true; } 428 bool isPaintLayerScrollableArea() const override { return true; }
429 429
430 LayoutBox* layoutBox() const override { return &box(); } 430 LayoutBox* layoutBox() const override { return &box(); }
431 431
432 FloatQuad localToVisibleContentQuad(const FloatQuad&, 432 FloatQuad localToVisibleContentQuad(const FloatQuad&,
433 const LayoutObject*, 433 const LayoutObject*,
434 unsigned = 0) const final; 434 unsigned = 0) const final;
435 435
436 RefPtr<WebTaskRunner> getTimerTaskRunner() const final;
437
436 bool shouldRebuildHorizontalScrollbarLayer() const { 438 bool shouldRebuildHorizontalScrollbarLayer() const {
437 return m_rebuildHorizontalScrollbarLayer; 439 return m_rebuildHorizontalScrollbarLayer;
438 } 440 }
439 bool shouldRebuildVerticalScrollbarLayer() const { 441 bool shouldRebuildVerticalScrollbarLayer() const {
440 return m_rebuildVerticalScrollbarLayer; 442 return m_rebuildVerticalScrollbarLayer;
441 } 443 }
442 void resetRebuildScrollbarLayerFlags(); 444 void resetRebuildScrollbarLayerFlags();
443 445
444 // Did DelayScrollOffsetClampScope prevent us from running 446 // Did DelayScrollOffsetClampScope prevent us from running
445 // clampScrollOffsetsAfterLayout() in updateAfterLayout()? 447 // clampScrollOffsetsAfterLayout() in updateAfterLayout()?
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 601
600 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, 602 DEFINE_TYPE_CASTS(PaintLayerScrollableArea,
601 ScrollableArea, 603 ScrollableArea,
602 scrollableArea, 604 scrollableArea,
603 scrollableArea->isPaintLayerScrollableArea(), 605 scrollableArea->isPaintLayerScrollableArea(),
604 scrollableArea.isPaintLayerScrollableArea()); 606 scrollableArea.isPaintLayerScrollableArea());
605 607
606 } // namespace blink 608 } // namespace blink
607 609
608 #endif // LayerScrollableArea_h 610 #endif // LayerScrollableArea_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698