Changeset 235855 in webkit


Ignore:
Timestamp:
Sep 10, 2018 12:39:10 PM (6 years ago)
Author:
fred.wang@free.fr
Message:

[CSSOM View] Handle the scrollingElement in Element::scroll(Left/Top/Width/Height/To)
https://bugs.webkit.org/show_bug.cgi?id=182230

Follow-up patch replacing document.body with document.scrollingElement in
fast-scroll-iframe-latched-mainframe.html. This fixes flaky behavior.

Patch by Frederic Wang <fwang@igalia.com> on 2018-09-10
Reviewed by Antonio Gomes.

  • tiled-drawing/scrolling/fast-scroll-iframe-latched-mainframe.html: Replace document.body

with document.scrollingElement since this document is in standard mode.

Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r235854 r235855  
     12018-09-10  Frederic Wang  <fwang@igalia.com>
     2
     3        [CSSOM View] Handle the scrollingElement in Element::scroll(Left/Top/Width/Height/To)
     4        https://bugs.webkit.org/show_bug.cgi?id=182230
     5
     6        Follow-up patch replacing document.body with document.scrollingElement in
     7        fast-scroll-iframe-latched-mainframe.html. This fixes flaky behavior.
     8
     9        Reviewed by Antonio Gomes.
     10
     11        * tiled-drawing/scrolling/fast-scroll-iframe-latched-mainframe.html: Replace document.body
     12        with document.scrollingElement since this document is in standard mode.
     13
    1142018-09-10  Antoine Quint  <graouts@apple.com>
    215
  • trunk/LayoutTests/tiled-drawing/scrolling/fast-scroll-iframe-latched-mainframe.html

    r188793 r235855  
    2020function onPageScroll()
    2121{
    22     if (document.body.scrollTop >= 70)
     22    if (document.scrollingElement.scrollTop >= 70)
    2323        checkForScroll();
    2424}
     
    2727{
    2828    // The IFrame should not have scrolled at all.
    29     var pageScrollPositionAfter = document.body.scrollTop;
    30     var iFrameScrollPositionAfter = window.frames['target'].document.body.scrollTop;
     29    var pageScrollPositionAfter = document.scrollingElement.scrollTop;
     30    var iFrameScrollPositionAfter = window.frames['target'].document.scrollingElement.scrollTop;
    3131
    3232    if (iFrameScrollPositionBefore != iFrameScrollPositionAfter)
     
    4545function scrollTest()
    4646{
    47     pageScrollPositionBefore = document.body.scrollTop;
    48     iFrameScrollPositionBefore = window.frames['target'].document.body.scrollTop;
     47    pageScrollPositionBefore = document.scrollingElement.scrollTop;
     48    iFrameScrollPositionBefore = window.frames['target'].document.scrollingElement.scrollTop;
    4949
    5050    iframeTarget = document.getElementById('target');
Note: See TracChangeset for help on using the changeset viewer.