Changeset 283360 in webkit
- Timestamp:
- Oct 1, 2021, 2:10:30 AM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
page/scrolling/ScrollSnapOffsetsInfo.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r283359 r283360 1 2021-09-30 Sergio Villar Senin <svillar@igalia.com> 2 3 Clamp negative offset values 4 https://bugs.webkit.org/show_bug.cgi?id=230707 5 6 Reviewed by Simon Fraser. 7 8 ScrollOffsets are the values used by scrollbars and thus should be always positive. Under some circumstances 9 the value returned by maximumScrollOffset()|minimumScrollOffset() could be negative. For those cases we should 10 just clamp them to zero. 11 12 * page/scrolling/ScrollSnapOffsetsInfo.cpp: 13 (WebCore::updateSnapOffsetsForScrollableArea): 14 1 15 2021-10-01 Kevin Turner <kevin_turner@apple.com> 2 16 -
trunk/Source/WebCore/page/scrolling/ScrollSnapOffsetsInfo.cpp
r283100 r283360 306 306 307 307 auto maxScrollOffset = scrollableArea.maximumScrollOffset(); 308 maxScrollOffset.clampNegativeToZero(); 308 309 auto scrollPosition = LayoutPoint { scrollableArea.scrollPosition() }; 309 310
Note:
See TracChangeset
for help on using the changeset viewer.