Changeset 290625 in webkit
- Timestamp:
- Feb 28, 2022 7:00:08 PM (5 months ago)
- Location:
- trunk
- Files:
-
- 10 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/css3/scroll-snap/scroll-padding-overflow-paging.html (modified) (1 diff)
-
LayoutTests/fast/events/wheelevent-in-scrolling-div.html (modified) (1 diff)
-
LayoutTests/tiled-drawing/scrolling/scroll-snap/scroll-snap-proximity-overflow-rtl-with-keyboard.html (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/RenderLayerScrollableArea.cpp (modified) (1 diff)
-
Source/WebCore/rendering/RenderLayerScrollableArea.h (modified) (1 diff)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/WebKitTestRunner/InjectedBundle/mac/InjectedBundleMac.mm (modified) (1 diff)
-
Tools/WebKitTestRunner/mac/main.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r290624 r290625 1 2022-02-28 Simon Fraser <simon.fraser@apple.com> 2 3 No animation when scroll snap scroller is navigated with the keyboard 4 https://bugs.webkit.org/show_bug.cgi?id=236244 5 6 Reviewed by Tim Horton. 7 8 Turn off the scroll animator for these tests that assume that scrolling is instantaneous. 9 10 * css3/scroll-snap/scroll-padding-overflow-paging.html: 11 * fast/events/wheelevent-in-scrolling-div.html: 12 * tiled-drawing/scrolling/scroll-snap/scroll-snap-proximity-overflow-rtl-with-keyboard.html: 13 1 14 2022-02-28 Matteo Flores <matteo_flores@apple.com> 2 15 -
trunk/LayoutTests/css3/scroll-snap/scroll-padding-overflow-paging.html
r290604 r290625 1 <!DOCTYPE html> 1 <!DOCTYPE html> <!-- webkit-test-runner [ ScrollAnimatorEnabled=false ] --> 2 2 <html> 3 3 <head> -
trunk/LayoutTests/fast/events/wheelevent-in-scrolling-div.html
r290604 r290625 1 <!DOCTYPE html> <!-- webkit-test-runner [ ScrollAnimatorEnabled=false ] --> 1 2 <html> 2 3 <head> -
trunk/LayoutTests/tiled-drawing/scrolling/scroll-snap/scroll-snap-proximity-overflow-rtl-with-keyboard.html
r290604 r290625 1 <!DOCTYPE HTML>1 <!DOCTYPE html> <!-- webkit-test-runner [ ScrollAnimatorEnabled=false ] --> 2 2 <html> 3 3 <head> -
trunk/Source/WebCore/ChangeLog
r290621 r290625 1 2022-02-28 Simon Fraser <simon.fraser@apple.com> 2 3 No animation when scroll snap scroller is navigated with the keyboard 4 https://bugs.webkit.org/show_bug.cgi?id=236244 5 6 Reviewed by Tim Horton. 7 8 Keyboard-driven scrolls in overflow didn't animate, simply because scrollAnimatorEnabled() 9 wasn't implemented for RenderLayerScrollableArea. 10 11 I could not figure out a reliable way to test that we animated the scroll. 12 13 * rendering/RenderLayerScrollableArea.cpp: 14 (WebCore::RenderLayerScrollableArea::scrollAnimatorEnabled const): 15 * rendering/RenderLayerScrollableArea.h: 16 1 17 2022-02-28 Jer Noble <jer.noble@apple.com> 2 18 -
trunk/Source/WebCore/rendering/RenderLayerScrollableArea.cpp
r290604 r290625 1543 1543 } 1544 1544 1545 bool RenderLayerScrollableArea::scrollAnimatorEnabled() const 1546 { 1547 return m_layer.page().settings().scrollAnimatorEnabled(); 1548 } 1549 1545 1550 void RenderLayerScrollableArea::paintOverlayScrollbars(GraphicsContext& context, const LayoutRect& damageRect, OptionSet<PaintBehavior> paintBehavior, RenderObject* subtreePaintRoot) 1546 1551 { -
trunk/Source/WebCore/rendering/RenderLayerScrollableArea.h
r290604 r290625 194 194 bool forceUpdateScrollbarsOnMainThreadForPerformanceTesting() const final; 195 195 bool isScrollSnapInProgress() const final; 196 bool scrollAnimatorEnabled() const final; 196 197 bool mockScrollbarsControllerEnabled() const final; 197 198 void logMockScrollbarsControllerMessage(const String&) const final; -
trunk/Tools/ChangeLog
r290620 r290625 1 2022-02-28 Simon Fraser <simon.fraser@apple.com> 2 3 No animation when scroll snap scroller is navigated with the keyboard 4 https://bugs.webkit.org/show_bug.cgi?id=236244 5 6 Reviewed by Tim Horton. 7 8 In fixing this bug I ran into the issue predicted in https://bugs.webkit.org/show_bug.cgi?id=234456#c6. 9 As a workaround, explicitly set NSScrollAnimationEnabled to NO in both processes. This is a partial revert 10 of r287228 which I tried, and failed to fix via bug 234488. 11 12 * WebKitTestRunner/InjectedBundle/mac/InjectedBundleMac.mm: 13 (WTR::InjectedBundle::platformInitialize): 14 * WebKitTestRunner/mac/main.mm: 15 (setDefaultsToConsistentValuesForTesting): 16 1 17 2022-02-28 Wenson Hsieh <wenson_hsieh@apple.com> 2 18 -
trunk/Tools/WebKitTestRunner/InjectedBundle/mac/InjectedBundleMac.mm
r287228 r290625 54 54 @"AppleOtherHighlightColor": @"0.500000 0.500000 0.500000", 55 55 @"NSOverlayScrollersEnabled": @NO, 56 @"NSScrollAnimationEnabled" : @NO, 56 57 @"AppleShowScrollBars": @"Always", 57 58 @"NSButtonAnimationsEnabled": @NO, // Ideally, we should find a way to test animations, but for now, make sure that the dumped snapshot matches actual state. -
trunk/Tools/WebKitTestRunner/mac/main.mm
r287228 r290625 44 44 @"com.apple.trackpad.forceClick": @1, 45 45 @"NSOverlayScrollersEnabled": @NO, 46 @"NSScrollAnimationEnabled" : @NO, 46 47 @"AppleShowScrollBars": @"Always", 47 48 @"WebKit2UseRemoteLayerTreeDrawingArea": @NO,
Note: See TracChangeset
for help on using the changeset viewer.