Bug 1264809 - (Part 4) Add comment for FLAG_FORCE_UNIFORM_SCALING. r=dholbert

This commit is contained in:
GuanWen-Chen 2016-08-22 05:04:00 -04:00
parent cd2e02c188
commit 2b403c0acf

View File

@ -195,6 +195,15 @@ interface imgIContainer : nsISupports
* the given image non-uniformly if necessary such that the image's
* viewBox (if specified or implied by height/width attributes) exactly
* matches the viewport rectangle.
*
* FLAG_FORCE_UNIFORM_SCALING: Signal to ClippedImage::OptimalSizeForDest that
* its returned size can only scale the image's size *uniformly* (by the same
* factor in each dimension). We need this flag when painting border-image
* section with SVG image source-data, if the SVG image has no viewBox and no
* intrinsic size. In such a case, we synthesize a viewport for the SVG image
* (a "window into SVG space") based on the border image area, and we need to
* be sure we don't subsequently scale that viewport in a way that distorts
* its contents by stretching them more in one dimension than the other.
*/
const unsigned long FLAG_NONE = 0x0;
const unsigned long FLAG_SYNC_DECODE = 0x1;