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

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

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) 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 bool shouldSuspendScrollAnimations() const override; 213 bool shouldSuspendScrollAnimations() const override;
214 bool scrollbarsCanBeActive() const override; 214 bool scrollbarsCanBeActive() const override;
215 void scrollbarVisibilityChanged() override; 215 void scrollbarVisibilityChanged() override;
216 IntRect scrollableAreaBoundingBox() const override; 216 IntRect scrollableAreaBoundingBox() const override;
217 void registerForAnimation() override; 217 void registerForAnimation() override;
218 void deregisterForAnimation() override; 218 void deregisterForAnimation() override;
219 bool userInputScrollable(ScrollbarOrientation) const override; 219 bool userInputScrollable(ScrollbarOrientation) const override;
220 bool shouldPlaceVerticalScrollbarOnLeft() const override; 220 bool shouldPlaceVerticalScrollbarOnLeft() const override;
221 int pageStep(ScrollbarOrientation) const override; 221 int pageStep(ScrollbarOrientation) const override;
222 ScrollBehavior scrollBehaviorStyle() const override; 222 ScrollBehavior scrollBehaviorStyle() const override;
223 CompositorAnimationTimeline* compositorAnimationTimeline() const override;
223 224
224 double scrollXOffset() const { return m_scrollOffset.width() + scrollOrigin( ).x(); } 225 double scrollXOffset() const { return m_scrollOffset.width() + scrollOrigin( ).x(); }
225 double scrollYOffset() const { return m_scrollOffset.height() + scrollOrigin ().y(); } 226 double scrollYOffset() const { return m_scrollOffset.height() + scrollOrigin ().y(); }
226 227
227 DoubleSize scrollOffset() const { return m_scrollOffset; } 228 DoubleSize scrollOffset() const { return m_scrollOffset; }
228 229
229 // FIXME: We shouldn't allow access to m_overflowRect outside this class. 230 // FIXME: We shouldn't allow access to m_overflowRect outside this class.
230 LayoutRect overflowRect() const { return m_overflowRect; } 231 LayoutRect overflowRect() const { return m_overflowRect; }
231 232
232 void scrollToPosition(const DoublePoint& scrollPosition, ScrollOffsetClampin g = ScrollOffsetUnclamped, 233 void scrollToPosition(const DoublePoint& scrollPosition, ScrollOffsetClampin g = ScrollOffsetUnclamped,
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 #endif 427 #endif
427 }; 428 };
428 429
429 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, ScrollableArea, scrollableArea, 430 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, ScrollableArea, scrollableArea,
430 scrollableArea->isPaintLayerScrollableArea(), 431 scrollableArea->isPaintLayerScrollableArea(),
431 scrollableArea.isPaintLayerScrollableArea()); 432 scrollableArea.isPaintLayerScrollableArea());
432 433
433 } // namespace blink 434 } // namespace blink
434 435
435 #endif // LayerScrollableArea_h 436 #endif // LayerScrollableArea_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698