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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 // post-update work even if the scroll position didn't change. | 315 // post-update work even if the scroll position didn't change. |
316 void setScrollPositionUnconditionally(const DoublePoint&, | 316 void setScrollPositionUnconditionally(const DoublePoint&, |
317 ScrollType = ProgrammaticScroll); | 317 ScrollType = ProgrammaticScroll); |
318 | 318 |
319 // TODO(szager): Actually run these after all of layout is finished. | 319 // TODO(szager): Actually run these after all of layout is finished. |
320 // Currently, they run at the end of box()'es layout (or after all flexbox | 320 // Currently, they run at the end of box()'es layout (or after all flexbox |
321 // layout has finished) but while document layout is still happening. | 321 // layout has finished) but while document layout is still happening. |
322 void updateAfterLayout(); | 322 void updateAfterLayout(); |
323 void clampScrollOffsetsAfterLayout(); | 323 void clampScrollOffsetsAfterLayout(); |
324 | 324 |
| 325 void didChangeGlobalRootScroller() override; |
| 326 |
325 void updateAfterStyleChange(const ComputedStyle*); | 327 void updateAfterStyleChange(const ComputedStyle*); |
326 void updateAfterOverflowRecalc(); | 328 void updateAfterOverflowRecalc(); |
327 | 329 |
328 bool updateAfterCompositingChange() override; | 330 bool updateAfterCompositingChange() override; |
329 | 331 |
330 bool hasScrollbar() const { | 332 bool hasScrollbar() const { |
331 return hasHorizontalScrollbar() || hasVerticalScrollbar(); | 333 return hasHorizontalScrollbar() || hasVerticalScrollbar(); |
332 } | 334 } |
333 bool hasOverflowControls() const { | 335 bool hasOverflowControls() const { |
334 return hasScrollbar() || scrollCorner() || resizer(); | 336 return hasScrollbar() || scrollCorner() || resizer(); |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 | 584 |
583 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, | 585 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, |
584 ScrollableArea, | 586 ScrollableArea, |
585 scrollableArea, | 587 scrollableArea, |
586 scrollableArea->isPaintLayerScrollableArea(), | 588 scrollableArea->isPaintLayerScrollableArea(), |
587 scrollableArea.isPaintLayerScrollableArea()); | 589 scrollableArea.isPaintLayerScrollableArea()); |
588 | 590 |
589 } // namespace blink | 591 } // namespace blink |
590 | 592 |
591 #endif // LayerScrollableArea_h | 593 #endif // LayerScrollableArea_h |
OLD | NEW |