| 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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 | 331 |
| 332 bool hasScrollbar() const { | 332 bool hasScrollbar() const { |
| 333 return hasHorizontalScrollbar() || hasVerticalScrollbar(); | 333 return hasHorizontalScrollbar() || hasVerticalScrollbar(); |
| 334 } | 334 } |
| 335 bool hasOverflowControls() const { | 335 bool hasOverflowControls() const { |
| 336 return hasScrollbar() || scrollCorner() || resizer(); | 336 return hasScrollbar() || scrollCorner() || resizer(); |
| 337 } | 337 } |
| 338 | 338 |
| 339 LayoutScrollbarPart* scrollCorner() const override { return m_scrollCorner; } | 339 LayoutScrollbarPart* scrollCorner() const override { return m_scrollCorner; } |
| 340 | 340 |
| 341 void resize(const WebGestureEvent&, const LayoutSize&); |
| 341 void resize(const PlatformEvent&, const LayoutSize&); | 342 void resize(const PlatformEvent&, const LayoutSize&); |
| 342 IntSize offsetFromResizeCorner(const IntPoint& absolutePoint) const; | 343 IntSize offsetFromResizeCorner(const IntPoint& absolutePoint) const; |
| 343 | 344 |
| 344 bool inResizeMode() const { return m_inResizeMode; } | 345 bool inResizeMode() const { return m_inResizeMode; } |
| 345 void setInResizeMode(bool inResizeMode) { m_inResizeMode = inResizeMode; } | 346 void setInResizeMode(bool inResizeMode) { m_inResizeMode = inResizeMode; } |
| 346 | 347 |
| 347 IntRect touchResizerCornerRect(const IntRect& bounds) const { | 348 IntRect touchResizerCornerRect(const IntRect& bounds) const { |
| 348 return resizerCornerRect(bounds, ResizerForTouch); | 349 return resizerCornerRect(bounds, ResizerForTouch); |
| 349 } | 350 } |
| 350 | 351 |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 void updateScrollCornerStyle(); | 514 void updateScrollCornerStyle(); |
| 514 | 515 |
| 515 // See comments on isPointInResizeControl. | 516 // See comments on isPointInResizeControl. |
| 516 void updateResizerAreaSet(); | 517 void updateResizerAreaSet(); |
| 517 void updateResizerStyle(); | 518 void updateResizerStyle(); |
| 518 | 519 |
| 519 void updateScrollableAreaSet(bool hasOverflow); | 520 void updateScrollableAreaSet(bool hasOverflow); |
| 520 | 521 |
| 521 void updateCompositingLayersAfterScroll(); | 522 void updateCompositingLayersAfterScroll(); |
| 522 | 523 |
| 524 void resize(const IntPoint& pos, const LayoutSize& oldOffset); |
| 525 |
| 523 PaintLayerScrollableAreaRareData* rareData() { return m_rareData.get(); } | 526 PaintLayerScrollableAreaRareData* rareData() { return m_rareData.get(); } |
| 524 | 527 |
| 525 PaintLayerScrollableAreaRareData& ensureRareData() { | 528 PaintLayerScrollableAreaRareData& ensureRareData() { |
| 526 if (!m_rareData) | 529 if (!m_rareData) |
| 527 m_rareData = makeUnique<PaintLayerScrollableAreaRareData>(); | 530 m_rareData = makeUnique<PaintLayerScrollableAreaRareData>(); |
| 528 return *m_rareData.get(); | 531 return *m_rareData.get(); |
| 529 } | 532 } |
| 530 | 533 |
| 531 PaintLayer& m_layer; | 534 PaintLayer& m_layer; |
| 532 | 535 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 | 589 |
| 587 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, | 590 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, |
| 588 ScrollableArea, | 591 ScrollableArea, |
| 589 scrollableArea, | 592 scrollableArea, |
| 590 scrollableArea->isPaintLayerScrollableArea(), | 593 scrollableArea->isPaintLayerScrollableArea(), |
| 591 scrollableArea.isPaintLayerScrollableArea()); | 594 scrollableArea.isPaintLayerScrollableArea()); |
| 592 | 595 |
| 593 } // namespace blink | 596 } // namespace blink |
| 594 | 597 |
| 595 #endif // LayerScrollableArea_h | 598 #endif // LayerScrollableArea_h |
| OLD | NEW |