Bug 759775 - Update checkerboard telemetry code to handle RTL pages. r=Cwiiis

This commit is contained in:
Kartikaya Gupta 2012-06-06 09:56:48 -04:00
parent c33b5c2b62
commit 86c4abe906

View File

@ -623,7 +623,7 @@ public class LayerRenderer {
/* restrict the viewport to page bounds so we don't
* count overscroll as checkerboard */
if (!viewport.intersect(0, 0, mPageRect.width(), mPageRect.height())) {
if (!viewport.intersect(mPageRect)) {
/* if the rectangles don't intersect
intersect() doesn't change viewport
so we set it to empty by hand */