Commit Graph

638 Commits

Author SHA1 Message Date
Bobby Holley
eb1d2f2ae8 Bug 514033 - Error recovery for imagelib - part 1 - Introduce error tracking to Decoder.r=joe,a=blocker 2010-09-12 08:22:27 -07:00
Bobby Holley
bb2adb491c Bug 593489 - Make Image hold onto its URI.r=joe,a=blockerblocker 2010-09-12 08:22:26 -07:00
Mounir Lamouri
afad64a8ef Bug 594952 - Fix compilation of SVGDocumentWrapper.cpp when SMIL is disabled. r=dholbert a2.0=bustage 2010-09-10 07:04:30 +02:00
Daniel Holbert
ecd6d13497 Bug 594650: Replace static variable in header file with static variable + accessor method, to fix codesighs & Composer.dll bustage. r=roc r=taras a=bustage 2010-09-09 09:41:58 -07:00
L. David Baron
c5062dc79d Fix missing negation. (Bug 276431) r=dholbert a=orange 2010-09-08 15:56:15 -07:00
Daniel Holbert
66639dce30 Bug 276431 Patch 14: Add SVGRootRenderingObserver helper-class, to catch invalidations in helper-document. r=roc a=blocking 2010-09-08 13:40:40 -07:00
Daniel Holbert
582d6bc46c Bug 276431 Patch 13: Fill in implementation for mozilla::imagelib::VectorImage. r=joe r=roc a=blocking 2010-09-08 13:40:39 -07:00
Daniel Holbert
7399c41bb2 Bug 276431 Patch 12: Add SVGDocumentWrapper helper-class. r=joe r=roc a=blocking 2010-09-08 13:40:39 -07:00
Daniel Holbert
d36664dafe Bug 276431 Patch 11: Add stub code for VectorImage. r=joe a=blocking 2010-09-08 13:40:39 -07:00
Daniel Holbert
f246613ef4 Bug 276431 Patch 10: Make imgContainer::Draw take image-viewport-size, and improve nsLayoutUtils drawing wrappers. r=roc r=joe a=blocking 2010-09-08 13:40:39 -07:00
Daniel Holbert
4212070b9f Bug 276431 Patch 7: Add sentinel value "mozilla::imagelib::kFullImageSpaceRect" in imgIContainer. r=joe a=blocking 2010-09-08 13:40:39 -07:00
Daniel Holbert
f3ccf9a90b Bug 276431 part 2: Add imgIContainer::GetRootLayoutFrame. r=joe a=blocking 2010-09-08 13:40:38 -07:00
Daniel Holbert
053e30a125 Bug 276431 part 1: For SVG images, pass through OnStartRequest/OnDataAvailable/OnStopRequest from imgRequest. r=joe a=blocking 2010-09-08 13:40:38 -07:00
Alon Zakai
b04266cca8 Tests for bug 359608 - Animated GIFs are animated even when user navigates to another page.r=joe,a=blocker 2010-09-07 17:34:18 -07:00
Alon Zakai
4606f548ac Bug 359608 - Animated GIFs are animated even when user navigates to another page.r=bholley,bz;sr=bz;a=blocker 2010-09-07 17:33:02 -07:00
Bobby Holley
5f50423481 Bug 590838 - Combine imgRequestProxy::mLocksHeld and imgRequestProxy::mDeferredLocks.r=joe 2010-08-25 23:21:34 -07:00
Max Stepin
078d2ce3cc Bug 580182. Make dispose=previous actually work correctly. r=joe, a=joe 2010-09-07 15:10:42 -04:00
Doug Turner
59a14c27ff Bug 592308. IsLowMemory() is terribly slow and there is nothing to do about it. r=bsmedberg a=blocking-fennec2.0 2010-09-02 19:02:06 -03:00
Dan Witte
ccd3c28130 Back out Bug 536324 part 2. 2010-08-30 13:20:39 -07:00
Dan Witte
c4091d7694 Back out Bug 536324 part 3. 2010-08-30 13:20:39 -07:00
Dan Witte
86583b1783 Back out Bug 589292. 2010-08-30 13:20:38 -07:00
Bobby Holley
75637d22a2 Bug 590252 - part 5 - Make RequestDecode() SyncDecode() on images that are small enough.r=joe,a=blocker 2010-08-26 15:54:21 -07:00
Bobby Holley
02d8f53c2f Bug 590252 - part 4 - Don't do progressive display on redecodes.r=joe,a=blocker 2010-08-25 19:07:01 -04:00
Bobby Holley
f537275f66 Bug 590252 - part 3 - Only flush invalidations when we need to.r=joe,a=blocker 2010-08-25 16:11:09 -04:00
Bobby Holley
de6f4e8b2f Bug 590252 - part 2 - Make decoder implementations use the Decoder superclass invalidation framework.r=joe,a=blocker 2010-08-24 17:12:04 -04:00
Bobby Holley
6cc5f55cb2 Bug 590252 - part 1 - Add framework to Decoder superclass to handle invalidations.r=joe,a=blocker 2010-08-24 16:40:45 -04:00
Bobby Holley
d0989f8f70 Bug 590260 - Decode more bytes at a time during image redecodes.r=joe,a=blocker 2010-08-25 18:58:27 -04:00
Dan Witte
8de0079a42 Merge e10s -> m-c. a=patches 2010-08-27 08:04:00 -07:00
Dan Witte
8937bd5738 Bug 589292 - e10s necko: add contentDisposition prop to nsIChannel. r=jduell, sr=biesi, a=beta5+ 2010-08-25 17:51:21 -07:00
Dan Witte
f2000be3eb Merge. 2010-08-23 17:30:33 -07:00
Daniel Holbert
a4aa680184 (no bug) tabs-vs-spaces consistency fix in imagelib Makefile.in. [one-liner whitespace-only] a=NPOTB 2010-08-23 15:45:16 -07:00
Daniel Holbert
1270ce9d8f Bug 587902, part 3: Add NS_ABORT_IF_FALSE statements in imgStatusTracker for assumptions about mImage. r=joe a=blocking 2010-08-23 15:44:35 -07:00
Daniel Holbert
45d36a247a Bug 587902, part 2: Instantiate imgRequest::mImage only after we know its mimetype. r=joe a=blocking 2010-08-23 15:44:07 -07:00
Daniel Holbert
2605301c67 Bug 587902, part 1: Allow an imgStatusTracker to be instantiated before its Image. r=joe a=blocking 2010-08-23 15:44:07 -07:00
Daniel Holbert
03b9bef68e Bug 587800: Move GetCurrentFrameIndex & GetNumFrames from Image to RasterImage. r=bholley a=blocking 2010-08-23 15:44:07 -07:00
Daniel Holbert
3e6fd6e245 Bug 587779: remove unused nsresult return-val from Image::GetCurrentFrameRect. r=bholley a=blocking 2010-08-23 15:44:07 -07:00
Bobby Holley
9b62c35018 Bug 578357 - Use fallible allocation for image frames.r=joe,cjones;a=blocker 2010-08-23 15:42:51 -07:00
Daniel Holbert
104025f246 Bug 591014: Null-check mImage in imgRequestProxy::GetStaticRequest. r=joe a=blocking-beta5 2010-08-26 20:47:20 +00:00
Dan Witte
5f4dbe5953 Bug 536324 - e10s HTTP: refactor nsHashPropertyBag. Part 3: contentLength consumers. r=jduell, a=beta5+ 2010-08-21 00:31:35 -07:00
Dan Witte
4439f97632 Bug 536324 - e10s HTTP: refactor nsHashPropertyBag. Part 2: contentLength implementors. r=jduell, a=beta5+ 2010-08-21 00:31:11 -07:00
Daniel Holbert
6c91434310 Bug 584841 patch 12: Rename variables & methods to use 'image' terminology instead of 'container'. r=bholley a=blocking 2010-08-13 21:09:51 -07:00
Daniel Holbert
2beeaed444 Bug 584841 patch 11: Move remaining imagelib-private methods from imgIContainer interface to Image abstract class. r=bholley sr=vlad a=blocking 2010-08-13 21:09:49 -07:00
Daniel Holbert
54b9eeb916 Bug 584841 patch 10: Give imgStatusTracker an Image* instead of imgIContainer*. r=bholley a=blocking 2010-08-13 21:09:49 -07:00
Daniel Holbert
ef4b0b88ba Bug 584841 patch 9: Move RasterImage-specific methods from imgIContainer interface to RasterImage class. r=bholley sr=vlad a=blocking 2010-08-13 21:09:49 -07:00
Daniel Holbert
9575c46247 Bug 584841 patch 8: Add method imgIContainer::GetImageType to distinguish Raster vs Vector Images. r=bholley sr=vlad a=blocking 2010-08-13 21:09:49 -07:00
Daniel Holbert
7bdd38e74d Bug 584841 patch 7: Rename imgContainer source files. r=bholley a=blocking
--HG--
rename : modules/libpr0n/src/imgContainer.cpp => modules/libpr0n/src/RasterImage.cpp
rename : modules/libpr0n/src/imgContainer.h => modules/libpr0n/src/RasterImage.h
2010-08-13 21:09:49 -07:00
Daniel Holbert
5dae469d66 Bug 584841 patch 6: Fix whitespace from imgContainer class rename. r=bholley a=blocking 2010-08-13 21:09:49 -07:00
Daniel Holbert
bf34a05c14 Bug 584841 patch 5: Rename imgContainer class to mozilla::imagelib::RasterImage. r=bholley a=blocking 2010-08-13 21:09:49 -07:00
Daniel Holbert
c562101036 Bug 584841 patch 4: Rename imgDiscardTracker source files. r=bholley a=blocking
--HG--
rename : modules/libpr0n/src/imgDiscardTracker.cpp => modules/libpr0n/src/DiscardTracker.cpp
rename : modules/libpr0n/src/imgDiscardTracker.h => modules/libpr0n/src/DiscardTracker.h
2010-08-13 21:09:49 -07:00
Daniel Holbert
9dfa690f63 Bug 584841 patch 3: Rename imgDiscardTracker class to mozilla::imagelib::DiscardTracker. r=bholley a=blocking 2010-08-13 21:09:49 -07:00
Daniel Holbert
fad731edb0 Bug 584841 patch 2: Use Image pointers in place of imgContainer pointers in a few places. r=bholley a=blocking 2010-08-13 21:09:48 -07:00
Daniel Holbert
615dfd73de Bug 584841 patch 1: Create mozilla::imagelib::Image abstract class. r=bholley a=blocking 2010-08-13 21:09:48 -07:00
Daniel Holbert
5b754a5516 Bug 582004 part 2: Make imgIContainerObserver::FrameChanged take a const aDirtyRect argument. r=joe a=blocking 2010-08-13 21:09:48 -07:00
Daniel Holbert
548c074147 Bug 582004 part 1: Make imgStatusTracker::*FrameChanged take a const aDirtyRect argument. r=joe a=blocking 2010-08-13 21:09:48 -07:00
Bobby Holley
bb3ebd274f Bug 586566: Fold nsIconDecoder into decoders/bmp. r=dholbert a=blocking
--HG--
rename : modules/libpr0n/decoders/icon/nsIconDecoder.cpp => modules/libpr0n/decoders/bmp/nsIconDecoder.cpp
rename : modules/libpr0n/decoders/icon/nsIconDecoder.h => modules/libpr0n/decoders/bmp/nsIconDecoder.h
2010-08-13 21:09:48 -07:00
Bobby Holley
108e3fdc74 Bug 513681 - part 17 - remove imgIDecoder.r=joe,sr=shaver,a=blocker 2010-08-22 22:30:46 -04:00
Bobby Holley
d130c66290 Bug 513681 - part 16 - Move end-of-decode logic into Finish() and cleanup into destructor, abolishing Shutdown().r=joe,a=blocker 2010-08-22 22:30:46 -04:00
Bobby Holley
a8ba41c37a Bug 513681 - part 15 - Coalesce OnStartFrame/OnStopFrame into superclass.r=joe,a=blocker 2010-08-22 22:30:46 -04:00
Bobby Holley
ec845f918a Bug 513681 - part 14 - Coalesce size-setting into superclass.r=joe,a=blocker 2010-08-22 22:30:46 -04:00
Bobby Holley
18722046a2 Bug 513681 - part 13 - switch from "HEADERONLY" flag to IsSizeDecode()/SetSizeDecode().r=joe,a=blocker 2010-08-22 22:30:46 -04:00
Bobby Holley
68132bdc6f Bug 513681 - part 12 - Ensure that IsDecodeFinished() is only called with a non-null decoder.r=joe,a=blocker 2010-08-22 22:30:46 -04:00
Bobby Holley
ffd3ad3887 Bug 513681 - part 11 - make RasterImage carry a pointer to a Decoder.r=joe,a=blocker 2010-08-22 22:30:46 -04:00
Bobby Holley
2288ea1376 Bug 513681 - part 10 - make decoder implementations inherit from Decoder.r=joe,a=blocker 2010-08-22 22:30:46 -04:00
Bobby Holley
6d36a28a66 Bug 513681 - part 9 - Move PNG callbacks into decoder class.r=joe,a=blocker 2010-08-22 22:30:46 -04:00
Bobby Holley
bb57916dc5 Bug 513681 - part 8 - Fold nsJPEGDecoder::Flush() into nsJPEGDecoder::Close().r=joe,a=blocker 2010-08-22 22:30:45 -04:00
Bobby Holley
d530205f84 Bug 513681 - part 7 - rename mImageContainer to mImage in nsGIFDecoder2 for consistency with the rest of the decoders.r=joe,a=blocker 2010-08-22 22:30:45 -04:00
Bobby Holley
a5f3d16c03 Bug 513681 - part 6 - Introduce Decoder.cpp and Decoder.h (with virtual destructor).r=joe,a=blocker 2010-08-22 22:30:45 -04:00
Bobby Holley
277ad1663a Bug 513681 - part 5 - move the decoders out of their subdirectories.r=joe,a=blocker
--HG--
rename : modules/libpr0n/decoders/gif/GIF2.h => modules/libpr0n/decoders/GIF2.h
rename : modules/libpr0n/decoders/jpeg/iccjpeg.c => modules/libpr0n/decoders/iccjpeg.c
rename : modules/libpr0n/decoders/jpeg/iccjpeg.h => modules/libpr0n/decoders/iccjpeg.h
rename : modules/libpr0n/decoders/bmp/nsBMPDecoder.cpp => modules/libpr0n/decoders/nsBMPDecoder.cpp
rename : modules/libpr0n/decoders/bmp/nsBMPDecoder.h => modules/libpr0n/decoders/nsBMPDecoder.h
rename : modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp => modules/libpr0n/decoders/nsGIFDecoder2.cpp
rename : modules/libpr0n/decoders/gif/nsGIFDecoder2.h => modules/libpr0n/decoders/nsGIFDecoder2.h
rename : modules/libpr0n/decoders/bmp/nsICODecoder.cpp => modules/libpr0n/decoders/nsICODecoder.cpp
rename : modules/libpr0n/decoders/bmp/nsICODecoder.h => modules/libpr0n/decoders/nsICODecoder.h
rename : modules/libpr0n/decoders/bmp/nsIconDecoder.cpp => modules/libpr0n/decoders/nsIconDecoder.cpp
rename : modules/libpr0n/decoders/bmp/nsIconDecoder.h => modules/libpr0n/decoders/nsIconDecoder.h
rename : modules/libpr0n/decoders/jpeg/nsJPEGDecoder.cpp => modules/libpr0n/decoders/nsJPEGDecoder.cpp
rename : modules/libpr0n/decoders/jpeg/nsJPEGDecoder.h => modules/libpr0n/decoders/nsJPEGDecoder.h
rename : modules/libpr0n/decoders/png/nsPNGDecoder.cpp => modules/libpr0n/decoders/nsPNGDecoder.cpp
rename : modules/libpr0n/decoders/png/nsPNGDecoder.h => modules/libpr0n/decoders/nsPNGDecoder.h
2010-08-22 22:30:45 -04:00
Bobby Holley
aafd48c682 Bug 513681 - part 4 - Get rid of CIDs and friends for decoders.r=joe,a=blocker 2010-08-22 22:30:45 -04:00
Bobby Holley
315c1087fb Bug 513681 - part 3 - instantiate decoders without using COM goop.r=joe,a=blocker 2010-08-22 22:30:45 -04:00
Bobby Holley
8d69ad0207 Bug 513681 - part 2 - remove support for the MOZ_IMG_DECODERS build option.r=joe,khuey.a=blocker 2010-08-22 22:30:45 -04:00
Bobby Holley
404336876f Bug 513681 - part 1 - fix a few warnings.r=joe,a=blocker 2010-08-22 22:30:44 -04:00
Bobby Holley
daad8d9668 Bug 587371 - Image.h PRUint32 getters shouldn't be COM-y. r=joe,a=blocker 2010-08-22 22:30:44 -04:00
Markus Stange
94f1a7ca57 Bug 572680 - Make image drawing use the new gfxDrawable interface. r=joe 2010-08-13 15:30:27 +02:00
Markus Stange
ac97761cb7 Bug 572680 - Create gfxUtils::DrawPixelSnapped and make imgFrame use it. r=joe 2010-08-13 15:30:02 +02:00
Olli Pettay
545eb51b42 Bug 589431 - Crash when using profile manager [@ mozilla::imagelib::DiscardTracker::ReloadTimeout ], r=bholley, a=blocking
--HG--
extra : rebase_source : c5039b467ea61a80ba835767c9dde328db52fb4c
2010-08-22 21:17:25 +03:00
Kyle Huey
c5800700be Backing out Bug 513681 and Bug 587371 for timeouts. 2010-08-22 10:13:09 -04:00
Bobby Holley
54a728146b Bug 513681 - part 17 - remove imgIDecoder.r=joe,sr=shaver,a=blocker 2010-08-14 15:48:06 -04:00
Bobby Holley
2679ea50c1 Bug 513681 - part 16 - Move end-of-decode logic into Finish() and cleanup into destructor, abolishing Shutdown().r=joe,a=blocker 2010-08-14 15:40:21 -04:00
Bobby Holley
2cfa69fe88 bug 513681 - part 15 - Coalesce OnStartFrame/OnStopFrame into superclass.r=joe,a=blocker 2010-08-14 13:41:04 -04:00
Bobby Holley
f7ddf62d00 Bug 513681 - part 14 - Coalesce size-setting into superclass.r=joe,a=blocker 2010-08-14 13:06:35 -04:00
Bobby Holley
46533669e3 Bug 513681 - part 13 - switch from "HEADERONLY" flag to IsSizeDecode()/SetSizeDecode().r=joe,a=blocker 2010-08-13 19:10:53 -04:00
Bobby Holley
4fed8a60e8 Bug 513681 - part 12 - Ensure that IsDecodeFinished() is only called with a non-null decoder.r=joe,a=blocker 2010-08-14 11:31:27 -04:00
Bobby Holley
bb217f49d1 Bug 513681 - part 11 - make RasterImage carry a pointer to a Decoder.r=joe,a=blocker 2010-08-13 18:58:54 -04:00
Bobby Holley
250ad09167 Bug 513681 - part 10 - make decoder implementations inherit from Decoder.r=joe,a=blocker 2010-08-12 15:58:25 -04:00
Bobby Holley
428182998f ug 513681 - part 9 - Move PNG callbacks into decoder class.r=joe,a=blocker 2010-08-12 15:53:31 -04:00
Bobby Holley
5d773a2acf Bug 513681 - part 8 - Fold nsJPEGDecoder::Flush() into nsJPEGDecoder::Close().r=joe,a=blocker 2010-08-12 14:16:36 -04:00
Bobby Holley
9cbae4f0a2 Bug 513681 - part 7 - rename mImageContainer to mImage in nsGIFDecoder2 for consistency with the rest of the decoders.r=joe,a=blocker 2010-08-12 13:58:44 -04:00
Bobby Holley
4e9dccf71f Bug 513681 - part 6 - Introduce Decoder.cpp and Decoder.h.r=joe,a=blocker 2010-08-10 20:11:12 -04:00
Bobby Holley
d7bebcd3f1 Bug 513681 - part 5 - move the decoders out of their subdirectories.r=joe,a=blocker
--HG--
rename : modules/libpr0n/decoders/gif/GIF2.h => modules/libpr0n/decoders/GIF2.h
rename : modules/libpr0n/decoders/jpeg/iccjpeg.c => modules/libpr0n/decoders/iccjpeg.c
rename : modules/libpr0n/decoders/jpeg/iccjpeg.h => modules/libpr0n/decoders/iccjpeg.h
rename : modules/libpr0n/decoders/bmp/nsBMPDecoder.cpp => modules/libpr0n/decoders/nsBMPDecoder.cpp
rename : modules/libpr0n/decoders/bmp/nsBMPDecoder.h => modules/libpr0n/decoders/nsBMPDecoder.h
rename : modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp => modules/libpr0n/decoders/nsGIFDecoder2.cpp
rename : modules/libpr0n/decoders/gif/nsGIFDecoder2.h => modules/libpr0n/decoders/nsGIFDecoder2.h
rename : modules/libpr0n/decoders/bmp/nsICODecoder.cpp => modules/libpr0n/decoders/nsICODecoder.cpp
rename : modules/libpr0n/decoders/bmp/nsICODecoder.h => modules/libpr0n/decoders/nsICODecoder.h
rename : modules/libpr0n/decoders/bmp/nsIconDecoder.cpp => modules/libpr0n/decoders/nsIconDecoder.cpp
rename : modules/libpr0n/decoders/bmp/nsIconDecoder.h => modules/libpr0n/decoders/nsIconDecoder.h
rename : modules/libpr0n/decoders/jpeg/nsJPEGDecoder.cpp => modules/libpr0n/decoders/nsJPEGDecoder.cpp
rename : modules/libpr0n/decoders/jpeg/nsJPEGDecoder.h => modules/libpr0n/decoders/nsJPEGDecoder.h
rename : modules/libpr0n/decoders/png/nsPNGDecoder.cpp => modules/libpr0n/decoders/nsPNGDecoder.cpp
rename : modules/libpr0n/decoders/png/nsPNGDecoder.h => modules/libpr0n/decoders/nsPNGDecoder.h
2010-08-12 00:59:59 -04:00
Bobby Holley
6bb6a9c74b Bug 513681 - part 4 - Get rid of CIDs and friends for decoders.r=joe,a=blocker 2010-08-12 00:31:37 -04:00
Bobby Holley
1d73561460 Bug 513681 - part 3 - instantiate decoders without using COM goop.r=joe,a=blocker 2010-08-11 20:49:50 -04:00
Bobby Holley
9de0c252df Bug 513681 - part 2 - remove support for the MOZ_IMG_DECODERS build option.r=joe,khuey.a=blocker 2010-08-11 20:12:24 -04:00
Bobby Holley
3ae7b09e52 Bug 513681 - part 1 - fix a few warnings.r=joe,a=blocker 2010-08-13 18:15:20 -04:00
Bobby Holley
4d20b09df3 Bug 587371 - Image.h PRUint32 getters shouldn't be COM-y. r=joe,a=blocker 2010-08-14 18:23:47 -04:00
Bobby Holley
f82f638ea9 Bug 583825 - Progressive decoding/display of images no longer works; r=joe a=blocking
Since really we want to send OnStartContainer once per-proxy, it doesn't make the most sense to have such handling be done in imgRequest and imgStatusTracker. This patch moves all that into imgRequestProxy, and fixes the bug.
2010-08-12 11:59:37 -04:00
Joe Drew
c52fae20f3 Bug 583028 - Hold on to a runnable while it's outstanding, and add proxies for it to notify when it does get run. This makes us delay onload less. r=bholley a=blocking 2010-08-12 11:59:28 -04:00
Makoto Kato ext:(%2C%20L.%20David%20Baron%20%3Cdbaron%40dbaron.org%3E)
9438e86b4d Use a known failure condition that more closely matches when the tests fail (when we use handwritten SSE2 assembly in the JPEG code), so that they don't produce unexpected pass results on 64-bit Windows. (Bug 582850) r=joedrew / dbaron a2.0=tests 2010-08-11 12:32:53 -07:00
Bobby Holley
ccbe5fc67b Bug 579122 - imgRequestProxy race condition can fire 2 OnStartDecodes in a row.r=joe 2010-08-02 15:44:49 -04:00
Daniel Holbert
c63155e8f1 (no bug, comment-only) Fix typo in comment with the condensed version of imgContainer's CID. 2010-08-05 07:53:43 -07:00