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

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

Issue 2559273003: Blink Compositor Animation: Introduce CompositorAnimationHost correctly. (Closed)
Patch Set: Allocate on stack in unit tests. Created 4 years 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 namespace blink { 57 namespace blink {
58 58
59 enum ResizerHitTestType { ResizerForPointer, ResizerForTouch }; 59 enum ResizerHitTestType { ResizerForPointer, ResizerForTouch };
60 60
61 class ComputedStyle; 61 class ComputedStyle;
62 class HitTestResult; 62 class HitTestResult;
63 class LayoutBox; 63 class LayoutBox;
64 class LayoutScrollbarPart; 64 class LayoutScrollbarPart;
65 class PaintLayer; 65 class PaintLayer;
66 class ScrollingCoordinator;
66 class StickyPositionScrollingConstraints; 67 class StickyPositionScrollingConstraints;
67 class SubtreeLayoutScope; 68 class SubtreeLayoutScope;
68 69
69 typedef WTF::HashMap<PaintLayer*, StickyPositionScrollingConstraints> 70 typedef WTF::HashMap<PaintLayer*, StickyPositionScrollingConstraints>
70 StickyConstraintsMap; 71 StickyConstraintsMap;
71 72
72 struct CORE_EXPORT PaintLayerScrollableAreaRareData { 73 struct CORE_EXPORT PaintLayerScrollableAreaRareData {
73 WTF_MAKE_NONCOPYABLE(PaintLayerScrollableAreaRareData); 74 WTF_MAKE_NONCOPYABLE(PaintLayerScrollableAreaRareData);
74 USING_FAST_MALLOC(PaintLayerScrollableAreaRareData); 75 USING_FAST_MALLOC(PaintLayerScrollableAreaRareData);
75 76
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 bool shouldSuspendScrollAnimations() const override; 285 bool shouldSuspendScrollAnimations() const override;
285 bool scrollbarsCanBeActive() const override; 286 bool scrollbarsCanBeActive() const override;
286 void scrollbarVisibilityChanged() override; 287 void scrollbarVisibilityChanged() override;
287 IntRect scrollableAreaBoundingBox() const override; 288 IntRect scrollableAreaBoundingBox() const override;
288 void registerForAnimation() override; 289 void registerForAnimation() override;
289 void deregisterForAnimation() override; 290 void deregisterForAnimation() override;
290 bool userInputScrollable(ScrollbarOrientation) const override; 291 bool userInputScrollable(ScrollbarOrientation) const override;
291 bool shouldPlaceVerticalScrollbarOnLeft() const override; 292 bool shouldPlaceVerticalScrollbarOnLeft() const override;
292 int pageStep(ScrollbarOrientation) const override; 293 int pageStep(ScrollbarOrientation) const override;
293 ScrollBehavior scrollBehaviorStyle() const override; 294 ScrollBehavior scrollBehaviorStyle() const override;
295 CompositorAnimationHost* compositorAnimationHost() const override;
294 CompositorAnimationTimeline* compositorAnimationTimeline() const override; 296 CompositorAnimationTimeline* compositorAnimationTimeline() const override;
295 297
296 void visibleSizeChanged(); 298 void visibleSizeChanged();
297 299
298 // FIXME: We shouldn't allow access to m_overflowRect outside this class. 300 // FIXME: We shouldn't allow access to m_overflowRect outside this class.
299 LayoutRect overflowRect() const { return m_overflowRect; } 301 LayoutRect overflowRect() const { return m_overflowRect; }
300 302
301 void scrollToAbsolutePosition( 303 void scrollToAbsolutePosition(
302 const FloatPoint& position, 304 const FloatPoint& position,
303 ScrollBehavior scrollBehavior = ScrollBehaviorInstant, 305 ScrollBehavior scrollBehavior = ScrollBehaviorInstant,
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 void updateScrollCornerStyle(); 514 void updateScrollCornerStyle();
513 515
514 // See comments on isPointInResizeControl. 516 // See comments on isPointInResizeControl.
515 void updateResizerAreaSet(); 517 void updateResizerAreaSet();
516 void updateResizerStyle(); 518 void updateResizerStyle();
517 519
518 void updateScrollableAreaSet(bool hasOverflow); 520 void updateScrollableAreaSet(bool hasOverflow);
519 521
520 void updateCompositingLayersAfterScroll(); 522 void updateCompositingLayersAfterScroll();
521 523
524 ScrollingCoordinator* getScrollingCoordinator() const;
525
522 PaintLayerScrollableAreaRareData* rareData() { return m_rareData.get(); } 526 PaintLayerScrollableAreaRareData* rareData() { return m_rareData.get(); }
523 527
524 PaintLayerScrollableAreaRareData& ensureRareData() { 528 PaintLayerScrollableAreaRareData& ensureRareData() {
525 if (!m_rareData) 529 if (!m_rareData)
526 m_rareData = WTF::makeUnique<PaintLayerScrollableAreaRareData>(); 530 m_rareData = WTF::makeUnique<PaintLayerScrollableAreaRareData>();
527 return *m_rareData.get(); 531 return *m_rareData.get();
528 } 532 }
529 533
530 PaintLayer& m_layer; 534 PaintLayer& m_layer;
531 535
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 589
586 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, 590 DEFINE_TYPE_CASTS(PaintLayerScrollableArea,
587 ScrollableArea, 591 ScrollableArea,
588 scrollableArea, 592 scrollableArea,
589 scrollableArea->isPaintLayerScrollableArea(), 593 scrollableArea->isPaintLayerScrollableArea(),
590 scrollableArea.isPaintLayerScrollableArea()); 594 scrollableArea.isPaintLayerScrollableArea());
591 595
592 } // namespace blink 596 } // namespace blink
593 597
594 #endif // LayerScrollableArea_h 598 #endif // LayerScrollableArea_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698