Commit graph

75 commits

Author SHA1 Message Date
adeshkp
aea50f182f Telemetry: Remove stubs and related code 2019-02-16 00:24:04 +08:00
wolfbeast
f52945acfa Avoid overflow in nsPNGEncoder::WriteCallback. 2019-02-16 00:22:15 +08:00
wolfbeast
989fd6953d Fix debug assertion.
See: 622098073e (commitcomment-31390051)
2019-02-16 00:20:22 +08:00
wolfbeast
82e68ebad1 Fix blank pixel color for truncated GIFs 2019-02-16 00:20:20 +08:00
wolfbeast
e03052f3d3 Split out FrameTimeout into its own header file for re-use. 2019-02-16 00:20:18 +08:00
wolfbeast
7a3a9214a5 Unrefactor mRawVeggies back to mVBuffMeat ;P
(mRawSurface -> mVBuf)
2019-02-16 00:20:17 +08:00
wolfbeast
d3b77513d5 Fix pasta error 2019-02-16 00:20:15 +08:00
wolfbeast
7937138cb0 Bug 1462355 - Part 1c. Make individual image decoders to use updated Decoder/SurfacePipe methods.
Extend this change to nsWebPDecoder.cpp
2019-02-16 00:20:14 +08:00
wolfbeast
a08160ac44 Bug 1462355 - Part 1b. Update Decoder and SurfacePipe plumbing to use updated imgFrame methods. 2019-02-16 00:20:12 +08:00
wolfbeast
75cb341c44 Bug 1462355 - Part 1a. Make imgFrame animation parameters threadsafe.
We currently choose to set the animation parameters (blend method, blend
rect, disposal method, timeout) in imgFrame::Finish instead of
imgFrame::InitForDecoder. The decoders themselves already have access to
the necessary information at the time InitForDecoder is called, so there
is no reason to do this. Moving the configuration to initialization will
allow us to relax the mutex protection on these parameters.

This part simply reorganizes imgFrame, and subsequent parts will
introduce the necessary changes to SurfacePipe and decoders.
2019-02-16 00:20:11 +08:00
wolfbeast
dfe6efae2f Port WebP decoder changes.
This breaks animated WebP for the moment, but adds QCMS color management and lexer changes.
Tag #831
2019-02-16 00:20:09 +08:00
wolfbeast
8c8145e620 Remove all C++ Telemetry Accumulation calls.
This creates a number of stubs and leaves some surrounding code that may be irrelevant (eg. recorded time stamps, status variables).
Stub resolution/removal should be a follow-up to this.
2019-02-16 00:12:32 +08:00
wolfbeast
ee622ef7cc Free the decoded image buffer before deleting the WebP decoder.
This should solve #483.
2019-02-16 00:02:45 +08:00
Pale Moon
1b173ad9e4 Perform some sanity checks on nsMozIconURI. 2019-02-16 00:01:30 +08:00
Gaming4JC
d4ac94cf3e Remove support and tests for HSTS priming from the tree. Fixes #384 2019-02-15 23:59:39 +08:00
wolfbeast
26ca4670fe Limit PNG image dimensions. 2019-02-15 23:59:28 +08:00
janekptacijarabaci
8dccc387f9 Bug 1323683 - Fold nsIURIWithQuery into nsIURI
native in moebius
2019-02-15 23:49:27 +08:00
Andrew Osmond
8b03cc774b Bug 1409440. r=tnikkel, a=RyanVM 2019-02-15 23:47:06 +08:00
wolfbeast
c8f4fb3b7d Make vector image surface caching smarter.
This resolves #91.
2019-02-15 23:40:36 +08:00
janekptacijarabaci
67a10f51a0 CSS: inline-block with a display:block <input> child element has a wrong baseline (HTML forms) 2019-02-15 23:36:15 +08:00
wolfbeast
0b2d3c5cfa Use int instead of uint for vector dimension cap. 2019-02-15 23:28:55 +08:00
wolfbeast
815f44e7cb 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).
2019-02-14 14:39:56 +08:00
wolfbeast
8b0dd2f40b Add WebP content sniffing code. 2019-02-14 14:36:35 +08:00
wolfbeast
9121db73a2 Implement WebP image decoder. 2019-02-14 14:36:33 +08:00
Roy Tam
dcd9973243 import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00