Commit Graph
8 Commits
Author SHA1 Message Date
wolfbeast 3cd72d8a44 Make vector image surface caching smarter.
This resolves #91.
2018-04-05 09:58:06 +02:00
janekptacijarabaci 3e900b62c3 CSS: inline-block with a display:block <input> child element has a wrong baseline (HTML forms) 2018-03-12 09:50:12 +01:00
wolfbeast 9afc4c21ac Remove the use of GetProcAddress() for shell32
This avoids manually hooking into shell32.dll and using the native shell API instead.
Tag mcp-graveyard/UXP#22.
2018-02-19 10:00:25 +01:00
wolfbeast 4ab75d04ac Use int instead of uint for vector dimension cap. 2018-02-04 12:35:44 +01:00
wolfbeast 5731676ec7 Don't cache vector images in the surface cache if they are too large.
A dimension of 3000 largest size x or y should cover all common caching cases for SVG icons and web app elements, but not caching large vector rasters that would exhaust the cache.
This limit is a royal 36MB/element (3000x3000x4) as cap (if the SVG is square). This avoids performance regressions when repeatedly scaling large vector images, but also allows for large SVG backgrounds to be cached.
It allows for the bad practice of slapping a large SVG on a site as html background, considering they are likely, even when using large sizes for "responsive" layout, not going to exceed 3000 px in the largest dimension (and if they do, the web designer needs to be slapped with a big trout).
2018-02-04 00:07:05 +01:00
wolfbeast 4bbe82566c Add WebP content sniffing code. 2018-02-03 10:05:56 +01:00
wolfbeast 001fa09964 Implement WebP image decoder. 2018-02-03 10:03:50 +01:00
Matt A. Tobin ad18d877dd Add m-esr52 at 52.6.0 2018-02-02 04:16:08 -05:00