Bug 29676 - [Qt] QWebPage::setView() changes incorrectly the viewport size of a QWebGraphicsItem
Summary: [Qt] QWebPage::setView() changes incorrectly the viewport size of a QWebGraph...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: Qt
Depends on:
Blocks:
 
Reported: 2009-09-23 04:21 PDT by J-P Nurmi
Modified: 2009-09-23 18:02 PDT (History)
1 user (show)

See Also:


Attachments
QWebPage::setView(): check if the view actually changes (1.29 KB, patch)
2009-09-23 04:28 PDT, J-P Nurmi
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description J-P Nurmi 2009-09-23 04:21:28 PDT
Prevent QWebPage::setView() from changing the viewport size on the fly in case the view doesn't actually change. QWebPage::setView() is called upon every QWebGraphicsItem::hoverMoveEvent(), which forces the viewport size to be equal to the size of the whole graphics view. The geometry of a single graphics item rarely matches the geometry of the whole graphics view.
Comment 1 J-P Nurmi 2009-09-23 04:28:28 PDT
Created attachment 39987 [details]
QWebPage::setView(): check if the view actually changes
Comment 2 Simon Hausmann 2009-09-23 14:40:49 PDT
Comment on attachment 39987 [details]
QWebPage::setView(): check if the view actually changes

r=me. Good catch :)
Comment 3 WebKit Commit Bot 2009-09-23 18:02:11 PDT
Comment on attachment 39987 [details]
QWebPage::setView(): check if the view actually changes

Clearing flags on attachment: 39987

Committed r48693: <http://trac.webkit.org/changeset/48693>
Comment 4 WebKit Commit Bot 2009-09-23 18:02:14 PDT
All reviewed patches have been landed.  Closing bug.