Changeset 176240 in webkit


Ignore:
Timestamp:
Nov 17, 2014, 5:49:33 PM (11 years ago)
Author:
Simon Fraser
Message:

[iOS WK1] Sometimes, missing tiles in -webkit-overflow-scrolling: touch in UIWebViews
https://bugs.webkit.org/show_bug.cgi?id=138815
rdar://problem/18746203

Reviewed by Tim Horton.

The scroll-velocity-related data members on FrameView, added in r168233, were uninitialized in UIWebViews,
so FrameView::computeCoverageRect() could return garbage results, leading to too much or too little tile coverage.

We still add additional coverage from the new inclusion of a margin area, but, for simplicity, leave that the same
between WK1 and WK2 for now.

  • page/FrameView.cpp:

(WebCore::FrameView::FrameView):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r176239 r176240  
     12014-11-17  Simon Fraser  <simon.fraser@apple.com>
     2
     3        [iOS WK1] Sometimes, missing tiles in -webkit-overflow-scrolling: touch in UIWebViews
     4        https://bugs.webkit.org/show_bug.cgi?id=138815
     5        rdar://problem/18746203
     6
     7        Reviewed by Tim Horton.
     8
     9        The scroll-velocity-related data members on FrameView, added in r168233, were uninitialized in UIWebViews,
     10        so FrameView::computeCoverageRect() could return garbage results, leading to too much or too little tile coverage.
     11       
     12        We still add additional coverage from the new inclusion of a margin area, but, for simplicity, leave that the same
     13        between WK1 and WK2 for now.
     14       
     15        * page/FrameView.cpp:
     16        (WebCore::FrameView::FrameView):
     17
    1182014-11-17  Chris Dumez  <cdumez@apple.com>
    219
  • trunk/Source/WebCore/page/FrameView.cpp

    r176212 r176240  
    189189    , m_useCustomFixedPositionLayoutRect(false)
    190190    , m_useCustomSizeForResizeEvent(false)
     191    , m_horizontalVelocity(0)
     192    , m_verticalVelocity(0)
     193    , m_scaleChangeRate(0)
     194    , m_lastVelocityUpdateTime(0)
    191195#endif
    192196    , m_hasOverrideViewportSize(false)
Note: See TracChangeset for help on using the changeset viewer.