Bug 143199

Summary: Swipe snapshot removed too early (jumps around) on arstechnica and NYT
Product: WebKit Reporter: Tim Horton <thorton>
Component: New BugsAssignee: Tim Horton <thorton>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, mitz, sam, simon.fraser
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch for landing none

Description Tim Horton 2015-03-29 14:37:21 PDT
REGRESSION: Swipe snapshot removed too early (jumps around) on arstechnica and NYT
Comment 1 Tim Horton 2015-03-29 14:37:43 PDT
Created attachment 249700 [details]
Patch
Comment 2 mitz 2015-03-29 15:48:12 PDT
Comment on attachment 249700 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=249700&action=review

> Source/WebKit2/ChangeLog:3
> +        REGRESSION: Swipe snapshot removed too early (jumps around) on arstechnica and NYT

Regression or not a regression?
Comment 3 Darin Adler 2015-03-29 15:57:17 PDT
Comment on attachment 249700 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=249700&action=review

> Source/WebKit2/UIProcess/ios/ViewGestureControllerIOS.mm:151
> +    , m_swipeWaitingForRenderTreeSizeThreshold(false)
> +    , m_swipeWaitingForRepaint(false)
> +    , m_swipeWaitingForDidFinishLoad(false)
> +    , m_swipeWaitingForSubresourceLoads(false)
> +    , m_swipeWaitingForScrollPositionRestoration(false)

Should initialize these in the header instead of the constructor. Should do the same for other scalars that are being initialized to an “obvious” default such as “false” or “0”. Helps keep changes in the different per-platform .mm files to a minimum and makes it harder to forget to initialize one.
Comment 4 Tim Horton 2015-03-29 16:27:47 PDT
Not a regression in the WebKit sense. Will remove from the changelog (I realized after I uploaded the patch).
Comment 5 Tim Horton 2015-03-29 16:28:46 PDT
(In reply to comment #3)
> Comment on attachment 249700 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=249700&action=review
> 
> > Source/WebKit2/UIProcess/ios/ViewGestureControllerIOS.mm:151
> > +    , m_swipeWaitingForRenderTreeSizeThreshold(false)
> > +    , m_swipeWaitingForRepaint(false)
> > +    , m_swipeWaitingForDidFinishLoad(false)
> > +    , m_swipeWaitingForSubresourceLoads(false)
> > +    , m_swipeWaitingForScrollPositionRestoration(false)
> 
> Should initialize these in the header instead of the constructor. Should do
> the same for other scalars that are being initialized to an “obvious”
> default such as “false” or “0”. Helps keep changes in the different
> per-platform .mm files to a minimum and makes it harder to forget to
> initialize one.

Yes! Will fix. Thanks!
Comment 6 Tim Horton 2015-03-29 19:50:31 PDT
Created attachment 249706 [details]
Patch for landing
Comment 7 Tim Horton 2015-03-30 12:04:02 PDT
http://trac.webkit.org/changeset/182150