Chromium Code Reviews| 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 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 474 m_hadVerticalScrollbarBeforeRelayout = val; | 474 m_hadVerticalScrollbarBeforeRelayout = val; |
| 475 } | 475 } |
| 476 | 476 |
| 477 StickyConstraintsMap& stickyConstraintsMap() { | 477 StickyConstraintsMap& stickyConstraintsMap() { |
| 478 return ensureRareData().m_stickyConstraintsMap; | 478 return ensureRareData().m_stickyConstraintsMap; |
| 479 } | 479 } |
| 480 void invalidateAllStickyConstraints(); | 480 void invalidateAllStickyConstraints(); |
| 481 void invalidateStickyConstraintsFor(PaintLayer*, | 481 void invalidateStickyConstraintsFor(PaintLayer*, |
| 482 bool needsCompositingUpdate = true); | 482 bool needsCompositingUpdate = true); |
| 483 | 483 |
| 484 void removeStyleRelatedMainThreadScrollingReasons(); | 484 void resetStyleRelatedMainThreadScrollingReasons() { m_reasons = 0; } |
|
bokan
2017/03/24 17:55:55
reset only gets called from inside PLSA. Remove th
yigu
2017/03/27 21:02:08
Done.
| |
| 485 void addStyleRelatedMainThreadScrollingReasons(const uint32_t); | 485 uint32_t getStyleRelatedMainThreadScrollingReasons() { return m_reasons; } |
| 486 bool hasMainThreadScrollingReason(uint32_t reason) const { | |
| 487 return m_reasons & reason; | |
| 488 } | |
| 489 | 486 |
| 490 uint64_t id() const; | 487 uint64_t id() const; |
| 491 | 488 |
| 492 DECLARE_VIRTUAL_TRACE(); | 489 DECLARE_VIRTUAL_TRACE(); |
| 493 | 490 |
| 494 private: | 491 private: |
| 495 explicit PaintLayerScrollableArea(PaintLayer&); | 492 explicit PaintLayerScrollableArea(PaintLayer&); |
| 496 | 493 |
| 497 bool hasHorizontalOverflow() const; | 494 bool hasHorizontalOverflow() const; |
| 498 bool hasVerticalOverflow() const; | 495 bool hasVerticalOverflow() const; |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 604 | 601 |
| 605 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, | 602 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, |
| 606 ScrollableArea, | 603 ScrollableArea, |
| 607 scrollableArea, | 604 scrollableArea, |
| 608 scrollableArea->isPaintLayerScrollableArea(), | 605 scrollableArea->isPaintLayerScrollableArea(), |
| 609 scrollableArea.isPaintLayerScrollableArea()); | 606 scrollableArea.isPaintLayerScrollableArea()); |
| 610 | 607 |
| 611 } // namespace blink | 608 } // namespace blink |
| 612 | 609 |
| 613 #endif // LayerScrollableArea_h | 610 #endif // LayerScrollableArea_h |
| OLD | NEW |