Timothy Nikkel
50b38338e0
Bug 1194837. Don't use the inverse orientation matrix when computing the image space invalidate rect. r=seth
...
The orientation matrix converts from decoded image space to oriented image space. The invalidation rect is in decoded image space. So we need to use the orientation matrix to convert it to oriented image space, not it's inverse.
2015-09-26 01:26:18 -05:00
Carsten "Tomcat" Book
363e40e298
merge mozilla-inbound to mozilla-central a=merge
2015-09-28 14:13:24 +02:00
Nicholas Nethercote
342466f878
Bug 1208345 - Remove gfxContext::GraphicsOperator. r=jwatt.
...
Also...
- Rename various "operator" identifiers as "op" to match |CompositionOp|.
- Rename |nsBackgroundLayerState::mCompositingOp| as |mCompositionOp| to match
|CompositionOp|.
- Remove some deprecated functions that are no longer needed.
--HG--
extra : rebase_source : 74e9b6eecf6f442e27cc18fd4ae6f668a45188aa
2015-09-24 22:38:58 -07:00
Yoshi Huang
d38b78ae54
Bug 1165466 - Fix up docshell and loadcontext inheriting code in nsIScriptSecurityManager. r=bholley
2015-09-23 16:10:21 +08:00
Seth Fowler
ae6de3f01a
Bug 1207378 (Part 2) - Use Downscaler to remove first-frame padding when downscaling GIFs. r=tn
2015-09-26 01:36:23 -07:00
Seth Fowler
ba99adc235
Bug 1207378 (Part 1) - Add support for a frame rect to Downscaler. r=tn
2015-09-26 01:36:19 -07:00
Nicholas Nethercote
842dd1cf5a
Bug 1207741 - Remove gfxIntSize. r=nical.
...
gfxIntSize is just a typedef of gfx::IntSize, so this is very mechanical. The
only tricky part is deciding for each occurrence whether to replace it with
IntSize, gfx::IntSize or mozilla::gfx::IntSize; in all cases I went with the
shortest one that worked given the existing "using namespace" declarations.
--HG--
extra : rebase_source : 67fd15f87222b16defa70ef795c6d77dfacf1c36
2015-09-23 11:49:05 -07:00
Nathan Froyd
5761751aa3
Bug 1207245 - part 1 - move RefCounted<T> to its own file
...
Various bits depend on RefPtr.h to provide RefCounted<T> and RefPtr<T>.
It will be easier to manage an automatic conversion from RefPtr<T> to
nsRefPtr<T> if we split out the dependency on RefCounted<T> first.
2015-09-22 21:27:34 -04:00
Daniel Holbert
3efe8e4b74
Bug 1205923
: Make VectorImage::GetWidth/GetHeight set outparam to 0 (not -1) on failure, to accomodate callers that don't check error codes. r=seth
2015-09-18 15:33:43 -07:00
Seth Fowler
a1d7413fd3
Bug 1195878 - If we detect animation during a full decode, drop the results of the full decode on the floor. r=tn
2015-09-23 16:53:40 -07:00
Chris Peterson
71920a9550
Bug 1207030 - Enable -Wshadow flag in more directories that have no -Wshadow warnings. r=glandium
2015-09-22 21:39:03 -07:00
Nathan Froyd
b4f9f4b790
Bug 1207183 - micro-optimize removing work items from DecodePool's queues; r=seth
...
We're transferring ownership out of the queue; there's no reason for us
to pay for an AddRef/Release pair here.
2015-09-22 19:15:12 -04:00
Carsten "Tomcat" Book
651a168616
merge mozilla-inbound to mozilla-central a=merge
...
--HG--
rename : toolkit/devtools/server/actors/styleeditor.js => devtools/server/actors/styleeditor.js
rename : toolkit/devtools/server/actors/stylesheets.js => devtools/server/actors/stylesheets.js
rename : toolkit/devtools/gcli/commands/screenshot.js => devtools/shared/gcli/commands/screenshot.js
2015-09-22 12:35:13 +02:00
Seth Fowler
7a466fae73
Bug 1206836 - When downscaling ICOs, downscale the AND mask as well. r=tn a=KWierso
2015-09-21 19:52:31 -07:00
Seth Fowler
c1229ef66c
Bug 1146663 (Part 5) - Require that all image decoders support downscale-during-decode. r=tn
2015-09-19 16:21:08 -07:00
Seth Fowler
df31b64d6c
Bug 1146663 (Part 4) - Make all RasterImages support downscale-during-decode. r=tn
2015-09-19 16:21:05 -07:00
Seth Fowler
b060891f89
Bug 1146663 (Part 3) - Make it impossible to deoptimize imgFrames. r=tn
2015-09-19 16:21:02 -07:00
Seth Fowler
6b70afe46f
Bug 1146663 (Part 2) - Remove the concept of lifetimes from the SurfaceCache. r=dholbert
2015-09-19 16:20:59 -07:00
Seth Fowler
3e6e1a075a
Bug 1146663 (Part 1) - Remove HQ scaling, which is now dead code. r=tn
2015-09-19 16:20:56 -07:00
Seth Fowler
a69b49d8d7
Bug 1191347 - Explicitly release surfaces on the main thread in TestDecodeToSurface. r=me
2015-09-19 15:47:36 -07:00
Seth Fowler
93cbaca5e0
Bug 1201796 (Part 4) - Add downscale-during-decode support for the ICO decoder. r=tn
2015-09-19 13:34:14 -07:00
Seth Fowler
ba6ea7f0cc
Bug 1201796 (Part 3) - Enable downscale-during-decode for imgITools::EncodeScaledImage(). r=tn
2015-09-19 13:34:12 -07:00
Seth Fowler
ddc24ded58
Bug 1201796 (Part 2) - Add GetFrameAtSize() to support downscale-during-decode for GetFrame() use cases. r=tn
2015-09-19 13:34:09 -07:00
Seth Fowler
30373cd6eb
Bug 1201796 (Part 1) - Treat ICOs with wrong widths and heights as corrupt. r=tn
...
--HG--
rename : image/test/reftest/ico/ico-bmp-corrupted/invalid_ico_height.ico => image/test/crashtests/invalid_ico_height.ico
rename : image/test/reftest/ico/ico-bmp-corrupted/invalid_ico_width.ico => image/test/crashtests/invalid_ico_width.ico
2015-09-19 13:34:06 -07:00
Christoph Kerschbaumer
9f1e9e2eaa
Bug 1048048 - add preload content policy types for images (r=seth)
...
--HG--
extra : source : 88c2333ff7455b6988eb8d6ccc5e92b414a7ccf8
2015-09-20 14:55:59 -07:00
Wes Kocher
cd079d2bf9
Backed out 7 changesets (bug 1048048) for android crashes in various chunks CLOSED TREE
...
Backed out changeset b5abe23a4ea5 (bug 1048048)
Backed out changeset 4f91b10e8be0 (bug 1048048)
Backed out changeset 450d4a13c90e (bug 1048048)
Backed out changeset 6a727c40eb68 (bug 1048048)
Backed out changeset 88c2333ff745 (bug 1048048)
Backed out changeset 740ab1ecd079 (bug 1048048)
Backed out changeset 02c6d6aef163 (bug 1048048)
2015-09-21 09:08:34 -07:00
Christoph Kerschbaumer
19dc79ddbb
Bug 1048048 - add preload content policy types for images (r=seth)
2015-09-20 14:55:59 -07:00
Seth Fowler
56f195af33
Bug 1196066 (Part 4) - Enable the ICOMultiChunk test, which now passes. r=tn
2015-09-18 23:12:32 -07:00
Seth Fowler
8adce05f13
Bug 1196066 (Part 3) - Rewrite nsICODecoder to use StreamingLexer. r=tn
2015-09-18 23:12:30 -07:00
Seth Fowler
5e69f17eb2
Bug 1196066 (Part 2) - Add a streaming lexing framework to ImageLib. r=tn
2015-09-18 23:12:27 -07:00
Seth Fowler
214922253b
Bug 1196066 (Part 1) - Fix bad directory entries in two of our ICO reftests. r=tn
2015-09-18 23:12:24 -07:00
Daniel Holbert
2a984cec5a
backout 757560ab8de1 (bug 1205923
) due to linux64 & winXP reftest failures
2015-09-18 18:57:38 -07:00
Daniel Holbert
e3c5813b68
Bug 1205923
: Make VectorImage::GetWidth/GetHeight leave outparam untouched on failure, to avoid returning -1 to callers that don't check error codes. r=seth
2015-09-18 15:33:43 -07:00
Wes Kocher
08de06967a
Backed out 8 changesets (bug 1201796, bug 1196066) for mulet gij(28) failures CLOSED TREE
...
Backed out changeset 159d5d2946d3 (bug 1201796)
Backed out changeset 958988218976 (bug 1201796)
Backed out changeset 494e7553d641 (bug 1201796)
Backed out changeset d58149411b7d (bug 1201796)
Backed out changeset 35bd769b49f8 (bug 1196066)
Backed out changeset e4f3d4279b4c (bug 1196066)
Backed out changeset ca467297fa07 (bug 1196066)
Backed out changeset b4851ce6637d (bug 1196066)
--HG--
rename : image/test/crashtests/invalid_ico_height.ico => image/test/reftest/ico/ico-bmp-corrupted/invalid_ico_height.ico
rename : image/test/crashtests/invalid_ico_width.ico => image/test/reftest/ico/ico-bmp-corrupted/invalid_ico_width.ico
extra : rebase_source : 5232674f1cf0ef4d7f70568f627547c0151a801f
2015-09-18 13:01:25 -07:00
Seth Fowler
b48b5d99b8
Bug 1201796 (Part 4) - Add downscale-during-decode support for the ICO decoder. r=tn
2015-09-18 10:54:40 -07:00
Seth Fowler
8ccda9e72f
Bug 1201796 (Part 3) - Enable downscale-during-decode for imgITools::EncodeScaledImage(). r=tn
2015-09-18 10:54:38 -07:00
Seth Fowler
cbc63cc08f
Bug 1201796 (Part 2) - Add GetFrameAtSize() to support downscale-during-decode for GetFrame() use cases. r=tn
2015-09-18 10:54:35 -07:00
Seth Fowler
2035a81b8d
Bug 1201796 (Part 1) - Treat ICOs with wrong widths and heights as corrupt. r=tn
...
--HG--
rename : image/test/reftest/ico/ico-bmp-corrupted/invalid_ico_height.ico => image/test/crashtests/invalid_ico_height.ico
rename : image/test/reftest/ico/ico-bmp-corrupted/invalid_ico_width.ico => image/test/crashtests/invalid_ico_width.ico
2015-09-18 10:54:32 -07:00
Seth Fowler
66c5f46c8d
Bug 1196066 (Part 4) - Enable the ICOMultiChunk test, which now passes. r=tn
2015-09-18 10:54:30 -07:00
Seth Fowler
dad8dccdb4
Bug 1196066 (Part 3) - Rewrite nsICODecoder to use StreamingLexer. r=tn
2015-09-18 10:54:27 -07:00
Seth Fowler
e1c5f39aff
Bug 1196066 (Part 2) - Add a streaming lexing framework to ImageLib. r=tn
2015-09-18 10:54:24 -07:00
Seth Fowler
9c22e557a2
Bug 1196066 (Part 1) - Fix bad directory entries in two of our ICO reftests. r=tn
2015-09-18 10:54:21 -07:00
Seth Fowler
b32c629237
Bug 1194058 (Part 2) - Add downscale-during-decode support for the GIF decoder. r=tn
2015-09-17 15:03:34 -07:00
Seth Fowler
a94eef949b
Bug 1194058 (Part 1) - Add Deinterlacer to allow Downscaler to work with interlaced images. r=tn
2015-09-17 15:03:31 -07:00
Nicholas Nethercote
6f036921dc
Bug 1203427 (part 1) - Add nsExpirationTracker::mName. r=froydnj.
...
There are many sub-classes of nsExpirationTracker. In order to distinguish them
nicely in the logging of timer firings, it's necessary to manually name each
one. (This wouldn't be necessary if there was a way to stringify template
parameters, but there isn't.)
--HG--
extra : rebase_source : 89b99e9dbb2a806bd21145d04a5e023794643b61
2015-09-09 21:07:07 -07:00
Shu-yu Guo
64db2267cf
Bug 1202902
- Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff)
2015-09-15 11:19:45 -07:00
Seth Fowler
a27fe0e4ca
Bug 1201763 - Add downscale-during-decode support for the ICON decoder. r=tn
2015-09-08 22:07:18 -07:00
Seth Fowler
cf30b4b43c
No bug - Fix out-of-date comment in Decoder.cpp. r=me
2015-09-08 22:07:15 -07:00
Seth Fowler
9b67d0789b
Bug 1062066 (Part 4) - Add downscale-during-decode support for the BMP decoder. r=tn
2015-09-08 22:07:12 -07:00
Seth Fowler
4010153517
Bug 1062066 (Part 3) - Only mark BMP surfaces as transparent if they actually have alpha data. r=tn
2015-09-08 22:07:09 -07:00
Seth Fowler
1d9c6c1973
Bug 1062066 (Part 2) - Add a Downscaler API to clear a row. r=tn
2015-09-08 22:07:06 -07:00
Seth Fowler
e8b9fdd16f
Bug 1062066 (Part 1) - Add support for vertically flipping downscaler output. r=tn
2015-09-08 22:07:04 -07:00
Jeff Muizelaar
eb58e4fc03
Bug 1180225. Make convolver more like upstream. r=seth
...
This fixes uninitialised reads.
--HG--
extra : rebase_source : c7f50d9ea7a56d845ccb2f324e3e73fbd2e83003
2015-08-27 16:06:37 -04:00
Hiroyuki Ikezoe
a869b25f81
Bug 1151694 - Part 2 - imgTools should be inside mozilla::image namespace. r=bbirtles
...
--HG--
extra : rebase_source : c4b20c6f962403d863842dcbc297e9cdc724cb80
2015-09-03 23:00:00 +02:00
Michael Layzell
0d0978cd82
Bug 1200413 - Part 2: Make lambdas in ProgressTracker.cpp capture strong references, r=seth
2015-09-01 18:20:48 -04:00
Seth Fowler
b125dc7714
Bug 1060609 (Part 3) - Add tests that interlaced and non-interlaced PNGs have the same downscaling behavior. r=tn
2015-09-01 14:13:20 -07:00
Seth Fowler
957709108c
Bug 1060609 (Part 2) - Add downscale-during-decode support for the PNG decoder. r=tn,f=glennrp
2015-09-01 14:13:17 -07:00
Seth Fowler
48ffa83481
Bug 1060609 (Part 1) - Disable downscale-during-decode when HQ scaling is disabled. r=tn
2015-09-01 14:13:15 -07:00
Nicholas Nethercote
f44287005f
Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
...
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.
--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Ryan VanderMeulen
3e3e1cbd1d
Merge m-c to fx-team. a=merge
2015-08-26 14:34:15 -04:00
Gijs Kruitbosch
1aa68e8c0f
Bug 1173214, r=seth,bz
...
--HG--
extra : commitid : 4vG71pjrBIY
2015-08-26 10:24:04 +01:00
Seth Fowler
3460e34af9
Bug 1194900 - Stop deciding when to send invalidations in nsPNGDecoder and let Decoder handle it. r=tn
2015-08-24 19:49:36 -07:00
Seth Fowler
1851d87ac0
Bug 1196476 - Replace ProgressTracker::FirstObserverIs() with a simpler mechanism on imgRequest. r=tn
2015-08-24 19:49:33 -07:00
Seth Fowler
e4de973baa
Bug 1194912 (Part 2) - Store ProgressTracker observers in a copy-on-write hash table, and dispatch notifications to them using a template. r=tn
2015-08-25 16:26:43 -07:00
Seth Fowler
a6f5d15b56
Bug 1194912 (Part 1) - Add CopyOnWrite<T> to support automatic copy-on-write for recursive writes to data structures. r=tn
2015-08-25 16:26:39 -07:00
Glenn Randers-Pehrson
feec7ca127
Bug 1187569
- PNGs getting stuck in a pixelated state. r=seth
...
--HG--
extra : amend_source : 9efb698c7535f8817618da390c6316e86306a735
2015-08-20 14:17:10 -07:00
Seth Fowler
20e4c2ad62
Bug 1196065 - Add sanity tests for image decoders. r=tn
...
--HG--
extra : rebase_source : d8b4912e671abe9fa041ee6ca906ba8f23a70ebb
2015-08-19 14:04:01 -07:00
Justin Wood
b2d2dffd0c
Bug 1195499 - Adjust fuzz and skips for win10. r=Bas
...
--HG--
extra : rebase_source : ad917963397787a137226d44c19b9669cca89430
2015-08-18 13:19:05 -04:00
Sebastian Hengst
05cd1ebf4f
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
9c99214046
Bug 1196065 - Add sanity tests for image decoders. r=tn
2015-08-19 00:41:30 -07:00
Seth Fowler
9684bbff0a
Bug 1187401 (Part 3) - For consistency, call DoError if SetMetadata sees a negative size. r=tn
...
--HG--
extra : rebase_source : 6a3c51769874b4f2b8e3b9354ff6ce0071d7a6c5
2015-08-18 10:19:28 -07:00
Seth Fowler
be0cccfa8a
Bug 1187401 (Part 2) - Eliminate the nsresult return value from RasterImage::SetMetadata, since it's not used anymore. r=tn
...
--HG--
extra : rebase_source : dc15e712deda9fe140cb1adc1c88b0c968307852
2015-08-18 10:19:26 -07:00
Seth Fowler
1d1efc009f
Bug 1187401 (Part 1) - Simplify the condition that determines whether we set RasterImage::mHasBeenDecoded. r=tn
...
--HG--
extra : rebase_source : e4139897d15bf0f4f85b55e7d3963f0f01cb0e0f
2015-08-18 10:19:22 -07:00
Seth Fowler
18a4a4a0b9
Bug 1194906 - Replace 'NS_ENSURE_TRUE(BadImage(..))' warnings with more useful messages. r=tn
...
--HG--
extra : rebase_source : 7c567afdffedacae250f253e4eaa5b04b62f365a
2015-08-18 10:19:18 -07:00
Seth Fowler
1dba6dbf50
Bug 1194575 - Rename RecoverFromLossOfFrames() to RecoverFromInvalidFrames() to better reflect its role. r=tn
...
--HG--
extra : rebase_source : b28b2575544bbf09e554ced17568aca30d36f5a2
2015-08-18 10:19:14 -07:00
Michael Layzell
945c9a35f4
Bug 1195415 - Add asciiHostPort field to nsIURI, and use it in the implementation of nsPrincipal::GetOriginForURI, r=bholley
2015-08-18 14:52:24 -04:00
Nathan Froyd
797182f90f
Bug 968923 - part 5b - add nsIDOMWindowUtils::forceUseCounterFlush; r=bz
...
Use counter submission normally happens at document destruction. For
testing use counters, however, we need to have use counters updated in
telemetry at deterministic points. Therefore, we provide a method on
nsIDOMWindowUtils that forces use counters out to telemetry so we can
examine them.
2015-03-17 15:25:35 -04:00
Cameron McCormack
2e3473ca07
Bug 968923 - part 3b - propagating use counters from SVG images into owning/parent documents; r=seth
2015-06-03 13:42:07 -04:00
Cameron McCormack
125f6d0f18
Bug 968923 - part 3a - add core DOM use counter functionality; r=smaug
...
This patch gives ns{I,}Document the ability to track use counters and
also to send those to telemetry at document destruction time. We push
things to telemetry lazily because we're can't definitively say whether
something has been used until the document is torn down.
2015-06-03 12:39:18 -04:00
Seth Fowler
f89ca1d90f
Bug 1185800 - Add DecoderFlags and SurfaceFlags enum classes and use them instead of imgIContainer flags in all decoder-related code. r=tn
2015-08-14 17:56:44 -07:00
Seth Fowler
7000b611ae
Bug 1194059 (Part 4) - Add tests that we detect IS_ANIMATED during the metadata decode. r=tn
2015-08-14 00:37:19 -07:00
Seth Fowler
e9af374dd3
Bug 1194059 (Part 3) - Ensure the nsIInputStream LoadImage() returns is always buffered. r=tn
2015-08-14 00:37:16 -07:00
Seth Fowler
7e909725b3
Bug 1194059 (Part 2) - Always detect IS_ANIMATED during the metadata decode. r=tn
2015-08-14 00:37:13 -07:00
Seth Fowler
e328e789ee
Bug 1194059 (Part 1) - Ensure that metadata decode progress is always delivered atomically. r=tn
2015-08-14 00:37:11 -07:00
Christoph Kerschbaumer
a2927d618d
Bug 1193924 - Add assertion to AsyncOpen to make sure asyncOpen2() was called first when securityflags in loadInfo are set (r=sicking)
2015-08-12 21:36:33 -07:00
Seth Fowler
56e8e38eb3
Bug 1194557 - Ensure that if the image was locked before RecoverFromLossOfFrames() was called, it's still locked afterwards. r=tn
2015-08-13 20:39:54 -07:00
Ryan VanderMeulen
ec552557f5
Backed out changeset f99b27e40987 (bug 1193924) for B2G emulator bustage.
...
CLOSED TREE
2015-08-13 12:45:05 -04:00
Christoph Kerschbaumer
ecdc701ca0
Bug 1193924 - Add assertion to AsyncOpen to make sure asyncOpen2() was called first when securityflags in loadInfo are set (r=sicking)
2015-08-12 21:36:33 -07:00
Seth Fowler
688a7b4ccc
Bug 1191114 (Part 4) - Add tests for metadata decoding, including that we always deliver HAS_TRANSPARENCY during the metadata decode. r=tn
...
--HG--
extra : rebase_source : a75678990dfe110dcafed02591da45854a0b2c92
2015-08-12 10:41:11 -07:00
Seth Fowler
2293f110ab
Bug 1191114 (Part 3) - Add flags to image test cases. r=tn
...
--HG--
extra : rebase_source : ae18f059f8dcd70959567631afac9436f3214b6f
2015-08-12 10:41:08 -07:00
Seth Fowler
b83a44287a
Bug 1191114 (Part 2) - Add support for creating an anonymous metadata decoder, for use in tests. r=tn
...
--HG--
extra : rebase_source : 465523f87fda3ac80484fd368c9bbfe3daca2afc
2015-08-12 10:41:05 -07:00
Seth Fowler
c012dc0aa9
Bug 1191114 (Part 1) - Always detect HAS_TRANSPARENCY during the metadata decode. r=tn
...
--HG--
extra : rebase_source : 97c8568f33abd1f2a8d9ef5679ce3ac904f0758f
2015-08-12 10:41:02 -07:00
Seth Fowler
b388f51c02
Bug 1192356 (Part 2) - Take advantage of mozilla::Tie() in RasterImage.cpp. r=tn
2015-08-11 23:50:33 -07:00
Seth Fowler
65cf06375b
Bug 1192356 (Part 1) - Take advantage of mozilla::Tie() in SurfaceCache.cpp. r=dholbert
2015-08-11 23:50:31 -07:00
Kyle Huey
76e3009ab8
Bug 1179909: Refactor stable state handling. r=smaug
...
This is motivated by three separate but related problems:
1. Our concept of recursion depth is broken for things that run from AfterProcessNextEvent observers (e.g. Promises). We decrement the recursionDepth counter before firing observers, so a Promise callback running at the lowest event loop depth has a recursion depth of 0 (whereas a regular nsIRunnable would be 1). This is a problem because it's impossible to distinguish a Promise running after a sync XHR's onreadystatechange handler from a top-level event (since the former runs with depth 2 - 1 = 1, and the latter runs with just 1).
2. The nsIThreadObserver mechanism that is used by a lot of code to run "after" the current event is a poor fit for anything that runs script. First, the order the observers fire in is the order they were added, not anything fixed by spec. Additionally, running script can cause the event loop to spin, which is a big source of pain here (bholley has some nasty bug caused by this).
3. We run Promises from different points in the code for workers and main thread. The latter runs from XPConnect's nsIThreadObserver callbacks, while the former runs from a hardcoded call to run Promises in the worker event loop. What workers do is particularly problematic because it means we can't get the right recursion depth no matter what we do to nsThread.
The solve this, this patch does the following:
1. Consolidate some handling of microtasks and all handling of stable state from appshell and WorkerPrivate into CycleCollectedJSRuntime.
2. Make the recursionDepth counter only available to CycleCollectedJSRuntime (and its consumers) and remove it from the nsIThreadInternal and nsIThreadObserver APIs.
3. Adjust the recursionDepth counter so that microtasks run with the recursionDepth of the task they are associated with.
4. Introduce the concept of metastable state to replace appshell's RunBeforeNextEvent. Metastable state is reached after every microtask or task is completed. This provides the semantics that bent and I want for IndexedDB, where transactions autocommit at the end of a microtask and do not "spill" from one microtask into a subsequent microtask. This differs from appshell's RunBeforeNextEvent in two ways:
a) It fires between microtasks, which was the motivation for starting this.
b) It no longer ensures that we're at the same event loop depth in the native event queue. bent decided we don't care about this.
5. Reorder stable state to happen after microtasks such as Promises, per HTML. Right now we call the regular thread observers, including appshell, before the main thread observer (XPConnect), so stable state tasks happen before microtasks.
2015-08-11 06:10:46 -07:00
Seth Fowler
c0f83249c8
Bug 1191090 - Use the normal PNG decoder for PNG metadata decodes. r=tn
...
--HG--
extra : rebase_source : c0d1f9f8e376cbe4ebf1921d3e1edf85234e8f7b
2015-08-10 15:34:27 -07:00
Birunthan Mohanathas
7315345693
Bug 1191100
- Remove XPIDL signature comments in .cpp files. r=ehsan
...
Comment-only so DONTBUILD.
2015-08-04 16:17:36 -07:00
Christoph Kerschbaumer
ccd1961c44
Bug 1127534 - Remove assertion before creating a channel (r=sicking)
2015-08-02 10:42:22 -07:00
Ehsan Akhgari
509e505cbb
Bug 1181863 - Part 4: Fix the build bustage
2015-08-01 00:07:04 -04:00
Seth Fowler
b925bc97d1
Bug 1181863 (Part 3) - Add tests for DecodeToSurface(). r=tn
2015-07-31 18:10:34 -07:00