Bug 76674

Summary: [Qt] [WK2] Division by zero error in QtViewportInteractionEngine::setItemRectVisible
Product: WebKit Reporter: Viatcheslav Ostapenko <ostap73>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit.review.bot, zoltan
Priority: P3 Keywords: Qt
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 76661    
Attachments:
Description Flags
Patch
none
Add reviewed by. none

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.