} else if (sr.y > iframeRect.height) { } else if (sr.y > iframeRect.height) { return NS_OK; return NS_OK; } } } } // Multiple paint rects may have been coalesced into a bounding box, so // ensure that this rect is actually within the clip region before we draw. nsCOMPtr<nsIRegion> clipRegion; GetClipRegion(getter_AddRefs(clipRegion)); if (clipRegion && !clipRegion->ContainsRect(dr.x, dr.y, dr.width, dr.height)) return NS_OK; return img->Draw(*this, surface, sr.x, sr.y, sr.width, sr.height, return img->Draw(*this, surface, sr.x, sr.y, sr.width, sr.height, dr.x, dr.y, dr.width, dr.height); dr.x, dr.y, dr.width, dr.height); } } /* [noscript] void drawTile (in imgIContainer aImage, in nscoord aXImageStart, i
n nscoord aYImageStart, [const] in nsRect aTargetRect); *//* [noscript] void drawTile (in imgIContainer aImage, in nscoord aXImageStart, i
n nscoord aYImageStart, [const] in nsRect aTargetRect); */ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |