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

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

Issue 1801753002: First programmatic smooth scroll should run on the compositor if it can (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix bot compile error Created 4 years, 9 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) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 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@gmail.com> 9 * Christian Biesinger <cbiesinger@gmail.com>
10 * Randall Jesup <rjesup@wgate.com> 10 * Randall Jesup <rjesup@wgate.com>
(...skipping 1446 matching lines...) Expand 10 before | Expand all | Expand 10 after
1457 { 1457 {
1458 return box().frame()->view(); 1458 return box().frame()->view();
1459 } 1459 }
1460 1460
1461 void PaintLayerScrollableArea::resetRebuildScrollbarLayerFlags() 1461 void PaintLayerScrollableArea::resetRebuildScrollbarLayerFlags()
1462 { 1462 {
1463 m_rebuildHorizontalScrollbarLayer = false; 1463 m_rebuildHorizontalScrollbarLayer = false;
1464 m_rebuildVerticalScrollbarLayer = false; 1464 m_rebuildVerticalScrollbarLayer = false;
1465 } 1465 }
1466 1466
1467 CompositorAnimationTimeline* PaintLayerScrollableArea::compositorAnimationTimeli ne() const
1468 {
1469 if (LocalFrame* frame = box().frame()) {
1470 if (Page* page = frame->page())
1471 return page->scrollingCoordinator() ? page->scrollingCoordinator()-> compositorAnimationTimeline() : nullptr;
1472 }
1473 return nullptr;
1474 }
1475
1467 PaintLayerScrollableArea::ScrollbarManager::ScrollbarManager(PaintLayerScrollabl eArea& scrollableArea) 1476 PaintLayerScrollableArea::ScrollbarManager::ScrollbarManager(PaintLayerScrollabl eArea& scrollableArea)
1468 : m_scrollableArea(&scrollableArea) 1477 : m_scrollableArea(&scrollableArea)
1469 , m_canDetachScrollbars(0) 1478 , m_canDetachScrollbars(0)
1470 , m_hBarIsAttached(0) 1479 , m_hBarIsAttached(0)
1471 , m_vBarIsAttached(0) 1480 , m_vBarIsAttached(0)
1472 { 1481 {
1473 } 1482 }
1474 1483
1475 void PaintLayerScrollableArea::ScrollbarManager::dispose() 1484 void PaintLayerScrollableArea::ScrollbarManager::dispose()
1476 { 1485 {
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
1574 } 1583 }
1575 1584
1576 DEFINE_TRACE(PaintLayerScrollableArea::ScrollbarManager) 1585 DEFINE_TRACE(PaintLayerScrollableArea::ScrollbarManager)
1577 { 1586 {
1578 visitor->trace(m_scrollableArea); 1587 visitor->trace(m_scrollableArea);
1579 visitor->trace(m_hBar); 1588 visitor->trace(m_hBar);
1580 visitor->trace(m_vBar); 1589 visitor->trace(m_vBar);
1581 } 1590 }
1582 1591
1583 } // namespace blink 1592 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h ('k') | third_party/WebKit/Source/core/testing/Internals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698