| 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 // Returns true if a layout object was marked for layout. In such a case, th
e layout scope's root | 256 void updateAfterLayout(); |
| 257 // should be laid out again. | |
| 258 bool updateAfterLayout(SubtreeLayoutScope* = nullptr); | |
| 259 void updateAfterStyleChange(const ComputedStyle*); | 257 void updateAfterStyleChange(const ComputedStyle*); |
| 260 void updateAfterOverflowRecalc(); | 258 void updateAfterOverflowRecalc(); |
| 261 | 259 |
| 262 bool updateAfterCompositingChange() override; | 260 bool updateAfterCompositingChange() override; |
| 263 | 261 |
| 264 bool hasScrollbar() const { return hasHorizontalScrollbar() || hasVerticalSc
rollbar(); } | 262 bool hasScrollbar() const { return hasHorizontalScrollbar() || hasVerticalSc
rollbar(); } |
| 265 bool hasOverflowControls() const { return hasScrollbar() || scrollCorner() |
| resizer(); } | 263 bool hasOverflowControls() const { return hasScrollbar() || scrollCorner() |
| resizer(); } |
| 266 | 264 |
| 267 LayoutScrollbarPart* scrollCorner() const override { return m_scrollCorner;
} | 265 LayoutScrollbarPart* scrollCorner() const override { return m_scrollCorner;
} |
| 268 | 266 |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 #endif | 424 #endif |
| 427 }; | 425 }; |
| 428 | 426 |
| 429 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, ScrollableArea, scrollableArea, | 427 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, ScrollableArea, scrollableArea, |
| 430 scrollableArea->isPaintLayerScrollableArea(), | 428 scrollableArea->isPaintLayerScrollableArea(), |
| 431 scrollableArea.isPaintLayerScrollableArea()); | 429 scrollableArea.isPaintLayerScrollableArea()); |
| 432 | 430 |
| 433 } // namespace blink | 431 } // namespace blink |
| 434 | 432 |
| 435 #endif // LayerScrollableArea_h | 433 #endif // LayerScrollableArea_h |
| OLD | NEW |