WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
82600
[Qt][WK2] contentViewportChanged is triggered twice after gesture end
https://bugs.webkit.org/show_bug.cgi?id=82600
Summary
[Qt][WK2] contentViewportChanged is triggered twice after gesture end
Balazs Kelemen
Reported
2012-03-29 05:24:40 PDT
Not a very big issue, just a small bug I have noticed. After a gesture ended, we clear the ViewportUpdateDeferrer, and it emits contentResumeRequested and contentViewportChanged (via the interaction engine). The first is connected to QQuickWebViewFlickablePrivate::_q_resume the second is to QQuickWebViewFlickablePrivate::_q_contentViewportChanged. But _q_resume also calls directly the second which is unnecessary and there is no check later so we will schedule a layerflush in LayerTreeHostQt (and send a message unnecessarily). I have removed the call in _q_resume, put a call to _q_contentViewportChanged to onComponentComplete where _q_resume is called explicitly, and it seems like everything works fine with it.
Attachments
Patch
(1.90 KB, patch)
2012-03-29 05:29 PDT
,
Balazs Kelemen
kenneth
: review-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Balazs Kelemen
Comment 1
2012-03-29 05:29:33 PDT
Created
attachment 134555
[details]
Patch
Kenneth Rohde Christiansen
Comment 2
2012-03-29 05:32:30 PDT
Comment on
attachment 134555
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=134555&action=review
> Source/WebKit2/ChangeLog:11 > + [Qt][WK2] contentViewportChanged is triggered twice after gesture end > +
https://bugs.webkit.org/show_bug.cgi?id=82600
> + > + Reviewed by NOBODY (OOPS!). > + > + Remove explicit call to _q_contentViewportChanged from _q_resume. > + It is called through the ViewportUpdateDeferrer when necessary. > + > + * UIProcess/API/qt/qquickwebview.cpp:
I am not convinced which is why I havent removed this myself. In the future we will also call resume when brought back fro the background (visibility change) so we will need to make sure to call this on resume. it also seems like the proper place.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug