| 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 { | 252 { |
| 253 scrollToOffset(toDoubleSize(position), ScrollOffsetClamped, scrollBehavi
or, scrollType); | 253 scrollToOffset(toDoubleSize(position), ScrollOffsetClamped, scrollBehavi
or, scrollType); |
| 254 } | 254 } |
| 255 | 255 |
| 256 // Returns true if a layout object was marked for layout. In such a case, th
e layout scope's root | 256 // Returns true if a layout object was marked for layout. In such a case, th
e layout scope's root |
| 257 // should be laid out again. | 257 // should be laid out again. |
| 258 bool updateAfterLayout(SubtreeLayoutScope* = nullptr); | 258 bool updateAfterLayout(SubtreeLayoutScope* = nullptr); |
| 259 void updateAfterStyleChange(const ComputedStyle*); | 259 void updateAfterStyleChange(const ComputedStyle*); |
| 260 void updateAfterOverflowRecalc(); | 260 void updateAfterOverflowRecalc(); |
| 261 | 261 |
| 262 void clampPositionAfterLayout(); |
| 263 |
| 262 bool updateAfterCompositingChange() override; | 264 bool updateAfterCompositingChange() override; |
| 263 | 265 |
| 264 bool hasScrollbar() const { return hasHorizontalScrollbar() || hasVerticalSc
rollbar(); } | 266 bool hasScrollbar() const { return hasHorizontalScrollbar() || hasVerticalSc
rollbar(); } |
| 265 bool hasOverflowControls() const { return hasScrollbar() || scrollCorner() |
| resizer(); } | 267 bool hasOverflowControls() const { return hasScrollbar() || scrollCorner() |
| resizer(); } |
| 266 | 268 |
| 267 LayoutScrollbarPart* scrollCorner() const override { return m_scrollCorner;
} | 269 LayoutScrollbarPart* scrollCorner() const override { return m_scrollCorner;
} |
| 268 | 270 |
| 269 void resize(const PlatformEvent&, const LayoutSize&); | 271 void resize(const PlatformEvent&, const LayoutSize&); |
| 270 IntSize offsetFromResizeCorner(const IntPoint& absolutePoint) const; | 272 IntSize offsetFromResizeCorner(const IntPoint& absolutePoint) const; |
| 271 | 273 |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 #endif | 428 #endif |
| 427 }; | 429 }; |
| 428 | 430 |
| 429 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, ScrollableArea, scrollableArea, | 431 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, ScrollableArea, scrollableArea, |
| 430 scrollableArea->isPaintLayerScrollableArea(), | 432 scrollableArea->isPaintLayerScrollableArea(), |
| 431 scrollableArea.isPaintLayerScrollableArea()); | 433 scrollableArea.isPaintLayerScrollableArea()); |
| 432 | 434 |
| 433 } // namespace blink | 435 } // namespace blink |
| 434 | 436 |
| 435 #endif // LayerScrollableArea_h | 437 #endif // LayerScrollableArea_h |
| OLD | NEW |