Extend invalidated region by one source row in each direction so that we fully cover the rows in a scaled image which may be drawn using a given source row. This fixes the "white lines" problem with scaled images (bug 222901). r=pavlov, sr=tor.

This commit is contained in:
bryner@brianryner.com
2004-08-28 23:59:15 +00:00
parent bbaf085932
commit 0d6e937356
4 changed files with 88 additions and 30 deletions

View File

@@ -230,10 +230,10 @@ private:
PRBool IsPendingLoad(imgIContainer* aContainer) const;
/**
* Helper to convert a rect in pixels to one in twips using the
* prescontext's p2t factor
* Function to convert a dirty rect in the source image to a dirty
* rect for the image frame.
*/
nsRect ConvertPxRectToTwips(const nsRect & aRect) const;
nsRect SourceRectToDest(const nsRect & aRect);
/**
* Function to call when a load fails; this handles things like alt