Commit Graph

1684 Commits

Author SHA1 Message Date
Seth Fowler
e9e1603dbc Bug 1135977 (Part 2) - Use threadsafe refcounting for ProxyListener. r=baku 2015-03-04 22:18:12 -08:00
Seth Fowler
5306f07c44 Bug 1135977 (Part 1) - Use modern Mozilla style for refcounting in imgLoader. r=baku 2015-03-04 22:18:09 -08:00
Anish
9b39f2745a Bug 958147 - Choose one of run-if or skip-if and get rid of the other.r=jmaher, mwargers 2015-03-03 08:46:37 -05:00
Andrea Marchesini
5a32f7fa5a Bug 1134280 - Get rid of Tag() - patch 1 - Is{HTML,XUL,MathML,SVG}Element and IsAnyOf{HTML,XUL,MathML,SVG}Elements, r=smaug 2015-03-03 11:08:59 +00:00
Boris Zbarsky
897168be1d Bug 1136388. Change nsIDocumentLoaderFactory and nsIURIContentListener to take MIME types as an XPCOM string, not a char*. r=smaug 2015-02-25 10:26:51 -05:00
Glenn Randers-Pehrson
620d67cd5f Bug 1132081 - Speed up ConvertHostARGBRow() in the PNG encoder. r=jmuizelaar 2015-02-21 05:54:00 +01:00
Carsten Book
bbd47ba64d Bug 944353 - crashtest. 2015-02-22 02:41:58 +00:00
Anish
d6962a9b5b Bug 1056851 - Change existing callers of SpecialPowers.setBoolPref/setIntPref/setCharPref to SpecialPowers.pushPrefEnv. r=jmaher,mwargers 2015-02-19 11:53:01 -05:00
Carsten "Tomcat" Book
24df8222d0 Backed out changeset 6885e993936a (bug 1056851) for crashtest failures 2015-02-19 15:02:05 +01:00
Anish
e982da177f Bug 1056851 - Change existing callers of SpecialPowers.setBoolPref/setIntPref/setCharPref to SpecialPowers.pushPrefEnv. r=jmaher 2015-02-19 07:26:41 -05:00
Timothy Nikkel
dd3fed6f09 Bug 1132427. Add test. 2015-02-17 19:26:52 -06:00
Matt Woodrow
cde1d90f5f Bug 1133356 - Expand macro in OnImageAvailable to avoid checking NotificationsDeferred. r=roc 2015-02-17 10:15:04 +13:00
Timothy Nikkel
09dabd46dc Bug 1132427. Make sure that the first frame refresh area for an animated image gets updated based on the refresh area of all subsequent frames, not just the second. r=jrmuizel 2015-02-13 02:26:41 -06:00
Blake Kaplan
1d30248d08 Bug 1117337 - Properly serialize moz-icon URIs. r=bent 2015-02-12 15:41:21 -08:00
Blake Kaplan
3627a368c3 Bug 1117337 - Make icon URIs constructable via XPCOM. r=seth 2015-02-12 15:41:21 -08:00
Jeff Muizelaar
738a667bbd Bug 1131446. mFrameHasNoAlpha is mostly pointless. r=seth
Starting with bug 391583 we detect whether a png image has any transparency
during decode. I don't think this is worth doing anymore. We choose the format
of image based on the png header, that should be sufficient for the performance
improvement we desire from opaque images. This gets us faster image decoding.
2015-02-10 13:26:14 +08:00
Chris Peterson
b00d104bb6 Bug 1118076 - Remove obsolete comment about #including Attributes.h for MOZ_THIS_IN_INITIALIZER_LIST. DONTBUILD r=seth 2015-02-10 19:03:04 -08:00
Seth Fowler
0b596c149c Bug 1130707 (Followup) - Add missing return statement. r=me 2015-02-10 14:28:14 -08:00
Seth Fowler
e92e773792 Bug 1130802 - Always prefer decoded surfaces when substituting surfaces for downscale-during-decode. r=dholbert 2015-02-10 04:20:45 -08:00
Seth Fowler
59f6986711 Bug 1130707 - Make decode-on-draw-only image notifications more robust. r=tn 2015-02-09 23:50:30 -08:00
Seth Fowler
9c9d5eb0e3 Bug 1128769 (Part 6) - Remove imgIContainer::IsDecoded and all remaining callers. r=tn 2015-02-09 23:27:40 -08:00
Nicholas Nethercote
ee41df7dc2 Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo. 2015-02-09 14:34:50 -08:00
Seth Fowler
dbbbebaaac Bug 1128188 - Allow creation of animated frames that do not fit inside the bounds of their image. r=jrmuizel 2015-02-07 03:51:40 -08:00
Andrew McCreight
1ee96e7527 Back out Bug 1127201 (part 2) for various problems. 2015-02-06 15:04:32 -08:00
Nathan Froyd
8c6644f116 Bug 1128989 - part 2 - forward-declare Telemetry::ID in Decoder.h; r=seth
This change means that Decoder.h (and any files that include it) no
longer depend on Telemetry.h.  And since Telemetry.h can change rather
frequently, this change helps minimize the number of files that need to
be rebuilt when Telemetry.h does change.
2015-02-03 10:05:49 -05:00
Seth Fowler
f09d7defb3 Bug 1120144 - Disable test_bug641198.html until it can be rewritten. r=me 2015-02-05 18:03:19 -08:00
Seth Fowler
44ef00c675 Bug 1124610 - Call PostHasTransparency for corrupt images that we treat as usable. r=jrmuizel 2015-02-05 14:42:38 -08:00
Nicholas Nethercote
0a02b5d31c Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo. 2015-02-04 20:05:36 -08:00
Seth Fowler
c93363a9a2 Bug 1129818 - Don't call back into DecodePool from NotifyDecodeCompleteWorker. r=tn 2015-02-05 02:49:08 -08:00
Seth Fowler
88ad0ef2bc Bug 1128225 (Part 1) - Return a result enumeration from imgIContainer::Draw. r=tn 2015-02-04 13:50:56 -08:00
Seth Fowler
ab9ff477f2 Bug 1126490 (Part 2) - Recover from loss of surfaces in VectorImage. r=dholbert 2015-02-03 16:38:39 -08:00
Seth Fowler
cb0613ce84 Bug 1126490 (Part 1) - Recover when catastrophic circumstances cause us to lose frames in RasterImage. r=tn 2015-02-03 16:38:36 -08:00
Birunthan Mohanathas
48741e37ed Bug 1120796 - Part 2: Replace ConvertibleToBool hackarounds with explicit bool operators. r=Waldo 2015-02-03 18:52:36 +02:00
Seth Fowler
8ddea6b8d4 Bug 1128223 (Part 4) - Remove DecodeStrategy and WantDecodedFrames. r=tn 2015-02-02 21:40:35 -08:00
Seth Fowler
775caa912a Bug 1128223 (Part 3) - Add FLAG_ASYNC_NOTIFY. r=tn 2015-02-02 21:40:35 -08:00
Seth Fowler
6a2e58737c Bug 1128223 (Part 2) - Add FLAG_SYNC_DECODE_IF_FAST. r=tn 2015-02-02 21:40:35 -08:00
Seth Fowler
f9a0a76bf1 Bug 1128223 (Part 1) - Clean up existing image flags. r=tn 2015-02-02 21:40:35 -08:00
Mike Hommey
50e6916b40 Bug 1126593 - Add a global fallible instance, so that using fallible works directly, everywhere. r=njn 2015-02-02 09:56:13 +09:00
Seth Fowler
b1db14a6a4 Bug 1126739 - Add locking to SurfaceCache entry points that bypass the public API. r=tn 2015-01-31 15:29:48 -08:00
Carsten "Tomcat" Book
0277da5a08 Backed out changeset e5c85f765f2d (bug 1126739) for bc2 test failures on a CLOSED TREE 2015-01-29 10:42:16 +01:00
Seth Fowler
ed3bf41491 Bug 1126739 - Add locking to SurfaceCache entry points that bypass the public API. r=tn 2015-01-28 23:50:06 -08:00
Seth Fowler
679d31537c Bug 1126146 - Disable the single-color optimization in reftests. r=tn 2015-01-27 17:43:21 -08:00
Carsten "Tomcat" Book
de0288825d Backed out changeset bbd77af91d82 (bug 1125490) for reftests failures on a CLOSED TREE 2015-01-27 11:16:28 +01:00
Seth Fowler
27c3cc775e Bug 1125490 (Part 1) - Make sure we request discarding for images in PresShell::Destroy. r=tn 2015-01-26 22:53:21 -08:00
Seth Fowler
5e3ae1bf36 Bug 1126038 - Finish decoding off-main-thread. r=tn 2015-01-26 22:53:20 -08:00
Ehsan Akhgari
3d1fd4d8ca Bug 1125180 - Mark some functions in image as override; r=jrmuizel 2015-01-26 08:49:26 -05:00
Masatoshi Kimura
f1b5ace064 Bug 1111290 - Part 3: Remove TypedEnum.h and fold TypedEnumInternal.h into TypedEnumBits.h. r=waldo 2015-01-26 07:22:11 +09:00
Masatoshi Kimura
222483b6f4 Bug 1111290 - Part 1: Remove MOZ_(BEGIN|END)_ENUM_CLASS. r=waldo 2015-01-26 07:22:07 +09:00
Phil Ringnalda
ee16847fd9 Back out 2 changesets (bug 1125490) for Windows and Android reftest failures
CLOSED TREE

Backed out changeset 042523d55ed8 (bug 1125490)
Backed out changeset fa3e911c2941 (bug 1125490)
2015-01-25 08:03:52 -08:00
Seth Fowler
23d04ca48c Bug 1125401 - Replace ProgressTracker::IsLoading() with checks of the correct progress flags. r=tn 2015-01-24 23:16:46 -08:00
Seth Fowler
c9b3eed52c Bug 1125490 (Part 1) - Make sure we request discarding for images in PresShell::Destroy. r=tn 2015-01-24 23:14:10 -08:00
Seth Fowler
0f21d63f6f Bug 1125491 - Only lock the image during the initial decode. r=tn 2015-01-24 20:26:40 -08:00
Seth Fowler
c233268f64 Bug 1125457 - Fix a couple of issues in Downscaler.h that broke the build with --disable-skia. r=me 2015-01-24 17:50:21 -08:00
Glenn Randers-Pehrson
22ecaaa6a2 Bug 1117406 - Fix handling of out-of-range PNG tRNS values. r=jmuizelaar 2015-01-24 12:43:49 -05:00
Xidorn Quan
85b7361ce5 Bug 1124029 - Fix 64bit shift warning in imgFrame. r=tn 2015-01-23 08:29:36 +11:00
Nathan Froyd
32193baa64 Bug 1124180 - use MOZ_BIG_ENDIAN in nsJPEGDecoder.cpp; r=seth 2015-01-21 09:16:41 -05:00
Seth Fowler
884570b29d Bug 1124535 - Check if we have a downscaler before using it in nsJPEGDecoder. r=tn 2015-01-21 19:35:47 -08:00
Seth Fowler
ece456f53b Bug 1120149 - Add a hack to resolve an AWSY regression in Gecko 37 and 38. r=tn 2015-01-21 17:36:20 -08:00
Jonathan Watt
809b8b2fc9 Bug 1112533 - Get rid of SVGDocumentWrapper::GetWidthOrHeight(). r=dholbert 2015-01-20 19:12:54 +00:00
Jonathan Watt
e619807378 Bug 1086284 - Avoid using refcounting when determining an SVG-as-an-image's intrinsic size so that the image doesn't end up in the CC graph. r=dholbert 2015-01-20 14:27:16 +00:00
James Kitchener
6a912052bb Bug 1100184 - Flatten netwerk/base/{public,src}/ directories. r=mcmanus, r=poiru 2015-01-20 03:58:00 -05:00
Patrick McManus
fdaefb68d6 bug 1116867 - make nsIProgressEventSink and nsITransportEventSink safely scriptable r=mayhemer r=bz
These scriptable interfaces use uint_64 arguments with sentinel values
of UINT64_MAX. However, UINT64_MAX exceeds MAX_SAFE_INTEGER and cannot
be gatewayed to/from javascript - so they cannot be used
correctly. Change them to use signed 64 bit numbers and -1 as the
sentinnel. C++ implementations ought to be enough to audit as the
special value could never be used correctly in JS anyhow - also
audited OnProgressChange() uses for downstream use of this data.
---
 dom/base/nsXMLHttpRequest.cpp                      | 19 +++++++----
 dom/base/nsXMLHttpRequest.h                        | 10 +++---
 dom/plugins/base/nsPluginStreamListenerPeer.cpp    |  4 +--
 .../webbrowserpersist/nsWebBrowserPersist.cpp      | 14 ++++----
 image/src/imgLoader.cpp                            |  4 +--
 modules/libjar/nsJARChannel.cpp                    |  3 +-
 netwerk/base/public/nsIProgressEventSink.idl       |  8 ++---
 netwerk/base/public/nsITransport.idl               |  8 ++---
 netwerk/base/public/nsNetUtil.h                    | 24 ++++++++++++++
 netwerk/base/src/Dashboard.cpp                     |  2 +-
 netwerk/base/src/nsBaseChannel.cpp                 | 12 +++----
 netwerk/base/src/nsIncrementalDownload.cpp         |  4 +--
 netwerk/base/src/nsSocketTransport2.cpp            |  5 +--
 netwerk/base/src/nsStreamTransportService.cpp      | 38 +++++++++++++---------
 netwerk/base/src/nsTransportUtils.cpp              | 12 +++----
 netwerk/protocol/file/nsFileChannel.cpp            |  8 +++--
 netwerk/protocol/ftp/nsFtpConnectionThread.cpp     |  4 +--
 netwerk/protocol/http/Http2Push.cpp                |  2 +-
 netwerk/protocol/http/Http2Session.cpp             |  2 +-
 netwerk/protocol/http/HttpChannelChild.cpp         | 31 +++++++++---------
 netwerk/protocol/http/HttpChannelChild.h           |  6 ++--
 netwerk/protocol/http/HttpChannelParent.cpp        |  4 +--
 netwerk/protocol/http/HttpChannelParent.h          |  4 +--
 netwerk/protocol/http/NullHttpTransaction.cpp      |  2 +-
 netwerk/protocol/http/PHttpChannel.ipdl            |  2 +-
 netwerk/protocol/http/SpdyPush31.cpp               |  2 +-
 netwerk/protocol/http/SpdySession31.cpp            |  2 +-
 netwerk/protocol/http/TunnelUtils.cpp              |  2 +-
 netwerk/protocol/http/nsAHttpTransaction.h         |  4 +--
 netwerk/protocol/http/nsHttpChannel.cpp            | 30 +++++++++++------
 netwerk/protocol/http/nsHttpConnection.cpp         |  4 +--
 netwerk/protocol/http/nsHttpConnectionMgr.cpp      |  4 +--
 netwerk/protocol/http/nsHttpPipeline.cpp           |  4 +--
 netwerk/protocol/http/nsHttpPipeline.h             |  6 ++--
 netwerk/protocol/http/nsHttpResponseHead.cpp       |  2 +-
 netwerk/protocol/http/nsHttpResponseHead.h         |  2 +-
 netwerk/protocol/http/nsHttpTransaction.cpp        | 32 +++++++++---------
 netwerk/protocol/http/nsHttpTransaction.h          |  2 +-
 netwerk/protocol/wyciwyg/WyciwygChannelChild.cpp   |  2 +-
 netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp      |  3 +-
 netwerk/test/TestIncrementalDownload.cpp           |  7 ++--
 uriloader/base/nsDocLoader.cpp                     | 14 ++++----
 42 files changed, 203 insertions(+), 151 deletions(-)
2015-01-08 14:48:52 -05:00
Seth Fowler
d472d2fbf5 Bug 1045929 (Part 2) - Implement downscale-during-decode for JPEG images. r=tn 2015-01-20 03:06:37 -08:00
Seth Fowler
7cd4579890 Bug 1045929 (Part 1) - Add a streaming downscaler to ImageLib. r=tn 2015-01-20 03:06:37 -08:00
Seth Fowler
65bfa3a6bb Bug 1122446 - Give cached surfaces a chance to expire, when starting a downscale-during-decode. r=dholbert 2015-01-20 03:06:37 -08:00
Seth Fowler
6bbece46f8 Bug 1118655 - Use decode-on-draw only, and ignore RequestDecode and the like, when APZ and downscale-during-decode are enabled. r=tn 2015-01-19 15:46:55 -08:00
Trevor Saunders
d4b4499949 bug 1122065 - use MOZ_OVERRIDE more in gfxish things r=jrmuizel 2015-01-19 17:41:12 -05:00
Phil Ringnalda
941f93b4e5 Bug 1123195 - skip image/test/crashtests/694165-1.xhtml on OS X 10.10 debug, where it hangs 2015-01-18 22:56:02 -08:00
Seth Fowler
b3a46336d5 Bug 1119774 (Part 7) - Make it possible to pass a target size to Decoder::AllocateFrame. r=tn 2015-01-18 14:02:14 -08:00
Seth Fowler
af363869ec Bug 1119774 (Part 6) - Add downscale-during-decode support to RasterImage::LookupFrame. r=tn 2015-01-18 14:02:14 -08:00
Seth Fowler
60a5ebe691 Bug 1119774 (Part 5) - Add SurfaceCache::LookupBestMatch. r=dholbert 2015-01-18 14:02:14 -08:00
Seth Fowler
dffeb1d653 Bug 1119774 (Part 4) - Add an optional alternate flags parameter to SurfaceCache::Lookup. r=dholbert 2015-01-18 14:02:13 -08:00
Seth Fowler
8d8d04bc45 Bug 1119774 (Part 3) - Make it possible to propagate a target size to the decoder. r=tn 2015-01-18 14:02:13 -08:00
Seth Fowler
7c085cf575 Bug 1119774 (Part 2) - Add RequestDecodeForSize to imgIContainer. r=tn 2015-01-18 14:02:13 -08:00
Seth Fowler
ed060fc79e Bug 1119774 (Part 1) - Add a pref and Image init flag for downscale-during-decode. r=tn 2015-01-18 14:02:13 -08:00
Seth Fowler
29a704eea3 Bug 1119158 - Retarget OnDataAvailable to a new I/O thread instead of the image decoding thread pool. r=sworkman 2015-01-18 01:27:16 -08:00
Seth Fowler
766fe0f845 Bug 1118694 - Always retarget OnDataAvailable for RasterImage. r=sworkman 2015-01-17 13:18:26 -08:00
Seth Fowler
af143b10fe Bug 985193 - Stop holding a strong reference to RasterImage's ImageContainer. r=mattwoodrow 2015-01-16 14:11:23 -08:00
Seth Fowler
fcd9052ef8 Bug 1120271 - Add compacting support for SourceBuffer. r=tn 2015-01-15 20:28:38 -08:00
L. David Baron
dfaca5c006 Bug 1122297 - Adjust existing Mac OS X reftest failure annotations that also show up on 10.10. r=philor
This adjusts existing reftest annotations for tests that fail on 10.8
that are showing up as failing on 10.10 as well to be marked using >=
version tests rather than == version tests.
2015-01-15 18:00:49 -08:00
Seth Fowler
a1c46da244 Bug 1079627 (Part 7) - Disable some questionable tests. r=tn 2015-01-15 15:11:36 -08:00
Seth Fowler
0ac39350bf Bug 1079627 (Part 6) - Lock the image during decoding. r=tn 2015-01-15 15:11:36 -08:00
Seth Fowler
c6ef9bdbfb Bug 1079627 (Part 5) - Allow recursive notifications in NotifyProgress. r=tn 2015-01-15 15:11:36 -08:00
Seth Fowler
25cd258d64 Bug 1079627 (Part 4) - Support multiple decoders in the presence of frame preallocation. r=tn 2015-01-15 15:11:36 -08:00
Seth Fowler
59329b9aa6 Bug 1079627 (Part 3) - Support multiple decoders for a single RasterImage. r=tn 2015-01-15 15:11:36 -08:00
Seth Fowler
f245e814b3 Bug 1079627 (Part 2) - Add SourceBuffer. r=tn 2015-01-15 15:11:35 -08:00
Seth Fowler
a32f8c729a Bug 1079627 (Part 1) - Make image decoders hold a strong reference to their image. r=tn 2015-01-15 15:11:35 -08:00
L. David Baron
302a1fe397 Bug 1121327 patch 2 - Update reftest and crashtest manifests for new OSX variable in condition sandbox. r=ted.mielczarek 2015-01-15 15:07:50 -08:00
Ryan VanderMeulen
9b3f084aee No bug - Adjust some Android reftest expectations now that they're passing again. r=gbrown, a=test-only
These tests were originally marked as failing on 2.3 so that Android 2.3 could be enabled in production. Something today made them start passing again, so remove the failing annotations.
2015-01-14 13:46:20 -05:00
Ehsan Akhgari
a43b88b0eb Bug 1119268 - Mark virtual overridden functions as MOZ_OVERRIDE in misc code; r=bsmedberg 2015-01-12 23:26:30 -05:00
Wes Kocher
c78183d68d Backout c034dba7a417 2015-01-12 14:46:48 -08:00
Ehsan Akhgari
2696a40dc5 Bug 1119268 - Mark virtual overridden functions as MOZ_OVERRIDE in misc code; r=bsmedberg 2015-01-12 16:35:06 -05:00
Ryan VanderMeulen
2a163a5532 Backed out 5 changesets (bug 1079627) for causing B2G crashes on a CLOSED TREE.
Backed out changeset e8ddeaeb82ee (bug 1079627)
Backed out changeset 14cc155b0d6e (bug 1079627)
Backed out changeset e7add8446221 (bug 1079627)
Backed out changeset 44b622a479b6 (bug 1079627)
Backed out changeset c86c43915254 (bug 1079627)

--HG--
extra : rebase_source : bdb8d9fa39e8745127ccc635b6d7d65cf6af170c
2015-01-12 13:17:52 -05:00
Ryan VanderMeulen
9b0514c98b Backed out 2 changesets (bug 1119158, bug 1118694) for B2G Nuwa test failures on a CLOSED TREE.
Backed out changeset a15929ba55cd (bug 1119158)
Backed out changeset 0b1b75d692bf (bug 1118694)
2015-01-12 12:07:13 -05:00
Carsten "Tomcat" Book
57a2dc001b Backed out changeset c65de66fe0aa (bug 1119774) since this needs to be backedout too otherwise you will have a bustage or so :) on a CLOSED TREE 2015-01-12 15:36:36 +01:00
Carsten "Tomcat" Book
3ada65bf37 Backed out changeset 0257e0be8c42 (bug 1119774) 2015-01-12 15:35:21 +01:00
Carsten "Tomcat" Book
e50e5a7174 Backed out changeset 9e9c62f86ca3 (bug 1119774) 2015-01-12 15:35:19 +01:00
Carsten "Tomcat" Book
e382541aa1 Backed out changeset 02d04afc91b5 (bug 1119774) 2015-01-12 15:35:17 +01:00
Carsten "Tomcat" Book
aaa6ff9286 Backed out changeset 560042809ee7 (bug 1119774) 2015-01-12 15:35:16 +01:00
Carsten "Tomcat" Book
e4c64ede7a Backed out changeset 2eefd792306d (bug 1118655) 2015-01-12 15:35:14 +01:00
Carsten "Tomcat" Book
241b7b9e7e Backed out changeset 9e4626f6062b (bug 1045929) 2015-01-12 15:35:12 +01:00
Carsten "Tomcat" Book
24e92eafad Backed out changeset 66a9a3b1aadb (bug 1045929) 2015-01-12 15:35:10 +01:00
Seth Fowler
ce229c0571 Bug 1079627 (Followup) - Switch to fallible allocator in SourceBuffer and disable GIF webcam test. r=me 2015-01-12 04:22:01 -08:00
Seth Fowler
9aa07d8599 Bug 1045929 (Part 2) - Implement downscale-during-decode for JPEG images. r=tn 2015-01-12 03:24:26 -08:00
Seth Fowler
6af6516bc9 Bug 1045929 (Part 1) - Add a streaming downscaler to ImageLib. r=tn 2015-01-12 03:24:26 -08:00
Seth Fowler
e3627ae1fe Bug 1118655 - Use decode-on-draw only, and ignore RequestDecode and the like, when APZ is enabled. r=tn 2015-01-12 03:24:26 -08:00
Seth Fowler
e6567a9c9b Bug 1119774 (Part 5) - Make it possible to pass a target size to Decoder::AllocateFrame. r=tn 2015-01-12 03:24:26 -08:00
Seth Fowler
8c5e6413cc Bug 1119774 (Part 4) - Add downscale-during-decode support to RasterImage::LookupFrame. r=tn 2015-01-12 03:24:26 -08:00
Seth Fowler
af919a4e5f Bug 1119774 (Part 3) - Make it possible to propagate a target size to the decoder. r=tn 2015-01-12 03:24:26 -08:00
Seth Fowler
0a5ebc29f0 Bug 1119774 (Part 2) - Add RequestDecodeForSize to imgIContainer. r=tn 2015-01-12 03:24:25 -08:00
Seth Fowler
1c60523358 Bug 1119774 (Part 1) - Add a pref and Image init flag for downscale-during-decode. r=tn 2015-01-12 03:24:25 -08:00
Seth Fowler
1ac495fb33 Bug 1119158 - Retarget OnDataAvailable to a new I/O thread instead of the image decoding thread pool. r=sworkman 2015-01-12 01:29:25 -08:00
Seth Fowler
e93066a267 Bug 1118694 - Always retarget OnDataAvailable for RasterImage. r=sworkman 2015-01-12 01:29:23 -08:00
Seth Fowler
37bae0d495 Bug 1079627 (Part 4) - Support multiple decoders in the presence of frame preallocation. r=tn 2015-01-12 01:20:23 -08:00
Seth Fowler
bba66516db Bug 1079627 (Part 3) - Support multiple decoders for a single RasterImage. r=tn 2015-01-12 01:20:23 -08:00
Seth Fowler
f63349a819 Bug 1079627 (Part 2) - Add SourceBuffer. r=tn 2015-01-12 01:20:23 -08:00
Seth Fowler
7700d1f4e9 Bug 1079627 (Part 1) - Make image decoders hold a strong reference to their image. r=tn 2015-01-12 01:20:22 -08:00
Seth Fowler
ca9af7069b Bug 1118105 - Make SurfaceCache::Insert let you know if you try to insert a duplicate surface. r=dholbert 2015-01-11 22:29:35 -08:00
Seth Fowler
9834333edf Bug 1118092 - Manage invalidation policy directly in the image decoder. r=tn 2015-01-11 22:29:32 -08:00
Seth Fowler
fc4a5f30f0 Bug 1118087 - Correctly sync decode even if an imgFrame is partially decoded. r=tn 2015-01-11 19:28:02 -08:00
Tom Schuster
a1fc33823a Backout changeset b4ebefd0f7e3:a8044fd506db Bug 1117607, Bug 1118087, Bug 1118092, Bug 1118105, Bug 1030372, Bug 1079627 on CLOSED TREE 2015-01-11 20:43:32 +01:00
Seth Fowler
18cb47ce08 Bug 1079627 - Additonal commit to allow push on a CLOSED TREE since these patches should fix the oranges 2015-01-11 05:43:06 -08:00
Seth Fowler
12931c48ec Bug 1079627 (Part 3) - Support multiple decoders for a single RasterImage. r=tn 2015-01-11 05:34:20 -08:00
Seth Fowler
c0f12016a1 Bug 1079627 (Part 2) - Add SourceBuffer. r=tn 2015-01-11 05:34:20 -08:00
Seth Fowler
d026f10d29 Bug 1079627 (Part 1) - Make image decoders hold a strong reference to their image. r=tn 2015-01-11 05:34:20 -08:00
Seth Fowler
4055945999 Bug 1118105 - Make SurfaceCache::Insert let you know if you try to insert a duplicate surface. r=dholbert 2015-01-10 20:47:39 -08:00
Seth Fowler
b63799e189 Bug 1118092 - Manage invalidation policy directly in the image decoder. r=tn 2015-01-10 20:47:38 -08:00
Seth Fowler
99d2131952 Bug 1118087 - Correctly sync decode even if an imgFrame is partially decoded. r=tn 2015-01-10 20:47:38 -08:00
Seth Fowler
4cfb230690 Bug 1117607 - Make decoders responsible for their own frame allocations. r=tn 2015-01-10 18:47:44 -08:00
Chris Peterson
90751d5a6c Bug 1118076 - Remove MOZ_THIS_IN_INITIALIZER_LIST. r=Waldo 2015-01-06 21:39:46 -08:00
Wes Kocher
87aaffcfac Backout 17fc30214d84 (bug 1117607) for reftest orange 2015-01-09 18:48:43 -08:00
Seth Fowler
55a9e0f656 Bug 1117607 - Make decoders responsible for their own frame allocations. r=tn 2015-01-09 15:02:48 -08:00
Ehsan Akhgari
bd52bd3f4e Bug 1118486 - Part 1: Use = delete instead of MOZ_DELETE directly; r=Waldo
Most of this patch (with the exception of dom/bindings/Codegen.py) was
generated by the following bash script:

#!/bin/bash

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "*/.git*" \
       ! -wholename "obj-*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_DELETE '= delete'
2015-01-08 23:19:05 -05:00
Ryan VanderMeulen
93ce88585b Bug 987616 - Disable browser_image.js on debug builds due to frequent failures. 2015-01-08 12:32:12 -05:00
Seth Fowler
284713aaa3 Bug 1116733 (Followup) - Mark constructor of UnlockImageDataRunnable explicit on a CLOSED TREE. r=me
--HG--
extra : amend_source : 866c595f036229aa3047d725b6158430536a911f
2015-01-08 01:28:21 -08:00
Seth Fowler
ebe4139428 Bug 1116747 - Always use multithreaded image decoding. r=tn 2015-01-08 00:29:41 -08:00
Seth Fowler
7b778fd850 Bug 1116746 - Remove unused statistics code from RasterImage. r=tn 2015-01-08 00:29:39 -08:00
Seth Fowler
97e722b9e0 Bug 1116733 (Part 2) - Remove DecodeStrategy and frame allocation handling outside of Decoder. r=tn 2015-01-08 00:04:31 -08:00
Seth Fowler
954c87102c Bug 1116733 (Part 1) - Allocate frames off-main-thread. r=tn 2015-01-08 00:04:31 -08:00
Seth Fowler
14f7ddb551 Bug 1116735 - Allocate frames in the decoder. r=tn
--HG--
extra : rebase_source : df5c3cbe4e8a8ad40e4a7fa04a2c53e1c3bad559
2015-01-08 00:01:25 -08:00
Seth Fowler
6b6f748f38 Bug 1116737 - Merge FrameBlender into FrameAnimator. r=tn
--HG--
extra : rebase_source : f2021135cf82e35273095f8e96373bcbee304710
2015-01-07 13:07:23 -08:00
Seth Fowler
f0bd64dc1d Bug 1116716 (Followup) - Add missing header file in FrameAnimator.cpp on a CLOSED TREE. r=me 2015-01-07 02:51:58 -08:00
Seth Fowler
b1a80a3530 Bug 1116716 - Store animated frames in the SurfaceCache. r=tn 2015-01-07 01:40:23 -08:00
Seth Fowler
4b8e6b32b1 Bug 1116719 - Remove Image::FrameRect. r=tn 2015-01-07 01:40:23 -08:00
Seth Fowler
1077f96e21 Bug 1112972 (Part 5) - Remove almost all special handling of multipart images in ProgressTracker. r=tn 2015-01-07 01:37:20 -08:00
Seth Fowler
cdb2d480c6 Bug 1112972 (Part 4) - Remove Image::OnNewSourceData. r=tn 2015-01-07 01:37:20 -08:00
Seth Fowler
0e83d78d8f Bug 1112972 (Part 3) - Remove almost all special handling of multipart images in RasterImage. r=tn 2015-01-07 01:37:20 -08:00
Seth Fowler
3ff32616f2 Bug 1112972 (Part 2) - Add MultipartImage and use it for multipart/x-mixed-replace image loading. r=tn 2015-01-07 01:37:20 -08:00
Seth Fowler
78daf72001 Bug 1112972 (Part 1) - Minor refactoring to prepare for MultipartImage. r=tn 2015-01-07 01:37:20 -08:00
Seth Fowler
4ce455471d Bug 1112956 - Add IProgressObserver to permit more than one class to observe ProgressTracker. r=tn 2015-01-07 01:35:20 -08:00
Valentin Gosu
86bd99811b Bug 1021221 - resourceTiming initiatorType is empty/other when images are loaded from cache r=seth
Setting the initiatorType to img in ProxyListener::OnStartRequest for resources that don't already have it set.
2014-10-29 17:35:05 +02:00
Christoph Kerschbaumer
dd4b91b6b5 Bug 1116624 - Move CORS into dom/security (r=sicking)
--HG--
rename : dom/base/nsCrossSiteListenerProxy.cpp => dom/security/nsCORSListenerProxy.cpp
rename : dom/base/nsCrossSiteListenerProxy.h => dom/security/nsCORSListenerProxy.h
2014-12-30 15:54:59 -08:00
Patrick McManus
a72311ef3c bug 1113065 - spdy should not close session on imglib error r=bagder r=seth 2014-12-22 11:03:05 -05:00
Ehsan Akhgari
bc2500239a Bug 1117248 - Mark virtual overridden functions as MOZ_OVERRIDE in image/; r=jrmuizel 2015-01-03 12:24:49 -05:00
Christoph Kerschbaumer
295e89ab55 Bug 1087731: Make JS callers of ios.newChannel call ios.newChannel2 in image/ (r=seth) 2014-10-24 14:54:01 -07:00
Glenn Randers-Pehrson
74cd24a194 Bug 1102048 (Part 08) - Make image/src/FrameAnimator.* comply with the Mozilla Coding Style Guide. r=seth
--HG--
extra : rebase_source : 317b7ad7f96fd63b3f989beb177397f065f66c8f
2014-12-14 15:54:00 -08:00
Ehsan Akhgari
e66c428356 Bug 773014 - Part 2: Mark Static{Auto,Ref}Ptr as global-only; r=jrmuizel 2014-12-22 18:10:44 -05:00
Seth Fowler
c28e66d620 Bug 1111041 - Detect PR_GetPhysicalMemorySize failure in SurfaceCache. r=dholbert 2014-12-18 19:50:56 -08:00
Carsten "Tomcat" Book
81fac98fac Backed out changeset 6d81c1303daf (bug 1086284) for refest failures on a CLOSED TREE 2014-12-17 13:21:07 +01:00
Jonathan Watt
517d061734 Bug 1086284 - Avoid using refcounting when determining an SVG-as-an-image's intrinsic size so that the image doesn't end up in the CC graph. r=dholbert 2014-12-09 22:32:10 +00:00
Daniel Holbert
7bb8c6c551 (no bug) Fix some mis-indented lines in VectorImage.cpp. (whitespace-only, DONTBUILD) 2014-12-15 19:50:02 -08:00
Daniel Holbert
4873b4a63b (no bug) Update stale comment above VectorImage::Draw() impl, to reflect current IDL function-prototype. (comment-only, DONTBUILD) 2014-12-15 19:49:59 -08:00
Ehsan Akhgari
20474e5ba7 Bug 649012 - Fail mochitest-plains which use flaky timeouts (setTimeout(x) for x > 0); r=ted
We are white-listing the existing set of tests that use setTimeout
like this.  Hopefully these tests will be investigated and fixed
in the future, so that we can narrow down the white-list.

This check is only turned on for mochitest-plain for now.
2014-12-11 13:34:40 -05:00
Christoph Kerschbaumer
0906dff6b3 Bug 1087442 - Attach LoadInfo inside each individual ProtocolHandler - image/ changes (r=seth) 2014-12-12 09:06:54 -08:00
Phil Ringnalda
e725b6fdc2 Backed out 15 changesets (bug 1087442)
Backed out changeset 3f4166fb5e37 (bug 1087442)
Backed out changeset 0c9c9123a0a9 (bug 1087442)
Backed out changeset 1d85d298042d (bug 1087442)
Backed out changeset 51f3ce397d68 (bug 1087442)
Backed out changeset f3b81a623692 (bug 1087442)
Backed out changeset 472e8fa74596 (bug 1087442)
Backed out changeset 12f97df7b79c (bug 1087442)
Backed out changeset 253cde88d3c5 (bug 1087442)
Backed out changeset b44f9ebd56cb (bug 1087442)
Backed out changeset 48e412887726 (bug 1087442)
Backed out changeset a2c76343f7a9 (bug 1087442)
Backed out changeset 0b5b07cfef0e (bug 1087442)
Backed out changeset 2931c35342a4 (bug 1087442)
Backed out changeset 681ce9dcad64 (bug 1087442)
Backed out changeset 47c505856954 (bug 1087442)
2014-12-11 21:58:21 -08:00
Christoph Kerschbaumer
ea1673370b Bug 1087442 - Attach LoadInfo inside each individual ProtocolHandler - image/ changes (r=seth) 2014-12-11 20:46:22 -08:00
Seth Fowler
f5a1845aa6 Bug 1101415 - Disable test_animation2.html until it can be fixed (on a CLOSED TREE). r=me a=RyanVM 2014-12-11 12:03:05 -08:00
Seth Fowler
96eec4680f Bug 1098958 - Call UpdateImageContainer whenever we send invalidations in RasterImage. r=tn
--HG--
extra : rebase_source : 06226edca355e318d442dbf4410a722f0d1e0d1b
2014-12-10 19:35:15 -08:00
Ehsan Akhgari
fee3111e52 Bug 1109699 - Fix more bad implicit constructors in gfx and image; r=jrmuizel 2014-12-10 17:48:11 -05:00
Seth Fowler
26c1415afc Bug 1109283 - Handle failure of nsExpirationTracker::AddObject in the SurfaceCache. r=dholbert 2014-12-10 02:53:47 -08:00
Glenn Randers-Pehrson
902f4fba90 Bug 1102048 - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2014-12-05 17:17:00 -08:00
Glenn Randers-Pehrson
67564489e4 Bug 1102048 - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2014-12-05 16:35:00 -08:00
Glenn Randers-Pehrson
fc231a5ab1 Bug 1102048 - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2014-12-05 16:28:00 -08:00
Glenn Randers-Pehrson
cce7ac2354 Bug 1102048 - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2014-12-05 15:58:00 -08:00
Glenn Randers-Pehrson
aae988e448 Bug 1102048 (Part 18) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2014-12-04 11:43:00 -08:00
Glenn Randers-Pehrson
dfdcff60ec Bug 1102048 (Part 16) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2014-12-04 11:23:00 -08:00
Glenn Randers-Pehrson
5c4052bc39 Bug 1102048 (Part 22) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth 2014-12-05 15:12:08 -08:00
Seth Fowler
29a9599fdb Bug 1106522 (Part 1) - Make imgLoader::SupportImageWithMimeType optionally support image/svg+xml. r=bz 2014-12-05 11:33:08 -08:00
Daniel Holbert
f0ab495e17 Bug 1002632 part 1: Make an image document's refresh driver receive ticks from the image's clients, & disable its internal timer. r=bz 2014-05-01 09:31:54 -07:00
Seth Fowler
79e9039ad2 Bug 1106448 - Make sure we have a frame in GetCurrentFrameRef. r=tn 2014-12-03 10:02:19 -08:00
Seth Fowler
2a01740337 Bug 1106423 - Always use raw frames in DoBlend. r=tn 2014-12-03 10:02:17 -08:00
Seth Fowler
ed41012dd5 Bug 1104622 (Part 2) - Don't discard for redecoding. r=tn 2014-11-27 19:56:00 -08:00
Seth Fowler
b3a334e0e2 Bug 1104622 (Part 1) - Remove DiscardTracker. r=tn 2014-11-27 19:55:57 -08:00
Seth Fowler
5a483e9cb1 Bug 1065818 - Clean up memory reports and use of decoded size for image cache entries. r=tn,njn 2014-11-26 18:00:15 -08:00
Phil Ringnalda
7cb3650347 Back out 01093b5a774b (bug 948194) for not fixing enough races
--HG--
extra : rebase_source : 7e2d451639be57ef03818d84ba2e4e7fd72fa63d
2014-11-26 17:42:04 -08:00
Blake Kaplan
2b02b13dc1 Bug 948194 - Fix races related to CPOWs and tab switching. Original patch by Alexandru Tifrea. r=seth 2014-11-26 14:29:52 -08:00
Seth Fowler
a6808b1007 Bug 1060869 - Followup - Fix mochitest.ini syntax and bump back up memory limit prefs on B2G. r=me
--HG--
extra : rebase_source : 1b3a89c0c35e2fc8e1febcba1e4b3b784fa5fcff
2014-11-26 13:39:30 -08:00
Seth Fowler
ecbbf66e47 Bug 923302 - Add explicit memory reporting for SurfaceCache. r=njn,dholbert 2014-11-26 13:22:11 -08:00
Seth Fowler
ca33a839c5 Bug 1060869 (Part 4) - Update SurfaceCache prefs to increase the cache size. r=dholbert,tn 2014-11-26 13:22:10 -08:00
Seth Fowler
1dfb78d7cb Bug 1060869 (Part 3) - Make the SurfaceCache free only a fraction of its data on memory pressure. r=dholbert 2014-11-26 13:22:10 -08:00
Seth Fowler
9084851cc0 Bug 1060869 (Part 2) - Store the first frame of a RasterImage in the SurfaceCache. r=tn 2014-11-26 13:22:10 -08:00
Seth Fowler
e8dc7026c2 Bug 1060869 (Part 1) - Add lifetime control to SurfaceCache. r=dholbert 2014-11-26 13:22:10 -08:00
Seth Fowler
0d7ac4495d Bug 1057904 (Part 2) - Make imgFrame::LockImageData and UnlockImageData private. r=tn 2014-11-26 13:22:10 -08:00
Seth Fowler
fcab9e5fb4 Bug 1057904 (Part 1) - Use RawAccessRef in FrameBlender and related classes and clean up. r=tn 2014-11-26 13:22:10 -08:00
Ryan VanderMeulen
78f5671b60 Backed out changeset 82fd2eef7630 (bug 1060869) because the rest of this bug was backed out and it seems to be causing OSX Gip(f1) to be near permafail. 2014-11-26 16:06:53 -05:00
Carsten "Tomcat" Book
9df0cfaf53 Backed out changeset 2fd42e5e2920 (bug 1057904) for bc3 test failures on a CLOSED TREE 2014-11-26 11:57:41 +01:00
Carsten "Tomcat" Book
4bf5fbd618 Backed out changeset 351d96ab9475 (bug 1057904) 2014-11-26 11:57:13 +01:00
Carsten "Tomcat" Book
033bea33b7 Backed out changeset 73c52394b08b (bug 1060869) 2014-11-26 11:57:11 +01:00
Carsten "Tomcat" Book
e1bf617468 Backed out changeset 0a67a7799022 (bug 1060869) 2014-11-26 11:57:09 +01:00
Carsten "Tomcat" Book
34a875fb5e Backed out changeset c70381132ccf (bug 1060869) 2014-11-26 11:57:06 +01:00