Commit Graph

15 Commits

Author SHA1 Message Date
Andrew Osmond
a1f45db66c Bug 1284117 - Make RasterImage and SourceBuffer handle input stream read errors. r=edwin 2016-10-13 10:09:35 -04:00
Nicholas Nethercote
8f3c6e7c32 Bug 1294645 - Don't use NS_CALLBACK for callbacks in nsI{Input,Output,UnicharInput},Stream.idl. r=froydnj.
Slightly less than half (93 / 210) of the NS_METHOD instances in the codebase
are because of the use of NS_CALLBACK in
nsI{Input,Output,UnicharInput},Stream.idl. The use of __stdcall on Win32 isn't
important for these callbacks because they are only used as arguments to
[noscript] methods.

This patch converts them to vanilla |nsresult| functions. It increases the size
of xul.dll by about ~600 bytes, which is about 0.001%.
2016-08-12 17:36:22 +10:00
Seth Fowler
ea35ee202f Bug 1286161 (Part 1) - Expose SourceBuffer and SurfaceCache constants which are useful for testing. r=edwin 2016-07-16 00:36:58 -07:00
Seth Fowler
09f1b5b64f Bug 1286175 - Allow SourceBufferIterator users to specify how many bytes to advance. r=edwin 2016-07-16 00:36:56 -07:00
Seth Fowler
2219d4fdfb Bug 1286165 (Part 1) - Allow advancing a SourceBufferIterator without an IResumable. r=edwin 2016-07-15 17:48:57 -07:00
Seth Fowler
947e235d93 Bug 1286170 - Handle move-assignment of SourceBufferIterators correctly. r=edwin 2016-07-15 17:48:57 -07:00
Seth Fowler
36ff696640 No bug - Add an NS_WARNING to report when we hit the SurfaceCache-size heuristic limit for SourceBuffer. r=me DONTBUILD 2016-07-12 00:31:59 -07:00
Seth Fowler
ec43b8d4b7 Bug 1284032 - Fix an assertion in SourceBuffer::Compact() when we have non-zero capacity but zero length. r=edwin 2016-07-07 15:50:42 -07:00
Seth Fowler
1ee7db81d7 Bug 1196065 - Add sanity tests for image decoders. r=tn 2015-08-19 14:04:01 -07:00
Sebastian Hengst
427fef72b8 Backed out changeset 3cafd6b3967b (bug 1196065) for OSX 10.7 static build failure. r=backout 2015-08-19 11:15:57 +02:00
Seth Fowler
ae2dc8fca7 Bug 1196065 - Add sanity tests for image decoders. r=tn 2015-08-19 00:41:30 -07:00
Seth Fowler
a2a1d92123 Bug 1181863 (Part 1) - Add support for reading from nsIInputStreams directly to SourceBuffer. r=tn 2015-07-31 18:10:29 -07:00
Nicholas Nethercote
37d91ed8fe Bug 1188745 - Rename nsTArray::SizeOfExcludingThis() as ShallowSizeOfExcludingThis(). r=froydnj.
This makes it clearer that, unlike how SizeOf*() functions usually work, this
doesn't measure any children hanging off the array.

And do likewise for nsTObserverArray.
2015-07-28 23:24:24 -07:00
Birunthan Mohanathas
956e8c7eca Bug 968520 - Add mozilla::fallible to FallibleTArray::AppendElement calls. r=froydnj 2015-05-28 11:07:44 -07:00
Birunthan Mohanathas
30b80956a3 Bug 1038536 - Flatten image/src/ directory. r=seth 2015-05-14 20:52:05 -07:00