Bug 76674 - [Qt] [WK2] Division by zero error in QtViewportInteractionEngine::setItemRectVisible
Summary: [Qt] [WK2] Division by zero error in QtViewportInteractionEngine::setItemRect...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P3 Normal
Assignee: Nobody
URL:
Keywords: Qt
Depends on:
Blocks: 76661
  Show dependency treegraph
 
Reported: 2012-01-19 16:57 PST by Viatcheslav Ostapenko
Modified: 2012-01-20 19:04 PST (History)
2 users (show)

See Also:


Attachments
Patch (1.30 KB, patch)
2012-01-19 17:02 PST, Viatcheslav Ostapenko
no flags Details | Formatted Diff | Diff
Add reviewed by. (1.32 KB, patch)
2012-01-20 16:02 PST, Viatcheslav Ostapenko
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Viatcheslav Ostapenko 2012-01-19 16:57:32 PST
When running WK2 API test sometimes getting division by zero in QtViewportInteractionEngine::setItemRectVisible on this line:

qreal itemScale = m_viewport->width() / itemRect.width();

This happens when webview not yet resized to the window size.
Comment 1 Viatcheslav Ostapenko 2012-01-19 17:02:46 PST
Created attachment 123224 [details]
Patch
Comment 2 Viatcheslav Ostapenko 2012-01-20 16:02:32 PST
Created attachment 123399 [details]
Add reviewed by.
Comment 3 WebKit Review Bot 2012-01-20 19:04:14 PST
Comment on attachment 123399 [details]
Add reviewed by.

Clearing flags on attachment: 123399

Committed r105565: <http://trac.webkit.org/changeset/105565>
Comment 4 WebKit Review Bot 2012-01-20 19:04:19 PST
All reviewed patches have been landed.  Closing bug.