Summary: | [Qt][WK2] Changing WebView.contentY and WebView.contentX does not redraw content | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Cornelius Hald <hald> | ||||||||
Component: | WebKit Qt | Assignee: | Andras Becsi <abecsi> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | abecsi, benjamin, cmarcelo, hausmann, jturcotte, menard, webkit.review.bot | ||||||||
Priority: | P3 | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | PC | ||||||||||
OS: | Linux | ||||||||||
Attachments: |
|
Description
Cornelius Hald
2013-01-30 06:13:44 PST
Created attachment 185483 [details]
Screenshot shows what happens after changing the contentY property.
Created attachment 187888 [details]
Patch
Comment on attachment 187888 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=187888&action=review > Source/WebKit2/UIProcess/qt/PageViewportControllerClientQt.cpp:-135 > void PageViewportControllerClientQt::flickMoveEnded() > { > // This method is called on the end of the pan or pan kinetic animation. > > - m_ignoreViewportChanges = true; How does this react now if the page gets scrolled by PageViewportController::pageDidRequestScroll, wouldn't that trigger an unnecessary update to the web process? Created attachment 188057 [details]
Patch
(In reply to comment #3) > (From update of attachment 187888 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=187888&action=review > > > Source/WebKit2/UIProcess/qt/PageViewportControllerClientQt.cpp:-135 > > void PageViewportControllerClientQt::flickMoveEnded() > > { > > // This method is called on the end of the pan or pan kinetic animation. > > > > - m_ignoreViewportChanges = true; > > How does this react now if the page gets scrolled by PageViewportController::pageDidRequestScroll, wouldn't that trigger an unnecessary update to the web process? Indeed, the previous patch missed the removal of the update in setViewportPosition. Comment on attachment 188057 [details]
Patch
Looks good, that's not what I meant, but good if that made you catch something :)
You just need Owners to sign this off.
(In reply to comment #6) > (From update of attachment 188057 [details]) Benjamin, can you sign off on this? :) Comment on attachment 188057 [details] Patch Clearing flags on attachment: 188057 Committed r143195: <http://trac.webkit.org/changeset/143195> All reviewed patches have been landed. Closing bug. |