forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1456558 - Part 2. Implement factor of 2 scaling support for SVGs …
…in the surface cache. r=tnikkel There is one main difference between raster images and vector images with respect to factor of 2 scaling. Vector images may be scaled infinitely and so we need to extend factor of 2 scaling to permit growing instead of just shrinking. Also, we don't want to scale infinitely, so we should configure a maximum size limit. This size limit will apply even outside of factor of 2 scaling, and so the caller (VectorImage) will need to be careful to take this into account.
- Loading branch information
Showing
3 changed files
with
91 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters