| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights |
| 3 * reserved. | 3 * reserved. |
| 4 * | 4 * |
| 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
| 6 * | 6 * |
| 7 * Other contributors: | 7 * Other contributors: |
| 8 * Robert O'Callahan <roc+@cs.cmu.edu> | 8 * Robert O'Callahan <roc+@cs.cmu.edu> |
| 9 * David Baron <dbaron@fas.harvard.edu> | 9 * David Baron <dbaron@fas.harvard.edu> |
| 10 * Christian Biesinger <cbiesinger@gmail.com> | 10 * Christian Biesinger <cbiesinger@gmail.com> |
| (...skipping 1543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1554 stickyLayer->setNeedsCompositingInputsUpdate(); | 1554 stickyLayer->setNeedsCompositingInputsUpdate(); |
| 1555 } | 1555 } |
| 1556 d->m_stickyConstraintsMap.clear(); | 1556 d->m_stickyConstraintsMap.clear(); |
| 1557 } | 1557 } |
| 1558 } | 1558 } |
| 1559 | 1559 |
| 1560 void PaintLayerScrollableArea::invalidateStickyConstraintsFor( | 1560 void PaintLayerScrollableArea::invalidateStickyConstraintsFor( |
| 1561 PaintLayer* layer, | 1561 PaintLayer* layer, |
| 1562 bool needsCompositingUpdate) { | 1562 bool needsCompositingUpdate) { |
| 1563 if (PaintLayerScrollableAreaRareData* d = rareData()) { | 1563 if (PaintLayerScrollableAreaRareData* d = rareData()) { |
| 1564 d->m_stickyConstraintsMap.remove(layer); | 1564 d->m_stickyConstraintsMap.erase(layer); |
| 1565 if (needsCompositingUpdate && | 1565 if (needsCompositingUpdate && |
| 1566 layer->layoutObject().style()->position() == EPosition::kSticky) | 1566 layer->layoutObject().style()->position() == EPosition::kSticky) |
| 1567 layer->setNeedsCompositingInputsUpdate(); | 1567 layer->setNeedsCompositingInputsUpdate(); |
| 1568 } | 1568 } |
| 1569 } | 1569 } |
| 1570 | 1570 |
| 1571 IntSize PaintLayerScrollableArea::offsetFromResizeCorner( | 1571 IntSize PaintLayerScrollableArea::offsetFromResizeCorner( |
| 1572 const IntPoint& absolutePoint) const { | 1572 const IntPoint& absolutePoint) const { |
| 1573 // Currently the resize corner is either the bottom right corner or the bottom | 1573 // Currently the resize corner is either the bottom right corner or the bottom |
| 1574 // left corner. | 1574 // left corner. |
| (...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2151 | 2151 |
| 2152 void PaintLayerScrollableArea::DelayScrollOffsetClampScope:: | 2152 void PaintLayerScrollableArea::DelayScrollOffsetClampScope:: |
| 2153 clampScrollableAreas() { | 2153 clampScrollableAreas() { |
| 2154 for (auto& scrollableArea : *s_needsClamp) | 2154 for (auto& scrollableArea : *s_needsClamp) |
| 2155 scrollableArea->clampScrollOffsetAfterOverflowChange(); | 2155 scrollableArea->clampScrollOffsetAfterOverflowChange(); |
| 2156 delete s_needsClamp; | 2156 delete s_needsClamp; |
| 2157 s_needsClamp = nullptr; | 2157 s_needsClamp = nullptr; |
| 2158 } | 2158 } |
| 2159 | 2159 |
| 2160 } // namespace blink | 2160 } // namespace blink |
| OLD | NEW |