| 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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 bool isPaintLayerScrollableArea() const override { return true; } | 352 bool isPaintLayerScrollableArea() const override { return true; } |
| 353 | 353 |
| 354 bool shouldRebuildHorizontalScrollbarLayer() const { return m_rebuildHorizon
talScrollbarLayer; } | 354 bool shouldRebuildHorizontalScrollbarLayer() const { return m_rebuildHorizon
talScrollbarLayer; } |
| 355 bool shouldRebuildVerticalScrollbarLayer() const { return m_rebuildVerticalS
crollbarLayer; } | 355 bool shouldRebuildVerticalScrollbarLayer() const { return m_rebuildVerticalS
crollbarLayer; } |
| 356 void resetRebuildScrollbarLayerFlags(); | 356 void resetRebuildScrollbarLayerFlags(); |
| 357 | 357 |
| 358 StickyConstraintsMap& stickyConstraintsMap() { return ensureRareData().m_sti
ckyConstraintsMap; } | 358 StickyConstraintsMap& stickyConstraintsMap() { return ensureRareData().m_sti
ckyConstraintsMap; } |
| 359 void invalidateAllStickyConstraints(); | 359 void invalidateAllStickyConstraints(); |
| 360 void invalidateStickyConstraintsFor(PaintLayer*, bool needsCompositingUpdate
= true); | 360 void invalidateStickyConstraintsFor(PaintLayer*, bool needsCompositingUpdate
= true); |
| 361 | 361 |
| 362 uint64_t id() const; |
| 363 |
| 362 DECLARE_VIRTUAL_TRACE(); | 364 DECLARE_VIRTUAL_TRACE(); |
| 363 | 365 |
| 364 private: | 366 private: |
| 365 explicit PaintLayerScrollableArea(PaintLayer&); | 367 explicit PaintLayerScrollableArea(PaintLayer&); |
| 366 | 368 |
| 367 bool hasHorizontalOverflow() const; | 369 bool hasHorizontalOverflow() const; |
| 368 bool hasVerticalOverflow() const; | 370 bool hasVerticalOverflow() const; |
| 369 bool hasScrollableHorizontalOverflow() const; | 371 bool hasScrollableHorizontalOverflow() const; |
| 370 bool hasScrollableVerticalOverflow() const; | 372 bool hasScrollableVerticalOverflow() const; |
| 371 bool visualViewportSuppliesScrollbars() const; | 373 bool visualViewportSuppliesScrollbars() const; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 459 #endif | 461 #endif |
| 460 }; | 462 }; |
| 461 | 463 |
| 462 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, ScrollableArea, scrollableArea, | 464 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, ScrollableArea, scrollableArea, |
| 463 scrollableArea->isPaintLayerScrollableArea(), | 465 scrollableArea->isPaintLayerScrollableArea(), |
| 464 scrollableArea.isPaintLayerScrollableArea()); | 466 scrollableArea.isPaintLayerScrollableArea()); |
| 465 | 467 |
| 466 } // namespace blink | 468 } // namespace blink |
| 467 | 469 |
| 468 #endif // LayerScrollableArea_h | 470 #endif // LayerScrollableArea_h |
| OLD | NEW |