Changeset 199155 in webkit


Ignore:
Timestamp:
Apr 7, 2016 7:22:11 AM (8 years ago)
Author:
Antti Koivisto
Message:

FrameView::qualifiesAsVisuallyNonEmpty() returns false when loading a Google search results page before search results are loaded, even though the header is visible
https://bugs.webkit.org/show_bug.cgi?id=156339
<rdar://problem/24491381>

Reviewed by Andreas Kling.

Jeff's testing indicates lowering the document height threshold improves things visually during page loading.

  • page/FrameView.cpp:

(WebCore::FrameView::qualifiesAsVisuallyNonEmpty):

Lower document height threshold to from 200 to 48 pixels.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r199154 r199155  
     12016-04-07  Antti Koivisto  <antti@apple.com>
     2
     3        FrameView::qualifiesAsVisuallyNonEmpty() returns false when loading a Google search results page before search results are loaded, even though the header is visible
     4        https://bugs.webkit.org/show_bug.cgi?id=156339
     5        <rdar://problem/24491381>
     6
     7        Reviewed by Andreas Kling.
     8
     9        Patch by Jeff Miller.
     10
     11        Jeff's testing indicates lowering the document height threshold improves things visually during page loading.
     12
     13        * page/FrameView.cpp:
     14        (WebCore::FrameView::qualifiesAsVisuallyNonEmpty):
     15
     16            Lower document height threshold to from 200 to 48 pixels.
     17
    1182016-04-07  Antti Koivisto  <antti@apple.com>
    219
  • trunk/Source/WebCore/page/FrameView.cpp

    r199119 r199155  
    42584258
    42594259    // Require the document to grow a bit.
    4260     static const int documentHeightThreshold = 200;
     4260    // Using a value of 48 allows the header on Google's search page to render immediately before search results populate later.
     4261    static const int documentHeightThreshold = 48;
    42614262    LayoutRect overflowRect = documentElement->renderBox()->layoutOverflowRect();
    42624263    if (snappedIntRect(overflowRect).height() < documentHeightThreshold)
Note: See TracChangeset for help on using the changeset viewer.