Changeset 254839 in webkit
- Timestamp:
- Jan 20, 2020 5:35:42 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 47 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r254835 r254839 1 2020-01-20 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 Unreviewed, rolling out r254807. 4 5 Breaks Apple internal builds. 6 7 Reverted changeset: 8 9 "Add support for scroll behavior relies on ScrollAnimation of 10 the Web process" 11 https://bugs.webkit.org/show_bug.cgi?id=204882 12 https://trac.webkit.org/changeset/254807 13 1 14 2020-01-20 Devin Rousso <drousso@apple.com> 2 15 -
trunk/LayoutTests/imported/w3c/ChangeLog
r254821 r254839 1 2020-01-20 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 Unreviewed, rolling out r254807. 4 5 Breaks Apple internal builds. 6 7 Reverted changeset: 8 9 "Add support for scroll behavior relies on ScrollAnimation of 10 the Web process" 11 https://bugs.webkit.org/show_bug.cgi?id=204882 12 https://trac.webkit.org/changeset/254807 13 1 14 2020-01-20 Rob Buis <rbuis@igalia.com> 2 15 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/scroll-behavior-default-css-expected.txt
r254807 r254839 1 1 2 2 PASS Instant scrolling of an element with default scroll-behavior 3 PASS Smooth scrolling of an element with default scroll-behavior 3 FAIL Smooth scrolling of an element with default scroll-behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 4 4 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/scroll-behavior-default-css.html
r254807 r254839 1 <!DOCTYPE html> <!-- webkit-test-runner [ experimental:CSSOMViewSmoothScrollingEnabled=true ] -->1 <!DOCTYPE html> 2 2 <title>Testing default value of scroll-behavior</title> 3 3 <meta name="timeout" content="long"/> -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/scroll-behavior-element-expected.txt
r254807 r254839 3 3 PASS Element with auto scroll-behavior ; scroll() with auto behavior 4 4 PASS Element with auto scroll-behavior ; scroll() with instant behavior 5 PASS Element with auto scroll-behavior ; scroll() with smooth behavior 6 PASS Element with smooth scroll-behavior ; scroll() with default behavior 7 PASS Element with smooth scroll-behavior ; scroll() with auto behavior 5 FAIL Element with auto scroll-behavior ; scroll() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 6 FAIL Element with smooth scroll-behavior ; scroll() with default behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 7 FAIL Element with smooth scroll-behavior ; scroll() with auto behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 8 8 PASS Element with smooth scroll-behavior ; scroll() with instant behavior 9 PASS Element with smooth scroll-behavior ; scroll() with smooth behavior 9 FAIL Element with smooth scroll-behavior ; scroll() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 10 10 PASS Element with auto scroll-behavior ; scrollTo() with default behavior 11 11 PASS Element with auto scroll-behavior ; scrollTo() with auto behavior 12 12 PASS Element with auto scroll-behavior ; scrollTo() with instant behavior 13 PASS Element with auto scroll-behavior ; scrollTo() with smooth behavior 14 PASS Element with smooth scroll-behavior ; scrollTo() with default behavior 15 PASS Element with smooth scroll-behavior ; scrollTo() with auto behavior 13 FAIL Element with auto scroll-behavior ; scrollTo() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 14 FAIL Element with smooth scroll-behavior ; scrollTo() with default behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 15 FAIL Element with smooth scroll-behavior ; scrollTo() with auto behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 16 16 PASS Element with smooth scroll-behavior ; scrollTo() with instant behavior 17 PASS Element with smooth scroll-behavior ; scrollTo() with smooth behavior 17 FAIL Element with smooth scroll-behavior ; scrollTo() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 18 18 PASS Element with auto scroll-behavior ; scrollBy() with default behavior 19 19 PASS Element with auto scroll-behavior ; scrollBy() with auto behavior 20 20 PASS Element with auto scroll-behavior ; scrollBy() with instant behavior 21 PASS Element with auto scroll-behavior ; scrollBy() with smooth behavior 22 PASS Element with smooth scroll-behavior ; scrollBy() with default behavior 23 PASS Element with smooth scroll-behavior ; scrollBy() with auto behavior 21 FAIL Element with auto scroll-behavior ; scrollBy() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 22 FAIL Element with smooth scroll-behavior ; scrollBy() with default behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 23 FAIL Element with smooth scroll-behavior ; scrollBy() with auto behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 24 24 PASS Element with smooth scroll-behavior ; scrollBy() with instant behavior 25 PASS Element with smooth scroll-behavior ; scrollBy() with smooth behavior 25 FAIL Element with smooth scroll-behavior ; scrollBy() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 26 26 PASS Element with auto scroll-behavior ; scrollIntoView() with default behavior 27 27 PASS Element with auto scroll-behavior ; scrollIntoView() with auto behavior 28 28 PASS Element with auto scroll-behavior ; scrollIntoView() with instant behavior 29 PASS Element with auto scroll-behavior ; scrollIntoView() with smooth behavior 30 PASS Element with smooth scroll-behavior ; scrollIntoView() with default behavior 31 PASS Element with smooth scroll-behavior ; scrollIntoView() with auto behavior 29 FAIL Element with auto scroll-behavior ; scrollIntoView() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 30 FAIL Element with smooth scroll-behavior ; scrollIntoView() with default behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 31 FAIL Element with smooth scroll-behavior ; scrollIntoView() with auto behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 32 32 PASS Element with smooth scroll-behavior ; scrollIntoView() with instant behavior 33 PASS Element with smooth scroll-behavior ; scrollIntoView() with smooth behavior 33 FAIL Element with smooth scroll-behavior ; scrollIntoView() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 34 34 PASS Set scrollLeft to element with auto scroll-behavior 35 PASS Set scrollLeft to element with smooth scroll-behavior 35 FAIL Set scrollLeft to element with smooth scroll-behavior assert_less_than: Shouldn't set scroll attribute immediately expected a number less than 500 but got 500 36 36 PASS Set scrollTop to element with auto scroll-behavior 37 PASS Set scrollTop to element with smooth scroll-behavior 37 FAIL Set scrollTop to element with smooth scroll-behavior assert_less_than: Shouldn't set scroll attribute immediately expected a number less than 250 but got 250 38 38 PASS Aborting an ongoing smooth scrolling on an element with another smooth scrolling 39 39 PASS Aborting an ongoing smooth scrolling on an element with an instant scrolling -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/scroll-behavior-element.html
r254807 r254839 1 <!DOCTYPE html> <!-- webkit-test-runner [ experimental:CSSOMViewSmoothScrollingEnabled=true ] -->1 <!DOCTYPE html> 2 2 <title>Testing scrollOptions' behavior for Element.scroll* and scroll-behavior on an element</title> 3 3 <meta name="timeout" content="long"/> -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/scroll-behavior-main-frame-root-expected.txt
r254807 r254839 4 4 PASS Main frame with auto scroll-behavior ; scroll() with auto behavior 5 5 PASS Main frame with auto scroll-behavior ; scroll() with instant behavior 6 PASS Main frame with auto scroll-behavior ; scroll() with smooth behavior 7 PASS Main frame with smooth scroll-behavior ; scroll() with default behavior 8 PASS Main frame with smooth scroll-behavior ; scroll() with auto behavior 6 FAIL Main frame with auto scroll-behavior ; scroll() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 2430 but got 2430 7 FAIL Main frame with smooth scroll-behavior ; scroll() with default behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 2430 but got 2430 8 FAIL Main frame with smooth scroll-behavior ; scroll() with auto behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 2430 but got 2430 9 9 PASS Main frame with smooth scroll-behavior ; scroll() with instant behavior 10 PASS Main frame with smooth scroll-behavior ; scroll() with smooth behavior 10 FAIL Main frame with smooth scroll-behavior ; scroll() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 2430 but got 2430 11 11 PASS Main frame with auto scroll-behavior ; scrollTo() with default behavior 12 12 PASS Main frame with auto scroll-behavior ; scrollTo() with auto behavior 13 13 PASS Main frame with auto scroll-behavior ; scrollTo() with instant behavior 14 PASS Main frame with auto scroll-behavior ; scrollTo() with smooth behavior 15 PASS Main frame with smooth scroll-behavior ; scrollTo() with default behavior 16 PASS Main frame with smooth scroll-behavior ; scrollTo() with auto behavior 14 FAIL Main frame with auto scroll-behavior ; scrollTo() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 2430 but got 2430 15 FAIL Main frame with smooth scroll-behavior ; scrollTo() with default behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 2430 but got 2430 16 FAIL Main frame with smooth scroll-behavior ; scrollTo() with auto behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 2430 but got 2430 17 17 PASS Main frame with smooth scroll-behavior ; scrollTo() with instant behavior 18 PASS Main frame with smooth scroll-behavior ; scrollTo() with smooth behavior 18 FAIL Main frame with smooth scroll-behavior ; scrollTo() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 2430 but got 2430 19 19 PASS Main frame with auto scroll-behavior ; scrollBy() with default behavior 20 20 PASS Main frame with auto scroll-behavior ; scrollBy() with auto behavior 21 21 PASS Main frame with auto scroll-behavior ; scrollBy() with instant behavior 22 PASS Main frame with auto scroll-behavior ; scrollBy() with smooth behavior 23 PASS Main frame with smooth scroll-behavior ; scrollBy() with default behavior 24 PASS Main frame with smooth scroll-behavior ; scrollBy() with auto behavior 22 FAIL Main frame with auto scroll-behavior ; scrollBy() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 2430 but got 2430 23 FAIL Main frame with smooth scroll-behavior ; scrollBy() with default behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 2430 but got 2430 24 FAIL Main frame with smooth scroll-behavior ; scrollBy() with auto behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 2430 but got 2430 25 25 PASS Main frame with smooth scroll-behavior ; scrollBy() with instant behavior 26 PASS Main frame with smooth scroll-behavior ; scrollBy() with smooth behavior 26 FAIL Main frame with smooth scroll-behavior ; scrollBy() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 2430 but got 2430 27 27 PASS Main frame with auto scroll-behavior ; scrollIntoView() with default behavior 28 28 PASS Main frame with auto scroll-behavior ; scrollIntoView() with auto behavior 29 29 PASS Main frame with auto scroll-behavior ; scrollIntoView() with instant behavior 30 PASS Main frame with auto scroll-behavior ; scrollIntoView() with smooth behavior 31 PASS Main frame with smooth scroll-behavior ; scrollIntoView() with default behavior 32 PASS Main frame with smooth scroll-behavior ; scrollIntoView() with auto behavior 30 FAIL Main frame with auto scroll-behavior ; scrollIntoView() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 2430 but got 2430 31 FAIL Main frame with smooth scroll-behavior ; scrollIntoView() with default behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 2430 but got 2430 32 FAIL Main frame with smooth scroll-behavior ; scrollIntoView() with auto behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 2430 but got 2430 33 33 PASS Main frame with smooth scroll-behavior ; scrollIntoView() with instant behavior 34 PASS Main frame with smooth scroll-behavior ; scrollIntoView() with smooth behavior 34 FAIL Main frame with smooth scroll-behavior ; scrollIntoView() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 2430 but got 2430 35 35 PASS Set scrollLeft to frame with auto scroll-behavior 36 PASS Set scrollLeft to frame with smooth scroll-behavior 36 FAIL Set scrollLeft to frame with smooth scroll-behavior assert_less_than: Shouldn't set scroll attribute immediately expected a number less than 2430 but got 2430 37 37 PASS Set scrollTop to frame with auto scroll-behavior 38 PASS Set scrollTop to frame with smooth scroll-behavior 38 FAIL Set scrollTop to frame with smooth scroll-behavior assert_less_than: Shouldn't set scroll attribute immediately expected a number less than 2480 but got 2480 39 39 PASS Aborting an ongoing smooth scrolling on the main frame with another smooth scrolling 40 40 PASS Aborting an ongoing smooth scrolling on the main frame with an instant scrolling -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/scroll-behavior-main-frame-root.html
r254807 r254839 1 <!DOCTYPE html> <!-- webkit-test-runner [ experimental:CSSOMViewSmoothScrollingEnabled=true ] -->1 <!DOCTYPE html> 2 2 <title>Testing scrollOptions' behavior for Element.scroll* and scroll-behavior on the root of the main frame</title> 3 3 <meta name="timeout" content="long"/> -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/scroll-behavior-main-frame-window-expected.txt
r254807 r254839 4 4 PASS Main frame with auto scroll-behavior ; scroll() with auto behavior 5 5 PASS Main frame with auto scroll-behavior ; scroll() with instant behavior 6 PASS Main frame with auto scroll-behavior ; scroll() with smooth behavior 7 PASS Main frame with smooth scroll-behavior ; scroll() with default behavior 8 PASS Main frame with smooth scroll-behavior ; scroll() with auto behavior 6 FAIL Main frame with auto scroll-behavior ; scroll() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 2430 but got 2430 7 FAIL Main frame with smooth scroll-behavior ; scroll() with default behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 2430 but got 2430 8 FAIL Main frame with smooth scroll-behavior ; scroll() with auto behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 2430 but got 2430 9 9 PASS Main frame with smooth scroll-behavior ; scroll() with instant behavior 10 PASS Main frame with smooth scroll-behavior ; scroll() with smooth behavior 10 FAIL Main frame with smooth scroll-behavior ; scroll() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 2430 but got 2430 11 11 PASS Main frame with auto scroll-behavior ; scrollTo() with default behavior 12 12 PASS Main frame with auto scroll-behavior ; scrollTo() with auto behavior 13 13 PASS Main frame with auto scroll-behavior ; scrollTo() with instant behavior 14 PASS Main frame with auto scroll-behavior ; scrollTo() with smooth behavior 15 PASS Main frame with smooth scroll-behavior ; scrollTo() with default behavior 16 PASS Main frame with smooth scroll-behavior ; scrollTo() with auto behavior 14 FAIL Main frame with auto scroll-behavior ; scrollTo() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 2430 but got 2430 15 FAIL Main frame with smooth scroll-behavior ; scrollTo() with default behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 2430 but got 2430 16 FAIL Main frame with smooth scroll-behavior ; scrollTo() with auto behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 2430 but got 2430 17 17 PASS Main frame with smooth scroll-behavior ; scrollTo() with instant behavior 18 PASS Main frame with smooth scroll-behavior ; scrollTo() with smooth behavior 18 FAIL Main frame with smooth scroll-behavior ; scrollTo() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 2430 but got 2430 19 19 PASS Main frame with auto scroll-behavior ; scrollBy() with default behavior 20 20 PASS Main frame with auto scroll-behavior ; scrollBy() with auto behavior 21 21 PASS Main frame with auto scroll-behavior ; scrollBy() with instant behavior 22 PASS Main frame with auto scroll-behavior ; scrollBy() with smooth behavior 23 PASS Main frame with smooth scroll-behavior ; scrollBy() with default behavior 24 PASS Main frame with smooth scroll-behavior ; scrollBy() with auto behavior 22 FAIL Main frame with auto scroll-behavior ; scrollBy() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 2430 but got 2430 23 FAIL Main frame with smooth scroll-behavior ; scrollBy() with default behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 2430 but got 2430 24 FAIL Main frame with smooth scroll-behavior ; scrollBy() with auto behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 2430 but got 2430 25 25 PASS Main frame with smooth scroll-behavior ; scrollBy() with instant behavior 26 PASS Main frame with smooth scroll-behavior ; scrollBy() with smooth behavior 26 FAIL Main frame with smooth scroll-behavior ; scrollBy() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 2430 but got 2430 27 27 PASS Aborting an ongoing smooth scrolling on the main frame with another smooth scrolling 28 28 PASS Aborting an ongoing smooth scrolling on the main frame with an instant scrolling -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/scroll-behavior-main-frame-window.html
r254807 r254839 1 <!DOCTYPE html> <!-- webkit-test-runner [ experimental:CSSOMViewSmoothScrollingEnabled=true ] -->1 <!DOCTYPE html> 2 2 <title>Testing scrollOptions' behavior for Element.scroll* on the window of the main frame</title> 3 3 <meta name="timeout" content="long"/> -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/scroll-behavior-scrollintoview-nested-expected.txt
r254807 r254839 1 1 2 PASS scrollIntoView with nested elements with different scroll-behavior 2 FAIL scrollIntoView with nested elements with different scroll-behavior assert_less_than: Element with smooth behavior should not scroll immediately expected a number less than 500 but got 500 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/scroll-behavior-scrollintoview-nested.html
r254807 r254839 1 <!DOCTYPE html> <!-- webkit-test-runner [ experimental:CSSOMViewSmoothScrollingEnabled=true ] -->1 <!DOCTYPE html> 2 2 <title>Testing scrollOptions' behavior with scrollIntoView for nested scrolling nodes</title> 3 3 <meta name="timeout" content="long"/> -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/scroll-behavior-smooth-positions.html
r254807 r254839 1 <!DOCTYPE html> <!-- webkit-test-runner [ experimental:CSSOMViewSmoothScrollingEnabled=true ] -->1 <!DOCTYPE html> 2 2 <title>Testing scroll positions when scrolling an element with smooth behavior</title> 3 3 <meta name="timeout" content="long"/> -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/scroll-behavior-subframe-root-expected.txt
r254807 r254839 4 4 PASS Subframe with auto scroll-behavior ; scroll() with auto behavior 5 5 PASS Subframe with auto scroll-behavior ; scroll() with instant behavior 6 PASS Subframe with auto scroll-behavior ; scroll() with smooth behavior 7 PASS Subframe with smooth scroll-behavior ; scroll() with default behavior 8 PASS Subframe with smooth scroll-behavior ; scroll() with auto behavior 6 FAIL Subframe with auto scroll-behavior ; scroll() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 7 FAIL Subframe with smooth scroll-behavior ; scroll() with default behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 8 FAIL Subframe with smooth scroll-behavior ; scroll() with auto behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 9 9 PASS Subframe with smooth scroll-behavior ; scroll() with instant behavior 10 PASS Subframe with smooth scroll-behavior ; scroll() with smooth behavior 10 FAIL Subframe with smooth scroll-behavior ; scroll() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 11 11 PASS Subframe with auto scroll-behavior ; scrollTo() with default behavior 12 12 PASS Subframe with auto scroll-behavior ; scrollTo() with auto behavior 13 13 PASS Subframe with auto scroll-behavior ; scrollTo() with instant behavior 14 PASS Subframe with auto scroll-behavior ; scrollTo() with smooth behavior 15 PASS Subframe with smooth scroll-behavior ; scrollTo() with default behavior 16 PASS Subframe with smooth scroll-behavior ; scrollTo() with auto behavior 14 FAIL Subframe with auto scroll-behavior ; scrollTo() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 15 FAIL Subframe with smooth scroll-behavior ; scrollTo() with default behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 16 FAIL Subframe with smooth scroll-behavior ; scrollTo() with auto behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 17 17 PASS Subframe with smooth scroll-behavior ; scrollTo() with instant behavior 18 PASS Subframe with smooth scroll-behavior ; scrollTo() with smooth behavior 18 FAIL Subframe with smooth scroll-behavior ; scrollTo() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 19 19 PASS Subframe with auto scroll-behavior ; scrollBy() with default behavior 20 20 PASS Subframe with auto scroll-behavior ; scrollBy() with auto behavior 21 21 PASS Subframe with auto scroll-behavior ; scrollBy() with instant behavior 22 PASS Subframe with auto scroll-behavior ; scrollBy() with smooth behavior 23 PASS Subframe with smooth scroll-behavior ; scrollBy() with default behavior 24 PASS Subframe with smooth scroll-behavior ; scrollBy() with auto behavior 22 FAIL Subframe with auto scroll-behavior ; scrollBy() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 23 FAIL Subframe with smooth scroll-behavior ; scrollBy() with default behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 24 FAIL Subframe with smooth scroll-behavior ; scrollBy() with auto behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 25 25 PASS Subframe with smooth scroll-behavior ; scrollBy() with instant behavior 26 PASS Subframe with smooth scroll-behavior ; scrollBy() with smooth behavior 26 FAIL Subframe with smooth scroll-behavior ; scrollBy() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 27 27 PASS Subframe with auto scroll-behavior ; scrollIntoView() with default behavior 28 28 PASS Subframe with auto scroll-behavior ; scrollIntoView() with auto behavior 29 29 PASS Subframe with auto scroll-behavior ; scrollIntoView() with instant behavior 30 PASS Subframe with auto scroll-behavior ; scrollIntoView() with smooth behavior 31 PASS Subframe with smooth scroll-behavior ; scrollIntoView() with default behavior 32 PASS Subframe with smooth scroll-behavior ; scrollIntoView() with auto behavior 30 FAIL Subframe with auto scroll-behavior ; scrollIntoView() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 31 FAIL Subframe with smooth scroll-behavior ; scrollIntoView() with default behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 32 FAIL Subframe with smooth scroll-behavior ; scrollIntoView() with auto behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 33 33 PASS Subframe with smooth scroll-behavior ; scrollIntoView() with instant behavior 34 PASS Subframe with smooth scroll-behavior ; scrollIntoView() with smooth behavior 34 FAIL Subframe with smooth scroll-behavior ; scrollIntoView() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 35 35 PASS Subframe setting scrollLeft with auto scroll-behavior 36 PASS Subframe setting scrollLeft with smooth scroll-behavior 36 FAIL Subframe setting scrollLeft with smooth scroll-behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 37 37 PASS Subframe setting scrollTop with auto scroll-behavior 38 PASS Subframe setting scrollTop with smooth scroll-behavior 38 FAIL Subframe setting scrollTop with smooth scroll-behavior assert_less_than: Should not set scrollTop immediately expected a number less than 250 but got 250 39 39 PASS Aborting an ongoing smooth scrolling on a subframe with another smooth scrolling 40 40 PASS Aborting an ongoing smooth scrolling on a subframe with an instant scrolling -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/scroll-behavior-subframe-root.html
r254807 r254839 1 <!DOCTYPE html> <!-- webkit-test-runner [ experimental:CSSOMViewSmoothScrollingEnabled=true ] -->1 <!DOCTYPE html> 2 2 <title>Testing scrollOptions' behavior for Element.scroll* and scroll-behavior on the root of a subframe</title> 3 3 <meta name="timeout" content="long"/> -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/scroll-behavior-subframe-window-expected.txt
r254807 r254839 4 4 PASS Main frame with auto scroll-behavior ; scroll() with auto behavior 5 5 PASS Main frame with auto scroll-behavior ; scroll() with instant behavior 6 PASS Main frame with auto scroll-behavior ; scroll() with smooth behavior 7 PASS Main frame with smooth scroll-behavior ; scroll() with default behavior 8 PASS Main frame with smooth scroll-behavior ; scroll() with auto behavior 6 FAIL Main frame with auto scroll-behavior ; scroll() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 7 FAIL Main frame with smooth scroll-behavior ; scroll() with default behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 8 FAIL Main frame with smooth scroll-behavior ; scroll() with auto behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 9 9 PASS Main frame with smooth scroll-behavior ; scroll() with instant behavior 10 PASS Main frame with smooth scroll-behavior ; scroll() with smooth behavior 10 FAIL Main frame with smooth scroll-behavior ; scroll() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 11 11 PASS Main frame with auto scroll-behavior ; scrollTo() with default behavior 12 12 PASS Main frame with auto scroll-behavior ; scrollTo() with auto behavior 13 13 PASS Main frame with auto scroll-behavior ; scrollTo() with instant behavior 14 PASS Main frame with auto scroll-behavior ; scrollTo() with smooth behavior 15 PASS Main frame with smooth scroll-behavior ; scrollTo() with default behavior 16 PASS Main frame with smooth scroll-behavior ; scrollTo() with auto behavior 14 FAIL Main frame with auto scroll-behavior ; scrollTo() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 15 FAIL Main frame with smooth scroll-behavior ; scrollTo() with default behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 16 FAIL Main frame with smooth scroll-behavior ; scrollTo() with auto behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 17 17 PASS Main frame with smooth scroll-behavior ; scrollTo() with instant behavior 18 PASS Main frame with smooth scroll-behavior ; scrollTo() with smooth behavior 18 FAIL Main frame with smooth scroll-behavior ; scrollTo() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 19 19 PASS Main frame with auto scroll-behavior ; scrollBy() with default behavior 20 20 PASS Main frame with auto scroll-behavior ; scrollBy() with auto behavior 21 21 PASS Main frame with auto scroll-behavior ; scrollBy() with instant behavior 22 PASS Main frame with auto scroll-behavior ; scrollBy() with smooth behavior 23 PASS Main frame with smooth scroll-behavior ; scrollBy() with default behavior 24 PASS Main frame with smooth scroll-behavior ; scrollBy() with auto behavior 22 FAIL Main frame with auto scroll-behavior ; scrollBy() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 23 FAIL Main frame with smooth scroll-behavior ; scrollBy() with default behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 24 FAIL Main frame with smooth scroll-behavior ; scrollBy() with auto behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 25 25 PASS Main frame with smooth scroll-behavior ; scrollBy() with instant behavior 26 PASS Main frame with smooth scroll-behavior ; scrollBy() with smooth behavior 26 FAIL Main frame with smooth scroll-behavior ; scrollBy() with smooth behavior assert_less_than: Should not set scrollLeft immediately expected a number less than 500 but got 500 27 27 PASS Aborting an ongoing smooth scrolling on the main frame with another smooth scrolling 28 28 PASS Aborting an ongoing smooth scrolling on the main frame with an instant scrolling -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/scroll-behavior-subframe-window.html
r254807 r254839 1 <!DOCTYPE html> <!-- webkit-test-runner [ experimental:CSSOMViewSmoothScrollingEnabled=true ] -->1 <!DOCTYPE html> 2 2 <title>Testing scrollOptions' behavior for Element.scroll* and scroll-behavior on the root of a subframe</title> 3 3 <meta name="timeout" content="long"/> -
trunk/LayoutTests/platform/mac-wk1/TestExpectations
r254807 r254839 750 750 webkit.org/b/188070 imported/w3c/web-platform-tests/streams/piping/error-propagation-backward.html [ Pass Failure ] 751 751 752 # Tests for smooth scroll behavior do not all work and they are slow, so let's just skip them.753 webkit.org/b/191357 imported/w3c/web-platform-tests/css/cssom-view/scroll-behavior-main-frame-root.html [ Skip ]754 webkit.org/b/191357 imported/w3c/web-platform-tests/css/cssom-view/scroll-behavior-main-frame-window.html [ Skip ]755 webkit.org/b/191357 imported/w3c/web-platform-tests/css/cssom-view/scroll-behavior-subframe-root.html [ Skip ]756 webkit.org/b/191357 imported/w3c/web-platform-tests/css/cssom-view/scroll-behavior-subframe-window.html [ Skip ]757 758 752 webkit.org/b/189908 imported/w3c/web-platform-tests/resource-timing/resource_timing.worker.html [ Failure ] 759 753 -
trunk/Source/WebCore/ChangeLog
r254837 r254839 1 2020-01-20 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 Unreviewed, rolling out r254807. 4 5 Breaks Apple internal builds. 6 7 Reverted changeset: 8 9 "Add support for scroll behavior relies on ScrollAnimation of 10 the Web process" 11 https://bugs.webkit.org/show_bug.cgi?id=204882 12 https://trac.webkit.org/changeset/254807 13 1 14 2020-01-20 Zalan Bujtas <zalan@apple.com> 2 15 -
trunk/Source/WebCore/Sources.txt
r254807 r254839 1764 1764 platform/SSLKeyGenerator.cpp 1765 1765 platform/ScrollAnimator.cpp 1766 platform/ScrollAnimationSmooth.cpp1767 1766 platform/ScrollView.cpp 1768 1767 platform/ScrollableArea.cpp -
trunk/Source/WebCore/SourcesGTK.txt
r254807 r254839 64 64 65 65 platform/ScrollAnimationKinetic.cpp 66 platform/ScrollAnimationSmooth.cpp 66 67 platform/UserAgentQuirks.cpp 67 68 -
trunk/Source/WebCore/dom/Element.cpp
r254807 r254839 841 841 LayoutRect absoluteBounds = renderer()->absoluteAnchorRect(&insideFixed); 842 842 843 // FIXME(webkit.org/b/188043): Support ScrollBehavior. 843 844 ScrollIntoViewOptions options; 844 845 if (arg) { … … 859 860 isHorizontal ? alignX : alignY, 860 861 isHorizontal ? alignY : alignX, 861 ShouldAllowCrossOriginScrolling::No, 862 options.behavior.valueOr(ScrollBehavior::Auto) 862 ShouldAllowCrossOriginScrolling::No 863 863 }; 864 864 renderer()->scrollRectToVisible(absoluteBounds, insideFixed, visibleOptions); … … 921 921 void Element::scrollBy(double x, double y) 922 922 { 923 scrollBy( ScrollToOptions(x, y));923 scrollBy({ x, y }); 924 924 } 925 925 … … 957 957 adjustForAbsoluteZoom(renderer->scrollTop(), *renderer) 958 958 ); 959 IntPoint scrollPosition( 960 clampToInteger(scrollToOptions.left.value() * renderer->style().effectiveZoom()), 961 clampToInteger(scrollToOptions.top.value() * renderer->style().effectiveZoom()) 962 ); 963 bool animated = useSmoothScrolling(scrollToOptions.behavior.valueOr(ScrollBehavior::Auto), *this); 964 renderer->setScrollPosition(scrollPosition, ScrollType::Programmatic, animated, clamping); 959 renderer->setScrollLeft(clampToInteger(scrollToOptions.left.value() * renderer->style().effectiveZoom()), ScrollType::Programmatic, clamping); 960 renderer->setScrollTop(clampToInteger(scrollToOptions.top.value() * renderer->style().effectiveZoom()), ScrollType::Programmatic, clamping); 965 961 } 966 962 967 963 void Element::scrollTo(double x, double y) 968 964 { 969 scrollTo( ScrollToOptions(x, y));965 scrollTo({ x, y }); 970 966 } 971 967 … … 1301 1297 1302 1298 if (document().scrollingElement() == this) { 1303 if (auto* frame = documentFrameWithNonNullView()) { 1304 // FIXME: Should we use document()->scrollingElement()? 1305 // See https://bugs.webkit.org/show_bug.cgi?id=205059 1306 bool animated = document().documentElement() && useSmoothScrolling(ScrollBehavior::Auto, *document().documentElement()); 1307 frame->view()->setScrollPosition(IntPoint(static_cast<int>(newLeft * frame->pageZoomFactor() * frame->frameScaleFactor()), frame->view()->scrollY()), animated); 1308 } 1299 if (auto* frame = documentFrameWithNonNullView()) 1300 frame->view()->setScrollPosition(IntPoint(static_cast<int>(newLeft * frame->pageZoomFactor() * frame->frameScaleFactor()), frame->view()->scrollY())); 1309 1301 return; 1310 1302 } 1311 1303 1312 1304 if (auto* renderer = renderBox()) { 1313 int clampedLeft = clampToInteger(newLeft * renderer->style().effectiveZoom()); 1314 bool animated = useSmoothScrolling(ScrollBehavior::Auto, *this); 1315 renderer->setScrollLeft(clampedLeft, ScrollType::Programmatic, animated); 1305 renderer->setScrollLeft(static_cast<int>(newLeft * renderer->style().effectiveZoom()), ScrollType::Programmatic); 1316 1306 if (auto* scrollableArea = renderer->layer()) 1317 1307 scrollableArea->setScrollShouldClearLatchedState(true); … … 1324 1314 1325 1315 if (document().scrollingElement() == this) { 1326 if (auto* frame = documentFrameWithNonNullView()) { 1327 // FIXME: Should we use document()->scrollingElement()? 1328 // See https://bugs.webkit.org/show_bug.cgi?id=205059 1329 bool animated = document().documentElement() && useSmoothScrolling(ScrollBehavior::Auto, *document().documentElement()); 1330 frame->view()->setScrollPosition(IntPoint(frame->view()->scrollX(), static_cast<int>(newTop * frame->pageZoomFactor() * frame->frameScaleFactor())), animated); 1331 } 1316 if (auto* frame = documentFrameWithNonNullView()) 1317 frame->view()->setScrollPosition(IntPoint(frame->view()->scrollX(), static_cast<int>(newTop * frame->pageZoomFactor() * frame->frameScaleFactor()))); 1332 1318 return; 1333 1319 } 1334 1320 1335 1321 if (auto* renderer = renderBox()) { 1336 int clampedTop = clampToInteger(newTop * renderer->style().effectiveZoom()); 1337 bool animated = useSmoothScrolling(ScrollBehavior::Auto, *this); 1338 renderer->setScrollTop(clampedTop, ScrollType::Programmatic, animated); 1322 renderer->setScrollTop(static_cast<int>(newTop * renderer->style().effectiveZoom()), ScrollType::Programmatic); 1339 1323 if (auto* scrollableArea = renderer->layer()) 1340 1324 scrollableArea->setScrollShouldClearLatchedState(true); -
trunk/Source/WebCore/page/DOMWindow.cpp
r254807 r254839 1651 1651 void DOMWindow::scrollBy(double x, double y) const 1652 1652 { 1653 scrollBy( ScrollToOptions(x, y));1653 scrollBy({ x, y }); 1654 1654 } 1655 1655 … … 1673 1673 void DOMWindow::scrollTo(double x, double y, ScrollClamping clamping) const 1674 1674 { 1675 scrollTo( ScrollToOptions(x, y), clamping);1676 } 1677 1678 void DOMWindow::scrollTo(const ScrollToOptions& options, ScrollClamping clamping) const1675 scrollTo({ x, y }, clamping); 1676 } 1677 1678 void DOMWindow::scrollTo(const ScrollToOptions& options, ScrollClamping) const 1679 1679 { 1680 1680 if (!isCurrentlyDisplayedInFrame()) … … 1689 1689 ); 1690 1690 1691 // This is an optimization for the common case of scrolling to (0, 0) when the scroller is already at the origin. 1692 // If an animated scroll is in progress, this optimization is skipped to ensure that the animated scroll is really stopped. 1693 if (view->currentScrollBehaviorStatus() == ScrollBehaviorStatus::NotInAnimation && !scrollToOptions.left.value() && !scrollToOptions.top.value() && view->contentsScrollPosition() == IntPoint(0, 0)) 1691 if (!scrollToOptions.left.value() && !scrollToOptions.top.value() && view->contentsScrollPosition() == IntPoint(0, 0)) 1694 1692 return; 1695 1693 … … 1697 1695 1698 1696 IntPoint layoutPos(view->mapFromCSSToLayoutUnits(scrollToOptions.left.value()), view->mapFromCSSToLayoutUnits(scrollToOptions.top.value())); 1699 1700 // FIXME: Should we use document()->scrollingElement()?1701 // See https://bugs.webkit.org/show_bug.cgi?id=2050591702 if (document()->documentElement() && useSmoothScrolling(scrollToOptions.behavior.valueOr(ScrollBehavior::Auto), *document()->documentElement())) {1703 view->scrollToOffsetWithAnimation(layoutPos, ScrollType::Programmatic, clamping);1704 return;1705 }1706 1707 1697 view->setContentsScrollPosition(layoutPos); 1708 1698 } -
trunk/Source/WebCore/page/FrameView.cpp
r254807 r254839 2280 2280 } 2281 2281 2282 void FrameView::setScrollPosition(const ScrollPosition& scrollPosition , bool animated)2282 void FrameView::setScrollPosition(const ScrollPosition& scrollPosition) 2283 2283 { 2284 2284 LOG_WITH_STREAM(Scrolling, stream << "FrameView::setScrollPosition " << scrollPosition << " , clearing anchor"); … … 2293 2293 if (page && page->isMonitoringWheelEvents()) 2294 2294 scrollAnimator().setWheelEventTestMonitor(page->wheelEventTestMonitor()); 2295 if (animated) 2296 scrollToOffsetWithAnimation(scrollOffsetFromPosition(scrollPosition), currentScrollType()); 2297 else 2298 ScrollView::setScrollPosition(scrollPosition); 2295 ScrollView::setScrollPosition(scrollPosition); 2299 2296 2300 2297 setCurrentScrollType(oldScrollType); … … 3660 3657 3661 3658 didChangeScrollOffset(); 3662 }3663 3664 void FrameView::scrollToOffsetWithAnimation(const ScrollOffset& offset, ScrollType scrollType, ScrollClamping)3665 {3666 auto previousScrollType = currentScrollType();3667 setCurrentScrollType(scrollType);3668 3669 if (currentScrollBehaviorStatus() == ScrollBehaviorStatus::InNonNativeAnimation)3670 scrollAnimator().cancelAnimations();3671 if (offset != this->scrollOffset())3672 ScrollableArea::scrollToOffsetWithAnimation(offset);3673 setCurrentScrollType(previousScrollType);3674 3659 } 3675 3660 -
trunk/Source/WebCore/page/FrameView.h
r254807 r254839 224 224 WEBCORE_EXPORT void setFixedVisibleContentRect(const IntRect&) final; 225 225 #endif 226 WEBCORE_EXPORT void setScrollPosition(const ScrollPosition& , bool animated = false) final;226 WEBCORE_EXPORT void setScrollPosition(const ScrollPosition&) final; 227 227 void restoreScrollbar(); 228 228 void scheduleScrollToFocusedElement(SelectionRevealMode); … … 660 660 void renderLayerDidScroll(const RenderLayer&); 661 661 662 WEBCORE_EXPORT void scrollToOffsetWithAnimation(const ScrollOffset&, ScrollType = ScrollType::Programmatic, ScrollClamping = ScrollClamping::Clamped);663 664 662 protected: 665 663 bool scrollContentsFastPath(const IntSize& scrollDelta, const IntRect& rectToScroll, const IntRect& clipRect) final; -
trunk/Source/WebCore/platform/ScrollAnimation.h
r254807 r254839 33 33 class FloatPoint; 34 34 class ScrollableArea; 35 enum class ScrollClamping : uint8_t;36 35 37 36 class ScrollAnimation { … … 40 39 virtual ~ScrollAnimation() { }; 41 40 virtual bool scroll(ScrollbarOrientation, ScrollGranularity, float /* step */, float /* multiplier */) { return true; }; 42 virtual void scroll(const FloatPoint&) { };43 41 virtual void stop() = 0; 44 42 virtual void updateVisibleLengths() { }; -
trunk/Source/WebCore/platform/ScrollAnimationSmooth.cpp
r254807 r254839 29 29 #include "ScrollAnimationSmooth.h" 30 30 31 #if ENABLE(SMOOTH_SCROLLING) 32 31 33 #include "FloatPoint.h" 32 34 #include "ScrollableArea.h" … … 37 39 static const Seconds tickTime = 1_s / frameRate; 38 40 static const Seconds minimumTimerInterval { 1_ms }; 39 static const double smoothFactorForProgrammaticScroll = 5;40 41 41 42 ScrollAnimationSmooth::ScrollAnimationSmooth(ScrollableArea& scrollableArea, const FloatPoint& position, WTF::Function<void (FloatPoint&&)>&& notifyPositionChangedFunction) … … 67 68 } 68 69 69 void ScrollAnimationSmooth::scroll(const FloatPoint& position)70 {71 ScrollGranularity granularity = ScrollByPage;72 bool needToScroll = updatePerAxisData(m_horizontalData, granularity, position.x() - m_horizontalData.currentPosition, m_scrollableArea.minimumScrollPosition().x(), m_scrollableArea.maximumScrollPosition().x(), smoothFactorForProgrammaticScroll);73 needToScroll |=74 updatePerAxisData(m_verticalData, granularity, position.y() - m_verticalData.currentPosition, m_scrollableArea.minimumScrollPosition().y(), m_scrollableArea.maximumScrollPosition().y(), smoothFactorForProgrammaticScroll);75 if (needToScroll && !animationTimerActive()) {76 m_startTime = m_horizontalData.startTime;77 animationTimerFired();78 }79 };80 81 70 void ScrollAnimationSmooth::stop() 82 71 { 83 72 m_animationTimer.stop(); 84 m_scrollableArea.setScrollBehaviorStatus(ScrollBehaviorStatus::NotInAnimation);85 73 } 86 74 … … 260 248 } 261 249 262 bool ScrollAnimationSmooth::updatePerAxisData(PerAxisData& data, ScrollGranularity granularity, float delta, float minScrollPosition, float maxScrollPosition , double smoothFactor)250 bool ScrollAnimationSmooth::updatePerAxisData(PerAxisData& data, ScrollGranularity granularity, float delta, float minScrollPosition, float maxScrollPosition) 263 251 { 264 252 if (!data.startTime || !delta || (delta < 0) != (data.desiredPosition - data.currentPosition < 0)) { … … 276 264 Curve coastTimeCurve; 277 265 getAnimationParametersForGranularity(granularity, animationTime, repeatMinimumSustainTime, attackTime, releaseTime, coastTimeCurve, maximumCoastTime); 278 279 animationTime *= smoothFactor;280 repeatMinimumSustainTime *= smoothFactor;281 attackTime *= smoothFactor;282 releaseTime *= smoothFactor;283 maximumCoastTime *= smoothFactor;284 266 285 267 data.desiredPosition = newPosition; … … 411 393 if (continueAnimation) 412 394 startNextTimer(std::max(minimumTimerInterval, deltaToNextFrame)); 413 else414 m_scrollableArea.setScrollBehaviorStatus(ScrollBehaviorStatus::NotInAnimation);415 395 416 396 m_notifyPositionChangedFunction(FloatPoint(m_horizontalData.currentPosition, m_verticalData.currentPosition)); … … 428 408 429 409 } // namespace WebCore 410 411 #endif // ENABLE(SMOOTH_SCROLLING) -
trunk/Source/WebCore/platform/ScrollAnimationSmooth.h
r254807 r254839 28 28 #include "ScrollAnimation.h" 29 29 30 #if ENABLE(SMOOTH_SCROLLING) 31 30 32 #include "Timer.h" 31 33 … … 34 36 class FloatPoint; 35 37 class ScrollableArea; 36 enum class ScrollClamping : uint8_t;37 38 38 39 class ScrollAnimationSmooth final: public ScrollAnimation { … … 51 52 private: 52 53 bool scroll(ScrollbarOrientation, ScrollGranularity, float step, float multiplier) override; 53 void scroll(const FloatPoint&) override;54 54 void stop() override; 55 55 void updateVisibleLengths() override; … … 90 90 }; 91 91 92 bool updatePerAxisData(PerAxisData&, ScrollGranularity, float delta, float minScrollPosition, float maxScrollPosition , double smoothFactor = 1);92 bool updatePerAxisData(PerAxisData&, ScrollGranularity, float delta, float minScrollPosition, float maxScrollPosition); 93 93 bool animateScroll(PerAxisData&, MonotonicTime currentTime); 94 94 … … 109 109 } // namespace WebCore 110 110 111 #endif // ENABLE(SMOOTH_SCROLLING) -
trunk/Source/WebCore/platform/ScrollAnimator.cpp
r254807 r254839 36 36 #include "LayoutSize.h" 37 37 #include "PlatformWheelEvent.h" 38 #include "ScrollAnimationSmooth.h"39 38 #include "ScrollableArea.h" 40 39 #include <algorithm> … … 54 53 , m_scrollController(*this) 55 54 #endif 56 , m_animationProgrammaticScroll(makeUnique<ScrollAnimationSmooth>(scrollableArea, m_currentPosition, [this](FloatPoint&& position) {57 auto previousScrollType = m_scrollableArea.currentScrollType();58 m_scrollableArea.setCurrentScrollType(ScrollType::Programmatic);59 bool updated = m_scrollableArea.requestScrollPositionUpdate(roundedIntPoint(position));60 m_scrollableArea.setCurrentScrollType(previousScrollType);61 if (updated)62 return;63 64 FloatSize delta = position - m_currentPosition;65 m_currentPosition = WTFMove(position);66 notifyPositionChanged(delta);67 }))68 55 { 69 56 } … … 87 74 notifyPositionChanged(newPosition - currentPosition); 88 75 return true; 89 }90 91 void ScrollAnimator::scrollToOffset(const FloatPoint& offset)92 {93 m_animationProgrammaticScroll->setCurrentPosition(m_currentPosition);94 auto newPosition = ScrollableArea::scrollPositionFromOffset(offset, toFloatSize(m_scrollableArea.scrollOrigin()));95 m_animationProgrammaticScroll->scroll(newPosition);96 m_scrollableArea.setScrollBehaviorStatus(ScrollBehaviorStatus::InNonNativeAnimation);97 76 } 98 77 … … 267 246 #endif 268 247 269 void ScrollAnimator::cancelAnimations()270 {271 #if !USE(REQUEST_ANIMATION_FRAME_TIMER)272 m_animationProgrammaticScroll->stop();273 #endif274 }275 276 void ScrollAnimator::serviceScrollAnimations()277 {278 #if !USE(REQUEST_ANIMATION_FRAME_TIMER)279 m_animationProgrammaticScroll->serviceAnimation();280 #endif281 }282 283 void ScrollAnimator::willEndLiveResize()284 {285 m_animationProgrammaticScroll->updateVisibleLengths();286 }287 288 void ScrollAnimator::didAddVerticalScrollbar(Scrollbar*)289 {290 m_animationProgrammaticScroll->updateVisibleLengths();291 }292 293 void ScrollAnimator::didAddHorizontalScrollbar(Scrollbar*)294 {295 m_animationProgrammaticScroll->updateVisibleLengths();296 }297 298 248 } // namespace WebCore -
trunk/Source/WebCore/platform/ScrollAnimator.h
r254807 r254839 47 47 class FloatPoint; 48 48 class PlatformTouchEvent; 49 class ScrollAnimation;50 49 class ScrollableArea; 51 50 class Scrollbar; … … 70 69 virtual bool scroll(ScrollbarOrientation, ScrollGranularity, float step, float multiplier); 71 70 72 void scrollToOffset(const FloatPoint&);73 71 virtual void scrollToOffsetWithoutAnimation(const FloatPoint&, ScrollClamping = ScrollClamping::Clamped); 74 72 … … 88 86 const FloatPoint& currentPosition() const { return m_currentPosition; } 89 87 90 virtual void cancelAnimations() ;91 virtual void serviceScrollAnimations() ;88 virtual void cancelAnimations() { } 89 virtual void serviceScrollAnimations() { } 92 90 93 91 virtual void contentAreaWillPaint() const { } … … 100 98 virtual void willStartLiveResize() { } 101 99 virtual void contentsResized() const { } 102 virtual void willEndLiveResize() ;100 virtual void willEndLiveResize() { } 103 101 virtual void contentAreaDidShow() { } 104 102 virtual void contentAreaDidHide() { } … … 107 105 virtual bool scrollbarsCanBeActive() const { return true; } 108 106 109 virtual void didAddVerticalScrollbar(Scrollbar*) ;107 virtual void didAddVerticalScrollbar(Scrollbar*) { } 110 108 virtual void willRemoveVerticalScrollbar(Scrollbar*) { } 111 virtual void didAddHorizontalScrollbar(Scrollbar*) ;109 virtual void didAddHorizontalScrollbar(Scrollbar*) { } 112 110 virtual void willRemoveHorizontalScrollbar(Scrollbar*) { } 113 111 … … 154 152 #endif 155 153 FloatPoint m_currentPosition; 156 157 std::unique_ptr<ScrollAnimation> m_animationProgrammaticScroll;158 154 }; 159 155 -
trunk/Source/WebCore/platform/ScrollTypes.h
r254807 r254839 55 55 }; 56 56 57 // FIXME: Add another status InNativeAnimation to indicate native scrolling is in progress.58 // See: https://bugs.webkit.org/show_bug.cgi?id=20493659 enum class ScrollBehaviorStatus : uint8_t {60 NotInAnimation,61 InNonNativeAnimation,62 };63 64 57 inline ScrollDirection logicalToPhysical(ScrollLogicalDirection direction, bool isVertical, bool isFlipped) 65 58 { -
trunk/Source/WebCore/platform/ScrollView.cpp
r254807 r254839 519 519 } 520 520 521 void ScrollView::setScrollPosition(const ScrollPosition& scrollPosition , bool/* animated*/)521 void ScrollView::setScrollPosition(const ScrollPosition& scrollPosition) 522 522 { 523 523 LOG_WITH_STREAM(Scrolling, stream << "ScrollView::setScrollPosition " << scrollPosition); … … 533 533 ScrollPosition newScrollPosition = !delegatesScrolling() ? adjustScrollPositionWithinRange(scrollPosition) : scrollPosition; 534 534 535 if ((!delegatesScrolling() || currentScrollType() == ScrollType::User) && currentScrollBehaviorStatus() == ScrollBehaviorStatus::NotInAnimation && newScrollPosition == this->scrollPosition()) 536 return; 537 538 if (currentScrollBehaviorStatus() == ScrollBehaviorStatus::InNonNativeAnimation) 539 scrollAnimator().cancelAnimations(); 540 541 if (requestScrollPositionUpdate(newScrollPosition)) { 542 setScrollBehaviorStatus(ScrollBehaviorStatus::NotInAnimation); 543 return; 544 } 535 if ((!delegatesScrolling() || currentScrollType() == ScrollType::User) && newScrollPosition == this->scrollPosition()) 536 return; 537 538 if (requestScrollPositionUpdate(newScrollPosition)) 539 return; 545 540 546 541 updateScrollbars(newScrollPosition); 547 setScrollBehaviorStatus(ScrollBehaviorStatus::NotInAnimation);548 542 } 549 543 … … 602 596 if (!managesScrollbars()) { 603 597 if (scrollOriginChanged()) { 604 if (!requestScrollPositionUpdate(desiredPosition)) 605 ScrollableArea::scrollToOffsetWithoutAnimation(scrollOffsetFromPosition(desiredPosition)); 598 ScrollableArea::scrollToOffsetWithoutAnimation(scrollOffsetFromPosition(desiredPosition)); 606 599 resetScrollOriginChanged(); 607 600 } -
trunk/Source/WebCore/platform/ScrollView.h
r254807 r254839 265 265 266 266 // Functions for scrolling the view. 267 virtual void setScrollPosition(const ScrollPosition& , bool animated = false);267 virtual void setScrollPosition(const ScrollPosition&); 268 268 void scrollBy(const IntSize& s) { return setScrollPosition(scrollPosition() + s); } 269 269 -
trunk/Source/WebCore/platform/ScrollableArea.cpp
r254807 r254839 143 143 } 144 144 145 void ScrollableArea::scrollToOffsetWithAnimation(const FloatPoint& offset, ScrollClamping)146 {147 LOG_WITH_STREAM(Scrolling, stream << "ScrollableArea " << this << " scrollToOffsetWithAnimation " << offset);148 scrollAnimator().scrollToOffset(offset);149 }150 151 145 void ScrollableArea::scrollToOffsetWithoutAnimation(const FloatPoint& offset, ScrollClamping clamping) 152 146 { … … 228 222 void ScrollableArea::setScrollOffsetFromInternals(const ScrollOffset& offset) 229 223 { 230 if (requestScrollPositionUpdate(scrollPositionFromOffset(offset))) 224 setScrollOffsetFromAnimation(offset); 225 } 226 227 void ScrollableArea::setScrollOffsetFromAnimation(const ScrollOffset& offset) 228 { 229 ScrollPosition position = scrollPositionFromOffset(offset); 230 if (requestScrollPositionUpdate(position)) 231 231 return; 232 232 233 setScrollOffsetFromAnimation(offset); 234 } 235 236 void ScrollableArea::setScrollOffsetFromAnimation(const ScrollOffset& offset) 237 { 238 scrollPositionChanged(scrollPositionFromOffset(offset)); 233 scrollPositionChanged(position); 239 234 } 240 235 -
trunk/Source/WebCore/platform/ScrollableArea.h
r254807 r254839 63 63 class ScrollableArea : public CanMakeWeakPtr<ScrollableArea> { 64 64 public: 65 ScrollBehaviorStatus currentScrollBehaviorStatus() { return m_currentScrollBehaviorStatus; }66 void setScrollBehaviorStatus(ScrollBehaviorStatus status) { m_currentScrollBehaviorStatus = status; }67 68 65 WEBCORE_EXPORT bool scroll(ScrollDirection, ScrollGranularity, float multiplier = 1); 69 WEBCORE_EXPORT void scrollToOffsetWithAnimation(const FloatPoint&, ScrollClamping = ScrollClamping::Clamped);70 66 WEBCORE_EXPORT void scrollToOffsetWithoutAnimation(const FloatPoint&, ScrollClamping = ScrollClamping::Clamped); 71 67 void scrollToOffsetWithoutAnimation(ScrollbarOrientation, float offset); … … 384 380 #endif 385 381 386 ScrollBehaviorStatus m_currentScrollBehaviorStatus { ScrollBehaviorStatus::NotInAnimation };387 388 382 // There are 8 possible combinations of writing mode and direction. Scroll origin will be non-zero in the x or y axis 389 383 // if there is any reversed direction or writing-mode. The combinations are: -
trunk/Source/WebCore/platform/generic/ScrollAnimatorGeneric.cpp
r254807 r254839 163 163 void ScrollAnimatorGeneric::updatePosition(FloatPoint&& position) 164 164 { 165 if (m_scrollableArea.requestScrollPositionUpdate(roundedIntPoint(position)))166 return;167 165 FloatSize delta = position - m_currentPosition; 168 166 m_currentPosition = WTFMove(position); -
trunk/Source/WebCore/platform/graphics/cg/PDFDocumentImage.cpp
r254817 r254839 50 50 #include <wtf/text/TextStream.h> 51 51 52 #if PLATFORM(COCOA) 53 #import <pal/spi/cg/CoreGraphicsSPI.h> 54 #else 52 #if !PLATFORM(COCOA) 55 53 #include "ImageSourceCG.h" 56 54 #endif -
trunk/Source/WebCore/platform/mac/ScrollAnimatorMac.mm
r254807 r254839 1157 1157 void ScrollAnimatorMac::cancelAnimations() 1158 1158 { 1159 ScrollAnimator::cancelAnimations();1160 1159 m_haveScrolledSincePageLoad = false; 1161 1160 -
trunk/Source/WebCore/rendering/RenderBox.cpp
r254807 r254839 582 582 } 583 583 584 void RenderBox::setScrollLeft(int newLeft, ScrollType scrollType, bool animated,ScrollClamping clamping)584 void RenderBox::setScrollLeft(int newLeft, ScrollType scrollType, ScrollClamping clamping) 585 585 { 586 586 if (!hasOverflowClip() || !layer()) 587 587 return; 588 588 setupWheelEventMonitor(*layer()); 589 layer()->scrollToXPosition(newLeft, scrollType, animated,clamping);590 } 591 592 void RenderBox::setScrollTop(int newTop, ScrollType scrollType, bool animated,ScrollClamping clamping)589 layer()->scrollToXPosition(newLeft, scrollType, clamping); 590 } 591 592 void RenderBox::setScrollTop(int newTop, ScrollType scrollType, ScrollClamping clamping) 593 593 { 594 594 if (!hasOverflowClip() || !layer()) 595 595 return; 596 596 setupWheelEventMonitor(*layer()); 597 layer()->scrollToYPosition(newTop, scrollType, animated, clamping); 598 } 599 600 void RenderBox::setScrollPosition(const ScrollPosition& position, ScrollType scrollType, bool animated, ScrollClamping clamping) 601 { 602 if (!hasOverflowClip() || !layer()) 603 return; 604 setupWheelEventMonitor(*layer()); 605 layer()->scrollToPosition(position, scrollType, animated, clamping); 597 layer()->scrollToYPosition(newTop, scrollType, clamping); 606 598 } 607 599 -
trunk/Source/WebCore/rendering/RenderBox.h
r254807 r254839 248 248 virtual int scrollWidth() const; 249 249 virtual int scrollHeight() const; 250 virtual void setScrollLeft(int, ScrollType, bool animated = false, ScrollClamping = ScrollClamping::Clamped); 251 virtual void setScrollTop(int, ScrollType, bool animated = false, ScrollClamping = ScrollClamping::Clamped); 252 void setScrollPosition(const ScrollPosition&, ScrollType, bool animated = false, ScrollClamping = ScrollClamping::Clamped); 250 virtual void setScrollLeft(int, ScrollType, ScrollClamping = ScrollClamping::Clamped); 251 virtual void setScrollTop(int, ScrollType, ScrollClamping = ScrollClamping::Clamped); 253 252 254 253 LayoutUnit marginTop() const override { return m_marginBox.top(); } -
trunk/Source/WebCore/rendering/RenderLayer.cpp
r254807 r254839 2580 2580 } 2581 2581 2582 void RenderLayer::scrollToXPosition(int x, ScrollType scrollType, bool animated,ScrollClamping clamping)2582 void RenderLayer::scrollToXPosition(int x, ScrollType scrollType, ScrollClamping clamping) 2583 2583 { 2584 2584 ScrollPosition position(x, m_scrollPosition.y()); 2585 scrollTo Position(position, scrollType, animated, clamping);2586 } 2587 2588 void RenderLayer::scrollToYPosition(int y, ScrollType scrollType, bool animated,ScrollClamping clamping)2585 scrollToOffset(scrollOffsetFromPosition(position), scrollType, clamping); 2586 } 2587 2588 void RenderLayer::scrollToYPosition(int y, ScrollType scrollType, ScrollClamping clamping) 2589 2589 { 2590 2590 ScrollPosition position(m_scrollPosition.x(), y); 2591 scrollToPosition(position, scrollType, animated, clamping); 2592 } 2593 2594 void RenderLayer::scrollToPosition(const ScrollPosition& position, ScrollType scrollType, bool animated, ScrollClamping clamping) 2595 { 2596 if (animated) 2597 scrollToOffsetWithAnimation(scrollOffsetFromPosition(position), scrollType, clamping); 2598 else 2599 scrollToOffset(scrollOffsetFromPosition(position), scrollType, clamping); 2591 scrollToOffset(scrollOffsetFromPosition(position), scrollType, clamping); 2600 2592 } 2601 2593 … … 2607 2599 void RenderLayer::scrollToOffset(const ScrollOffset& scrollOffset, ScrollType scrollType, ScrollClamping clamping) 2608 2600 { 2609 if (currentScrollBehaviorStatus() == ScrollBehaviorStatus::InNonNativeAnimation)2610 scrollAnimator().cancelAnimations();2611 2612 2601 ScrollOffset clampedScrollOffset = clamping == ScrollClamping::Clamped ? clampScrollOffset(scrollOffset) : scrollOffset; 2613 2602 if (clampedScrollOffset == this->scrollOffset()) … … 2619 2608 bool handled = false; 2620 2609 #if ENABLE(ASYNC_SCROLLING) 2621 handled = requestScrollPositionUpdate(scrollPositionFromOffset(clampedScrollOffset)); 2610 if (ScrollingCoordinator* scrollingCoordinator = page().scrollingCoordinator()) 2611 handled = scrollingCoordinator->requestScrollPositionUpdate(*this, scrollPositionFromOffset(clampedScrollOffset)); 2622 2612 #endif 2623 2613 2624 2614 if (!handled) 2625 2615 scrollToOffsetWithoutAnimation(clampedScrollOffset, clamping); 2626 setScrollBehaviorStatus(ScrollBehaviorStatus::NotInAnimation); 2627 2628 setCurrentScrollType(previousScrollType); 2629 } 2630 2631 bool RenderLayer::requestScrollPositionUpdate(const ScrollPosition& position) 2632 { 2633 #if ENABLE(ASYNC_SCROLLING) 2634 if (ScrollingCoordinator* scrollingCoordinator = page().scrollingCoordinator()) 2635 return scrollingCoordinator->requestScrollPositionUpdate(*this, position); 2636 #endif 2637 return false; 2638 } 2639 2640 void RenderLayer::scrollToOffsetWithAnimation(const ScrollOffset& offset, ScrollType scrollType, ScrollClamping clamping) 2641 { 2642 auto previousScrollType = currentScrollType(); 2643 setCurrentScrollType(scrollType); 2644 2645 ScrollOffset newScrollOffset = clamping == ScrollClamping::Clamped ? clampScrollOffset(offset) : offset; 2646 if (currentScrollBehaviorStatus() == ScrollBehaviorStatus::InNonNativeAnimation) 2647 scrollAnimator().cancelAnimations(); 2648 if (newScrollOffset != this->scrollOffset()) 2649 ScrollableArea::scrollToOffsetWithAnimation(newScrollOffset); 2616 2650 2617 setCurrentScrollType(previousScrollType); 2651 2618 } … … 2683 2650 } 2684 2651 2685 if (m_scrollPosition == newPosition && currentScrollBehaviorStatus() == ScrollBehaviorStatus::NotInAnimation) {2652 if (m_scrollPosition == newPosition) { 2686 2653 // FIXME: Nothing guarantees we get a scrollTo() with an unchanged position at the end of a user gesture. 2687 2654 // The ScrollingCoordinator probably needs to message the main thread when a gesture ends. … … 2828 2795 2829 2796 ScrollOffset clampedScrollOffset = clampScrollOffset(scrollOffset() + toIntSize(roundedIntRect(revealRect).location())); 2830 if (c urrentScrollBehaviorStatus() != ScrollBehaviorStatus::NotInAnimation || clampedScrollOffset != scrollOffset()) {2797 if (clampedScrollOffset != scrollOffset()) { 2831 2798 ScrollOffset oldScrollOffset = scrollOffset(); 2832 bool animated = (box->element() && useSmoothScrolling(options.behavior, *box->element())); 2833 scrollToPosition(scrollPositionFromOffset(clampedScrollOffset), ScrollType::Programmatic, animated); 2834 IntSize scrollOffsetDifference = clampedScrollOffset - oldScrollOffset; 2799 scrollToOffset(clampedScrollOffset); 2800 IntSize scrollOffsetDifference = scrollOffset() - oldScrollOffset; 2835 2801 localExposeRect.move(-scrollOffsetDifference); 2836 2802 newRect = LayoutRect(box->localToAbsoluteQuad(FloatQuad(FloatRect(localExposeRect)), UseTransforms).boundingBox()); … … 2852 2818 LayoutRect exposeRect = getRectToExpose(viewRect, absoluteRect, insideFixed, options.alignX, options.alignY); 2853 2819 2854 IntPoint scroll Position(roundedIntPoint(exposeRect.location()));2820 IntPoint scrollOffset(roundedIntPoint(exposeRect.location())); 2855 2821 // Adjust offsets if they're outside of the allowable range. 2856 scrollPosition = scrollPosition.constrainedBetween(IntPoint(), IntPoint(frameView.contentsSize())); 2857 // FIXME: Should we use contentDocument()->scrollingElement()? 2858 // See https://bugs.webkit.org/show_bug.cgi?id=205059 2859 bool animated = ownerElement->contentDocument() && ownerElement->contentDocument()->documentElement() && useSmoothScrolling(options.behavior, *ownerElement->contentDocument()->documentElement()); 2860 frameView.setScrollPosition(scrollPosition, animated); 2822 scrollOffset = scrollOffset.constrainedBetween(IntPoint(), IntPoint(frameView.contentsSize())); 2823 frameView.setScrollPosition(scrollOffset); 2861 2824 2862 2825 if (options.shouldAllowCrossOriginScrolling == ShouldAllowCrossOriginScrolling::Yes || frameView.safeToPropagateScrollToParent()) { … … 2897 2860 if (revealRect != viewRect) { 2898 2861 ScrollOffset clampedScrollPosition = roundedIntPoint(revealRect.location()).constrainedBetween(minScrollPosition, maxScrollPosition); 2899 // FIXME: Should we use document()->scrollingElement()? 2900 // See https://bugs.webkit.org/show_bug.cgi?id=205059 2901 bool animated = renderer().document().documentElement() && useSmoothScrolling(options.behavior, *renderer().document().documentElement()); 2902 frameView.setScrollPosition(clampedScrollPosition, animated); 2862 frameView.setScrollPosition(clampedScrollPosition); 2903 2863 } 2904 2864 -
trunk/Source/WebCore/rendering/RenderLayer.h
r254807 r254839 51 51 #include "RenderBox.h" 52 52 #include "RenderPtr.h" 53 #include "ScrollBehavior.h"54 53 #include "ScrollableArea.h" 55 54 #include <memory> … … 136 135 const ScrollAlignment& alignY { ScrollAlignment::alignCenterIfNeeded }; 137 136 ShouldAllowCrossOriginScrolling shouldAllowCrossOriginScrolling { ShouldAllowCrossOriginScrolling::No }; 138 ScrollBehavior behavior { ScrollBehavior::Auto };139 137 }; 140 138 … … 443 441 444 442 WEBCORE_EXPORT void scrollToOffset(const ScrollOffset&, ScrollType = ScrollType::Programmatic, ScrollClamping = ScrollClamping::Clamped); 445 WEBCORE_EXPORT void scrollToOffsetWithAnimation(const ScrollOffset&, ScrollType = ScrollType::Programmatic, ScrollClamping = ScrollClamping::Clamped); 446 447 bool requestScrollPositionUpdate(const ScrollPosition&) override; 448 449 void scrollToXPosition(int x, ScrollType, bool animated, ScrollClamping = ScrollClamping::Clamped); 450 void scrollToYPosition(int y, ScrollType, bool animated, ScrollClamping = ScrollClamping::Clamped); 451 void scrollToPosition(const ScrollPosition&, ScrollType, bool animated, ScrollClamping = ScrollClamping::Clamped); 443 444 void scrollToXPosition(int x, ScrollType, ScrollClamping = ScrollClamping::Clamped); 445 void scrollToYPosition(int y, ScrollType, ScrollClamping = ScrollClamping::Clamped); 452 446 453 447 // These are only used by marquee. -
trunk/Source/WebCore/rendering/RenderListBox.cpp
r254807 r254839 744 744 } 745 745 746 void RenderListBox::setScrollLeft(int, ScrollType, bool,ScrollClamping)746 void RenderListBox::setScrollLeft(int, ScrollType, ScrollClamping) 747 747 { 748 748 } … … 761 761 } 762 762 763 void RenderListBox::setScrollTop(int newTop, ScrollType, bool,ScrollClamping)763 void RenderListBox::setScrollTop(int newTop, ScrollType, ScrollClamping) 764 764 { 765 765 // Determine an index and scroll to it. -
trunk/Source/WebCore/rendering/RenderListBox.h
r254807 r254839 107 107 int scrollWidth() const override; 108 108 int scrollHeight() const override; 109 void setScrollLeft(int, ScrollType, bool,ScrollClamping) override;110 void setScrollTop(int, ScrollType, bool,ScrollClamping) override;109 void setScrollLeft(int, ScrollType, ScrollClamping) override; 110 void setScrollTop(int, ScrollType, ScrollClamping) override; 111 111 112 112 bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) override; -
trunk/Source/WebCore/rendering/RenderTextControlSingleLine.cpp
r254807 r254839 377 377 } 378 378 379 void RenderTextControlSingleLine::setScrollLeft(int newLeft, ScrollType, bool,ScrollClamping)379 void RenderTextControlSingleLine::setScrollLeft(int newLeft, ScrollType, ScrollClamping) 380 380 { 381 381 if (innerTextElement()) … … 383 383 } 384 384 385 void RenderTextControlSingleLine::setScrollTop(int newTop, ScrollType, bool,ScrollClamping)385 void RenderTextControlSingleLine::setScrollTop(int newTop, ScrollType, ScrollClamping) 386 386 { 387 387 if (innerTextElement()) -
trunk/Source/WebCore/rendering/RenderTextControlSingleLine.h
r254807 r254839 58 58 int scrollWidth() const override; 59 59 int scrollHeight() const override; 60 void setScrollLeft(int, ScrollType, bool,ScrollClamping) override;61 void setScrollTop(int, ScrollType, bool,ScrollClamping) override;60 void setScrollLeft(int, ScrollType, ScrollClamping) override; 61 void setScrollTop(int, ScrollType, ScrollClamping) override; 62 62 bool scroll(ScrollDirection, ScrollGranularity, float multiplier = 1, Element** stopElement = nullptr, RenderBox* startBox = nullptr, const IntPoint& wheelEventAbsolutePoint = IntPoint()) final; 63 63 bool logicalScroll(ScrollLogicalDirection, ScrollGranularity, float multiplier = 1, Element** stopElement = 0) final; -
trunk/Source/WebCore/testing/Internals.cpp
r254807 r254839 1763 1763 return Exception { InvalidAccessError }; 1764 1764 1765 element.scrollTo( ScrollToOptions(x, y), ScrollClamping::Unclamped);1765 element.scrollTo({ x, y }, ScrollClamping::Unclamped); 1766 1766 return { }; 1767 1767 }
Note: See TracChangeset
for help on using the changeset viewer.