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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 bool shouldRebuildVerticalScrollbarLayer() const { return m_rebuildVerticalS
crollbarLayer; } | 406 bool shouldRebuildVerticalScrollbarLayer() const { return m_rebuildVerticalS
crollbarLayer; } |
407 void resetRebuildScrollbarLayerFlags(); | 407 void resetRebuildScrollbarLayerFlags(); |
408 | 408 |
409 bool needsScrollPositionClamp() const { return m_needsScrollPositionClamp; } | 409 bool needsScrollPositionClamp() const { return m_needsScrollPositionClamp; } |
410 void setNeedsScrollPositionClamp(bool val) { m_needsScrollPositionClamp = va
l; } | 410 void setNeedsScrollPositionClamp(bool val) { m_needsScrollPositionClamp = va
l; } |
411 | 411 |
412 StickyConstraintsMap& stickyConstraintsMap() { return ensureRareData().m_sti
ckyConstraintsMap; } | 412 StickyConstraintsMap& stickyConstraintsMap() { return ensureRareData().m_sti
ckyConstraintsMap; } |
413 void invalidateAllStickyConstraints(); | 413 void invalidateAllStickyConstraints(); |
414 void invalidateStickyConstraintsFor(PaintLayer*, bool needsCompositingUpdate
= true); | 414 void invalidateStickyConstraintsFor(PaintLayer*, bool needsCompositingUpdate
= true); |
415 | 415 |
416 uint64_t id() const; | |
417 | |
418 DECLARE_VIRTUAL_TRACE(); | 416 DECLARE_VIRTUAL_TRACE(); |
419 | 417 |
420 private: | 418 private: |
421 explicit PaintLayerScrollableArea(PaintLayer&); | 419 explicit PaintLayerScrollableArea(PaintLayer&); |
422 | 420 |
423 bool hasHorizontalOverflow() const; | 421 bool hasHorizontalOverflow() const; |
424 bool hasVerticalOverflow() const; | 422 bool hasVerticalOverflow() const; |
425 bool hasScrollableHorizontalOverflow() const; | 423 bool hasScrollableHorizontalOverflow() const; |
426 bool hasScrollableVerticalOverflow() const; | 424 bool hasScrollableVerticalOverflow() const; |
427 bool visualViewportSuppliesScrollbars() const; | 425 bool visualViewportSuppliesScrollbars() const; |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 #endif | 516 #endif |
519 }; | 517 }; |
520 | 518 |
521 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, ScrollableArea, scrollableArea, | 519 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, ScrollableArea, scrollableArea, |
522 scrollableArea->isPaintLayerScrollableArea(), | 520 scrollableArea->isPaintLayerScrollableArea(), |
523 scrollableArea.isPaintLayerScrollableArea()); | 521 scrollableArea.isPaintLayerScrollableArea()); |
524 | 522 |
525 } // namespace blink | 523 } // namespace blink |
526 | 524 |
527 #endif // LayerScrollableArea_h | 525 #endif // LayerScrollableArea_h |
OLD | NEW |