Bug 501627. Take out unncessary and harmful surface size check. r=jrmuizelaar

This commit is contained in:
Robert O'Callahan 2009-11-10 14:00:36 +13:00
Родитель 6b06693b5b
Коммит 894f1656d4
4 изменённых файлов: 15 добавлений и 5 удалений

Просмотреть файл

@ -0,0 +1,7 @@
<!DOCTYPE HTML>
<html reftest-zoom="2">
<body style="overflow:hidden"
background="data:image/gif;base64,R0lGODlhEgASALMAANbv9////8bp9LXi8aTc7pPV6////////////////////////////////////////ywAAAAAEgASAAAEIlCASaul8uo6tgfdpxHiWF7FaaVqe2YqfIYqfZItrrK7K0YAOw==">
<div style="height: 2000px;"></div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,7 @@
<!DOCTYPE HTML>
<html reftest-zoom="2">
<body style="overflow:hidden"
background="data:image/gif;base64,R0lGODlhEgASALMAANbv9////8bp9LXi8aTc7pPV6////////////////////////////////////////ywAAAAAEgASAAAEIlCASaul8uo6tgfdpxHiWF7FaaVqe2YqfIYqfZItrrK7K0YAOw==">
<div style="height: 100000px;"></div>
</body>
</html>

Просмотреть файл

@ -1300,6 +1300,7 @@ fails-if(MOZ_WIDGET_TOOLKIT!="cocoa") == 488692-1.html 488692-1-ref.html # needs
== 501257-1a.html 501257-1-ref.html
== 501257-1b.html 501257-1-ref.html
== 501257-1.xhtml 501257-1-ref.xhtml
== 501627-1.html 501627-1-ref.html
== 502288-1.html 502288-1-ref.html
== 502942-1.html 502942-1-ref.html
== 502447-1.html 502447-1-ref.html

Просмотреть файл

@ -464,11 +464,6 @@ void imgFrame::Draw(gfxContext *aContext, gfxPattern::GraphicsFilter aFilter,
// At this point, we've taken care of mSinglePixel images, images with
// aPadding, and partially-decoded images.
if (!AllowedImageSize(fill.size.width + 1, fill.size.height + 1)) {
NS_WARNING("Destination area too large, bailing out");
return;
}
// Compute device-space-to-image-space transform. We need to sanity-
// check it to work around a pixman bug :-(
// XXX should we only do this for certain surface types?