⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 243550 in webkit


Ignore:
Timestamp:
Mar 27, 2019, 11:06:49 AM (7 years ago)
Author:
Simon Fraser
Message:

REGRESSION (r242687): Fullscreen YouTube videos show blank white space at top
https://bugs.webkit.org/show_bug.cgi?id=196304
rdar://problem/49175760

Reviewed by Zalan Bujtas.

Source/WebCore:

repositionRelatedLayers() should not short-circuit when topContentInset is zero,
because topContentInset might be changing from non-zero to zero, and then we need
to move layers around.

Test: scrollingcoordinator/mac/top-content-inset-to-zero.html

  • page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.mm:

(WebCore::ScrollingTreeFrameScrollingNodeMac::repositionRelatedLayers):

LayoutTests:

  • scrollingcoordinator/mac/top-content-inset-to-zero-expected.html: Added.
  • scrollingcoordinator/mac/top-content-inset-to-zero.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r243549 r243550  
     12019-03-27  Simon Fraser  <simon.fraser@apple.com>
     2
     3        REGRESSION (r242687): Fullscreen YouTube videos show blank white space at top
     4        https://bugs.webkit.org/show_bug.cgi?id=196304
     5        rdar://problem/49175760
     6
     7        Reviewed by Zalan Bujtas.
     8
     9        * scrollingcoordinator/mac/top-content-inset-to-zero-expected.html: Added.
     10        * scrollingcoordinator/mac/top-content-inset-to-zero.html: Added.
     11
    1122019-03-27  Shawn Roberts  <sroberts@apple.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r243539 r243550  
     12019-03-27  Simon Fraser  <simon.fraser@apple.com>
     2
     3        REGRESSION (r242687): Fullscreen YouTube videos show blank white space at top
     4        https://bugs.webkit.org/show_bug.cgi?id=196304
     5        rdar://problem/49175760
     6
     7        Reviewed by Zalan Bujtas.
     8
     9        repositionRelatedLayers() should not short-circuit when topContentInset is zero,
     10        because topContentInset might be changing from non-zero to zero, and then we need
     11        to move layers around.
     12
     13        Test: scrollingcoordinator/mac/top-content-inset-to-zero.html
     14
     15        * page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.mm:
     16        (WebCore::ScrollingTreeFrameScrollingNodeMac::repositionRelatedLayers):
     17
    1182019-03-26  Simon Fraser  <simon.fraser@apple.com>
    219
  • trunk/Source/WebCore/page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.mm

    r242359 r243550  
    212212
    213213    float topContentInset = this->topContentInset();
    214     if (m_insetClipLayer && m_rootContentsLayer && topContentInset) {
     214    if (m_insetClipLayer && m_rootContentsLayer) {
    215215        m_insetClipLayer.get().position = FloatPoint(m_insetClipLayer.get().position.x, FrameView::yPositionForInsetClipLayer(scrollPosition, topContentInset));
    216216        m_rootContentsLayer.get().position = FrameView::positionForRootContentLayer(scrollPosition, scrollOrigin(), topContentInset, headerHeight());
Note: See TracChangeset for help on using the changeset viewer.