| OLD | NEW |
| 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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 IntRect ScrollableAreaBoundingBox() const override; | 290 IntRect ScrollableAreaBoundingBox() const override; |
| 291 void RegisterForAnimation() override; | 291 void RegisterForAnimation() override; |
| 292 void DeregisterForAnimation() override; | 292 void DeregisterForAnimation() override; |
| 293 bool UserInputScrollable(ScrollbarOrientation) const override; | 293 bool UserInputScrollable(ScrollbarOrientation) const override; |
| 294 bool ShouldPlaceVerticalScrollbarOnLeft() const override; | 294 bool ShouldPlaceVerticalScrollbarOnLeft() const override; |
| 295 int PageStep(ScrollbarOrientation) const override; | 295 int PageStep(ScrollbarOrientation) const override; |
| 296 ScrollBehavior ScrollBehaviorStyle() const override; | 296 ScrollBehavior ScrollBehaviorStyle() const override; |
| 297 CompositorAnimationHost* GetCompositorAnimationHost() const override; | 297 CompositorAnimationHost* GetCompositorAnimationHost() const override; |
| 298 CompositorAnimationTimeline* GetCompositorAnimationTimeline() const override; | 298 CompositorAnimationTimeline* GetCompositorAnimationTimeline() const override; |
| 299 | 299 |
| 300 // These are temporary convenience methods. They delegate to Box() methods, |
| 301 // which will be up-to-date when UpdateAfterLayout runs. By contrast, |
| 302 // VisibleContentRect() is based on layer_.Size(), which isn't updated |
| 303 // until later, when UpdateLayerPosition runs. A future patch will cause |
| 304 // layer_.Size() to be updated effectively simultaneously with Box() |
| 305 // sizing. When that lands, these methods should be removed in favor of |
| 306 // using VisibleContentRect() and/or layer_.Size() everywhere. |
| 307 LayoutSize ClientSize() const; |
| 308 IntSize PixelSnappedClientSize() const; |
| 309 |
| 300 void VisibleSizeChanged(); | 310 void VisibleSizeChanged(); |
| 301 | 311 |
| 302 // FIXME: We shouldn't allow access to m_overflowRect outside this class. | 312 // FIXME: We shouldn't allow access to m_overflowRect outside this class. |
| 303 LayoutRect OverflowRect() const { return overflow_rect_; } | 313 LayoutRect OverflowRect() const { return overflow_rect_; } |
| 304 | 314 |
| 305 void ScrollToAbsolutePosition( | 315 void ScrollToAbsolutePosition( |
| 306 const FloatPoint& position, | 316 const FloatPoint& position, |
| 307 ScrollBehavior scroll_behavior = kScrollBehaviorInstant, | 317 ScrollBehavior scroll_behavior = kScrollBehaviorInstant, |
| 308 ScrollType scroll_type = kProgrammaticScroll) { | 318 ScrollType scroll_type = kProgrammaticScroll) { |
| 309 SetScrollOffset(position - ScrollOrigin(), scroll_type, scroll_behavior); | 319 SetScrollOffset(position - ScrollOrigin(), scroll_type, scroll_behavior); |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 | 611 |
| 602 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, | 612 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, |
| 603 ScrollableArea, | 613 ScrollableArea, |
| 604 scrollableArea, | 614 scrollableArea, |
| 605 scrollableArea->IsPaintLayerScrollableArea(), | 615 scrollableArea->IsPaintLayerScrollableArea(), |
| 606 scrollableArea.IsPaintLayerScrollableArea()); | 616 scrollableArea.IsPaintLayerScrollableArea()); |
| 607 | 617 |
| 608 } // namespace blink | 618 } // namespace blink |
| 609 | 619 |
| 610 #endif // LayerScrollableArea_h | 620 #endif // LayerScrollableArea_h |
| OLD | NEW |