Commit Graph

1640 Commits

Author SHA1 Message Date
Timothy Nikkel
a4b0a5a7be Bug 1063369. When we clone an imgRequestProxy and it currently has an imgCacheValidator checking if the request is still valid over the network make sure to add the new proxy to the validator so that the validator can update the proxy to point to a new request if it finds the old request to be stale. r=seth
Since the CSS image loader (for example background images) always uses a cloned request for painting the image this results in stale images being shown.

This patch is almost the same as the patch Boris Zbarsky posted to bug 432391 in 2011, but I didn't notice that patch until too late. There is one siginificant difference though. We call AddProxy and SetNotificationsDeferred before calling SyncNotifyListener in this patch. Calling them after leads to orange on try server.
2015-04-10 01:15:39 -05:00
Ehsan Akhgari
af3f143756 Add an assertion for the first argument of NewImageChannel, no bug 2015-04-18 20:18:49 -04:00
Nathan Froyd
025c5b239e Bug 1153988 - create nsNullPrincipals directly, rather than going through do_CreateInstance; r=smaug
There's a better way to create null principals than
do_CreateInstance("@mozilla.org/nullprincipal;1").  Let's do that and
save ourselves some XPCOM overhead.
2015-04-13 14:47:41 -04:00
Seth Fowler
04fb1ff331 Bug 1151309 (Part 2) - Hide errors in multipart image parts both visually and internally. r=tn 2015-04-14 17:47:59 -07:00
Seth Fowler
88869f7bf9 Bug 1151309 (Part 1) - Block until the previous multipart frame is decoded before processing another. r=tn 2015-04-14 17:47:56 -07:00
Wes Kocher
af201a2d6c Backed out changeset 050848a5273c (bug 1153988) for Windows build bustage CLOSED TREE 2015-04-14 14:42:59 -07:00
Nathan Froyd
d41f5f31ca Bug 1153988 - create nsNullPrincipals directly, rather than going through do_CreateInstance; r=smaug
There's a better way to create null principals than
do_CreateInstance("@mozilla.org/nullprincipal;1").  Let's do that and
save ourselves some XPCOM overhead.
2015-04-13 14:47:41 -04:00
Glenn Randers-Pehrson
3e07b7f8c9 Bug 1102048 (Part 35, Downscaler) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-01-22 05:38:00 -08:00
Carsten "Tomcat" Book
db3b77867f Backed out changeset 43af95e75ece (bug 1063369) for bc1 test failures 2015-04-10 11:31:35 +02:00
Carsten "Tomcat" Book
08d404183f Backed out changeset eaf1b350adf9 (bug 1063369) 2015-04-10 11:29:51 +02:00
Timothy Nikkel
75bc051c8e Bug 1063369. Forgot missing include. 2015-04-10 01:56:22 -05:00
Timothy Nikkel
81b953d574 Bug 1063369. When we clone an imgRequestProxy and it currently has an imgCacheValidator checking if the request is still valid over the network make sure to add the new proxy to the validator so that the validator can update the proxy to point to a new request if it finds the old request to be stale. r=seth
Since the CSS image loader (for example background images) always uses a cloned request for painting the image this results in stale images being shown.

This patch is almost the same as the patch Boris Zbarsky posted to bug 432391 in 2011, but I didn't notice that patch until too late. There is one siginificant difference though. We call AddProxy and SetNotificationsDeferred before calling SyncNotifyListener in this patch. Calling them after leads to orange on try server.
2015-04-10 01:15:39 -05:00
Seth Fowler
620f724883 Bug 1146335 (Part 2) - Fix an off-by-one error in image::Downscaler. r=tn 2015-04-09 17:52:23 -07:00
Seth Fowler
b7b4c9d054 Bug 1146335 (Part 1) - Add assertions and fix style issues in image::Downscaler. r=tn 2015-04-09 17:52:23 -07:00
Chris Peterson
8ef69a950b Bug 1143994 - Fix some -Wunreachable-code and -Wswitch warnings in imagelib. r=seth 2015-03-16 21:02:15 -07:00
Seth Fowler
ce7fa7a16c Bug 1149893 - Add a pref that makes us decode all images immediately. r=baku 2015-04-07 16:44:29 -07:00
Glenn Randers-Pehrson
124d762cfe Bug 1102048 (Part 20, imgLoader) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-04-07 14:49:00 -07:00
Glenn Randers-Pehrson
d7520656b9 Bug 1102048 (Part 23, encoders) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-04-06 19:19:00 -07:00
Glenn Randers-Pehrson
a14d796c5f Bug 1102048 (Part 39, decoders/icon) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-04-06 19:12:00 -07:00
Glenn Randers-Pehrson
f2b4370c06 Bug 1102048 (Part 24, decoders) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-04-05 16:22:00 -07:00
Glenn Randers-Pehrson
410816eea2 Bug 1102048 (Part 15, VectorImage) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-04-04 12:58:00 -07:00
Glenn Randers-Pehrson
5a13d4cb07 Bug 1102048 (Part 04, ClippedImage) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-04-04 12:57:00 -07:00
Glenn Randers-Pehrson
38493799cd Bug 1102048 (Part 30, imgTools) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-04-02 13:41:00 -07:00
Glenn Randers-Pehrson
eab3caefc1 Bug 1102048 (Part 11, imgRequest) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-03-31 11:06:00 -07:00
Glenn Randers-Pehrson
cf8d315bc6 Bug 1102048 (Part 38, ShutdownTracker) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-03-31 10:57:00 -07:00
Glenn Randers-Pehrson
22f4ff98f6 Bug 1102048 (Part 37, ProgressTracker) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-03-31 10:56:00 -07:00
Glenn Randers-Pehrson
6090732c63 Bug 1102048 (Part 14, NotificationObserver) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-03-31 10:50:00 -07:00
Glenn Randers-Pehrson
1daceab659 Bug 1102048 (Part 13, RasterImage) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-03-31 10:49:00 -07:00
Glenn Randers-Pehrson
a7f430b2e0 Bug 1102048 (Part 10, imgFrame) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-03-31 10:48:00 -07:00
Glenn Randers-Pehrson
3c6cd3fa28 Bug 1102048 (Part 36, DynamicImage) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-03-25 19:39:00 -07:00
Glenn Randers-Pehrson
03af59a40a Bug 1102048 (Part 09, Image) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-03-25 19:36:00 -07:00
Glenn Randers-Pehrson
8a237c6ff5 Bug 1102048 (Part 29, imgRequestProxy) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-03-25 10:59:00 -07:00
Glenn Randers-Pehrson
3ed6db6c61 Bug 1102048 (Part 31, SurfaceCache) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-03-24 13:16:00 -07:00
Glenn Randers-Pehrson
b48582bcf6 Bug 1102048 (Part 25, header guards) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-03-23 16:59:00 -07:00
Glenn Randers-Pehrson
8dad1b40fb Bug 1102048 (Part 33, SVGDocument) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-03-04 04:18:00 -08:00
Glenn Randers-Pehrson
0ac0624fb1 Bug 1102048 (Part 05, Decoder) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-02-10 16:47:00 -08:00
Glenn Randers-Pehrson
3d9503e192 Bug 1102048 (Part 28, DecoderPool) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-02-08 14:43:00 -08:00
Glenn Randers-Pehrson
2416b30ebf Bug 1102048 (Part 34, Multipart) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-02-05 21:34:00 -08:00
Glenn Randers-Pehrson
170da4920a Bug 1102048 (Part 19, ImageMetadata) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-01-19 10:29:00 -08:00
Glenn Randers-Pehrson
ff2aba233e Bug 1102048 (Part 32, FrameAnimator) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-01-16 09:27:00 -08:00
Glenn Randers-Pehrson
f356074f2a Bug 1102048 (Part 26) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2015-01-10 10:49:00 -08:00
Glenn Randers-Pehrson
feeab104be Bug 1102048 (Part 03) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2014-12-11 17:03:00 -08:00
Seth Fowler
d969d7851a Bug 1150127 - Stop leaking windows via imgCacheValidator. r=baku
CLOSED TREE
2015-04-07 13:02:02 -04:00
Ryan VanderMeulen
9ce4666cd0 Backed out changeset 0e7488db2bd3 (bug 1150127) for suspicion of causing various Gip failures.
CLOSED TREE
2015-04-07 12:00:35 -04:00
Seth Fowler
7b5ddf4e84 Bug 1150127 - Stop leaking windows via imgCacheValidator. r=baku 2015-04-06 19:34:00 -07:00
Nicolas Silva
f2da0db3a0 Bug 1132854 - Remove the gfx::ToIntSize conversion helper. r=Bas 2015-04-07 16:08:57 +02:00
Glenn Randers-Pehrson
7e8942b8c4 Bug 1147909 - Part 2 - (nsPNGDecoder) Update embedded libpng to version 1.6.17. r=jmuizelaar 2015-03-28 11:07:00 +01:00
Mats Palmgren
3879e0afa3 Bug 1149222 part 1 - Make nsLayoutUtils::DrawBackgroundImage and SVGImageContext use CSSIntSize instead of unitless nsIntSize. r=dholbert 2015-04-03 19:48:12 +00:00
Nathan Froyd
65f6c06592 Bug 1143651 - don't use CallQueryInterface when the compiler can do the cast for us; r=ehsan 2015-03-12 13:20:29 -04:00
Mike Hommey
ccd2a9b975 Bug 1134920 - Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free. r=nfroyd 2015-04-01 13:51:45 +09:00