RESOLVED FIXED 100960
[BlackBerry] Use clipped background rect in backing store
https://bugs.webkit.org/show_bug.cgi?id=100960
Summary [BlackBerry] Use clipped background rect in backing store
Leo Yang
Reported 2012-11-01 08:36:20 PDT
1190 void BackingStorePrivate::paintDefaultBackground(const Platform::IntRect& dstRect, Platform::ViewportAccessor* viewportAccessor, bool flush) 1191 { 1192 Platform::IntRect clippedDstRect = dstRect; 1193 1194 // Because of rounding it is possible that overScrollRect could be off-by-one larger 1195 // than the surface size of the window. We prevent this here, by clamping 1196 // it to ensure that can't happen. 1197 clippedDstRect.intersect(Platform::IntRect(Platform::IntPoint(0, 0), surfaceSize())); 1198 1199 if (clippedDstRect.isEmpty()) 1200 return; 1201 1202 // We have to paint the default background in the case of overzoom and 1203 // make sure it is invalidated. 1204 const Platform::IntRect pixelContentsRect = viewportAccessor->pixelContentsRect(); 1205 Platform::IntRectRegion overScrollRegion = Platform::IntRectRegion::subtractRegions( 1206 dstRect, viewportAccessor->pixelViewportFromContents(pixelContentsRect)); In line 1206 it is wrongly using unclipped back ground destination rect which cause platform code ASSERT.
Attachments
Patch (2.45 KB, patch)
2012-11-01 08:47 PDT, Leo Yang
no flags
Leo Yang
Comment 1 2012-11-01 08:47:00 PDT
Yong Li
Comment 2 2012-11-01 08:49:46 PDT
Comment on attachment 171862 [details] Patch r+/cq+ as it is internally reviewed by Arvid
WebKit Review Bot
Comment 3 2012-11-01 09:24:53 PDT
Comment on attachment 171862 [details] Patch Clearing flags on attachment: 171862 Committed r133184: <http://trac.webkit.org/changeset/133184>
WebKit Review Bot
Comment 4 2012-11-01 09:24:56 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.