| 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 // 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. |
| 258 bool updateAfterLayout(SubtreeLayoutScope* = nullptr); |
| 257 void updateAfterStyleChange(const ComputedStyle*); | 259 void updateAfterStyleChange(const ComputedStyle*); |
| 258 void updateAfterOverflowRecalc(); | 260 void updateAfterOverflowRecalc(); |
| 259 | 261 |
| 260 bool updateAfterCompositingChange() override; | 262 bool updateAfterCompositingChange() override; |
| 261 | 263 |
| 262 bool hasScrollbar() const { return hasHorizontalScrollbar() || hasVerticalSc
rollbar(); } | 264 bool hasScrollbar() const { return hasHorizontalScrollbar() || hasVerticalSc
rollbar(); } |
| 263 bool hasOverflowControls() const { return hasScrollbar() || scrollCorner() |
| resizer(); } | 265 bool hasOverflowControls() const { return hasScrollbar() || scrollCorner() |
| resizer(); } |
| 264 | 266 |
| 265 LayoutScrollbarPart* scrollCorner() const override { return m_scrollCorner;
} | 267 LayoutScrollbarPart* scrollCorner() const override { return m_scrollCorner;
} |
| 266 | 268 |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 #endif | 426 #endif |
| 425 }; | 427 }; |
| 426 | 428 |
| 427 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, ScrollableArea, scrollableArea, | 429 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, ScrollableArea, scrollableArea, |
| 428 scrollableArea->isPaintLayerScrollableArea(), | 430 scrollableArea->isPaintLayerScrollableArea(), |
| 429 scrollableArea.isPaintLayerScrollableArea()); | 431 scrollableArea.isPaintLayerScrollableArea()); |
| 430 | 432 |
| 431 } // namespace blink | 433 } // namespace blink |
| 432 | 434 |
| 433 #endif // LayerScrollableArea_h | 435 #endif // LayerScrollableArea_h |
| OLD | NEW |