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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
246 void scrollToYOffset(double y, ScrollOffsetClamping clamp = ScrollOffsetUncl amped, ScrollBehavior scrollBehavior = ScrollBehaviorInstant) | 246 void scrollToYOffset(double y, ScrollOffsetClamping clamp = ScrollOffsetUncl amped, ScrollBehavior scrollBehavior = ScrollBehaviorInstant) |
247 { | 247 { |
248 scrollToOffset(DoubleSize(scrollXOffset(), y), clamp, scrollBehavior); | 248 scrollToOffset(DoubleSize(scrollXOffset(), y), clamp, scrollBehavior); |
249 } | 249 } |
250 | 250 |
251 void setScrollPosition(const DoublePoint& position, ScrollType scrollType, S crollBehavior scrollBehavior = ScrollBehaviorInstant) override | 251 void setScrollPosition(const DoublePoint& position, ScrollType scrollType, S crollBehavior scrollBehavior = ScrollBehaviorInstant) override |
252 { | 252 { |
253 scrollToOffset(toDoubleSize(position), ScrollOffsetClamped, scrollBehavi or, scrollType); | 253 scrollToOffset(toDoubleSize(position), ScrollOffsetClamped, scrollBehavi or, scrollType); |
254 } | 254 } |
255 | 255 |
256 void updateAfterLayout(); | 256 bool updateAfterLayout(SubtreeLayoutScope* = nullptr); |
skobes
2016/02/25 22:09:31
Can you add a comment here explaining the return v
| |
257 void updateAfterStyleChange(const ComputedStyle*); | 257 void updateAfterStyleChange(const ComputedStyle*); |
258 void updateAfterOverflowRecalc(); | 258 void updateAfterOverflowRecalc(); |
259 | 259 |
260 bool updateAfterCompositingChange() override; | 260 bool updateAfterCompositingChange() override; |
261 | 261 |
262 bool hasScrollbar() const { return hasHorizontalScrollbar() || hasVerticalSc rollbar(); } | 262 bool hasScrollbar() const { return hasHorizontalScrollbar() || hasVerticalSc rollbar(); } |
263 bool hasOverflowControls() const { return hasScrollbar() || scrollCorner() | | resizer(); } | 263 bool hasOverflowControls() const { return hasScrollbar() || scrollCorner() | | resizer(); } |
264 | 264 |
265 LayoutScrollbarPart* scrollCorner() const override { return m_scrollCorner; } | 265 LayoutScrollbarPart* scrollCorner() const override { return m_scrollCorner; } |
266 | 266 |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
425 #endif | 425 #endif |
426 }; | 426 }; |
427 | 427 |
428 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, ScrollableArea, scrollableArea, | 428 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, ScrollableArea, scrollableArea, |
429 scrollableArea->isPaintLayerScrollableArea(), | 429 scrollableArea->isPaintLayerScrollableArea(), |
430 scrollableArea.isPaintLayerScrollableArea()); | 430 scrollableArea.isPaintLayerScrollableArea()); |
431 | 431 |
432 } // namespace blink | 432 } // namespace blink |
433 | 433 |
434 #endif // LayerScrollableArea_h | 434 #endif // LayerScrollableArea_h |
OLD | NEW |