| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 void scrollToYOffset(double y, ScrollOffsetClamping clamp = ScrollOffsetUncl
amped, ScrollBehavior scrollBehavior = ScrollBehaviorInstant) | 142 void scrollToYOffset(double y, ScrollOffsetClamping clamp = ScrollOffsetUncl
amped, ScrollBehavior scrollBehavior = ScrollBehaviorInstant) |
| 143 { | 143 { |
| 144 scrollToOffset(DoubleSize(scrollXOffset(), y), clamp, scrollBehavior); | 144 scrollToOffset(DoubleSize(scrollXOffset(), y), clamp, scrollBehavior); |
| 145 } | 145 } |
| 146 | 146 |
| 147 void setScrollPosition(const DoublePoint& position, ScrollType scrollType, S
crollBehavior scrollBehavior = ScrollBehaviorInstant) override | 147 void setScrollPosition(const DoublePoint& position, ScrollType scrollType, S
crollBehavior scrollBehavior = ScrollBehaviorInstant) override |
| 148 { | 148 { |
| 149 scrollToOffset(toDoubleSize(position), ScrollOffsetClamped, scrollBehavi
or); | 149 scrollToOffset(toDoubleSize(position), ScrollOffsetClamped, scrollBehavi
or); |
| 150 } | 150 } |
| 151 | 151 |
| 152 void updateScrollDimensions(DoubleSize& scrollOffset, bool& autoHorizontalSc
rollBarChanged, bool& autoVerticalScrollBarChanged); |
| 153 void finalizeScrollDimensions(const DoubleSize& originalScrollOffset, bool a
utoHorizontalScrollBarChanged, bool autoVerticalScrollBarChanged); |
| 154 |
| 152 void updateAfterLayout(); | 155 void updateAfterLayout(); |
| 153 void updateAfterStyleChange(const ComputedStyle*); | 156 void updateAfterStyleChange(const ComputedStyle*); |
| 154 void updateAfterOverflowRecalc(); | 157 void updateAfterOverflowRecalc(); |
| 155 | 158 |
| 156 bool updateAfterCompositingChange() override; | 159 bool updateAfterCompositingChange() override; |
| 157 | 160 |
| 158 bool hasScrollbar() const { return m_hBar || m_vBar; } | 161 bool hasScrollbar() const { return m_hBar || m_vBar; } |
| 159 | 162 |
| 160 LayoutScrollbarPart* scrollCorner() const { return m_scrollCorner; } | 163 LayoutScrollbarPart* scrollCorner() const { return m_scrollCorner; } |
| 161 | 164 |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 LayoutScrollbarPart* m_resizer; | 305 LayoutScrollbarPart* m_resizer; |
| 303 | 306 |
| 304 #if ENABLE(ASSERT) | 307 #if ENABLE(ASSERT) |
| 305 bool m_hasBeenDisposed; | 308 bool m_hasBeenDisposed; |
| 306 #endif | 309 #endif |
| 307 }; | 310 }; |
| 308 | 311 |
| 309 } // namespace blink | 312 } // namespace blink |
| 310 | 313 |
| 311 #endif // LayerScrollableArea_h | 314 #endif // LayerScrollableArea_h |
| OLD | NEW |