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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 void setTopmostScrollChild(PaintLayer*); | 400 void setTopmostScrollChild(PaintLayer*); |
401 PaintLayer* topmostScrollChild() const { | 401 PaintLayer* topmostScrollChild() const { |
402 DCHECK(!m_nextTopmostScrollChild); | 402 DCHECK(!m_nextTopmostScrollChild); |
403 return m_topmostScrollChild; | 403 return m_topmostScrollChild; |
404 } | 404 } |
405 | 405 |
406 IntRect resizerCornerRect(const IntRect&, ResizerHitTestType) const; | 406 IntRect resizerCornerRect(const IntRect&, ResizerHitTestType) const; |
407 | 407 |
408 // TODO(ymalik): Remove box() and update callers to use layoutBox() instead. | 408 // TODO(ymalik): Remove box() and update callers to use layoutBox() instead. |
409 LayoutBox& box() const; | 409 LayoutBox& box() const; |
410 PaintLayer* layer() const; | 410 PaintLayer* layer() const override; |
411 | 411 |
412 LayoutScrollbarPart* resizer() const override { return m_resizer; } | 412 LayoutScrollbarPart* resizer() const override { return m_resizer; } |
413 | 413 |
414 const IntPoint& cachedOverlayScrollbarOffset() { | 414 const IntPoint& cachedOverlayScrollbarOffset() { |
415 return m_cachedOverlayScrollbarOffset; | 415 return m_cachedOverlayScrollbarOffset; |
416 } | 416 } |
417 void setCachedOverlayScrollbarOffset(const IntPoint& offset) { | 417 void setCachedOverlayScrollbarOffset(const IntPoint& offset) { |
418 m_cachedOverlayScrollbarOffset = offset; | 418 m_cachedOverlayScrollbarOffset = offset; |
419 } | 419 } |
420 | 420 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 | 585 |
586 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, | 586 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, |
587 ScrollableArea, | 587 ScrollableArea, |
588 scrollableArea, | 588 scrollableArea, |
589 scrollableArea->isPaintLayerScrollableArea(), | 589 scrollableArea->isPaintLayerScrollableArea(), |
590 scrollableArea.isPaintLayerScrollableArea()); | 590 scrollableArea.isPaintLayerScrollableArea()); |
591 | 591 |
592 } // namespace blink | 592 } // namespace blink |
593 | 593 |
594 #endif // LayerScrollableArea_h | 594 #endif // LayerScrollableArea_h |
OLD | NEW |