Commit Graph

528 Commits

Author SHA1 Message Date
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
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
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
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
Bjarne
100caa546d Bug 546606 - Make redirect API async - part 2; r=honzab.moz,cbiesinger,bjarne,jst sr=jst 2010-08-04 22:15:55 -04:00
Bobby Holley
7c0c7249a2 Bug 578591 and bug 579139 - Disable test_bug435296.html and test_bug478398.html due to intermittent orange. r=lumpy 2010-07-31 14:39:06 -04:00
L. David Baron
c06c57f6e6 Fix bustage from bug 570329 with s/windowsWidget/winWidget/g. 2010-07-30 20:50:52 -07:00
L. David Baron
9cc2e9ec05 Switch reftest manifests to new, shorter syntax for widget toolkit tests. (Bug 570329) a2.0=tests
This patch was created by running the following sed commands:
s/MOZ_WIDGET_TOOLKIT=="\(gtk2\|cocoa\|qt\|windows\)"/\1Widget/g
s/MOZ_WIDGET_TOOLKIT!="\(gtk2\|cocoa\|qt\|windows\)"/!\1Widget/g
on all *.list files in the tree.
2010-07-30 16:48:57 -07:00
Makoto Kato
2732a9078d Bug 578588 - Test suite may not work correctly on Win64 because navigator.platform is Win64. r=sayrer, a=Test Only 2010-07-30 17:18:45 +09:00
Joe Drew
42e42531be Bug 572520: step 9, test asynchronous notification for regular loads and channel loads on static, animated, and 404 images. r=jrmuizel,bholley 2010-07-28 14:52:59 -07:00
Joe Drew
9ecbf020a6 Bug 572520: step 8, make LoadImage and LoadImageWithChannel scriptable so they are testable from js unit tests. r=jrmuizel sr=vlad 2010-07-28 14:52:50 -07:00
Joe Drew
364a44e4bd Bug 572520: step 7.1, Add some logging to imgStatusTracker. r=bholley 2010-07-28 14:52:34 -07:00
Joe Drew
e2fa5f1de8 Bug 572520: step 7, delay otherwise-synchronous notifications, and send them asynchronously later. r=jrmuizel,bholley sr=bz 2010-07-28 14:52:14 -07:00
Joe Drew
dce4fe07b6 Bug 572520: step 6, centralize the tracking of load/decode status. Make a single class, imgStatusTracker, which keeps track of the state of an image, and also takes care of calling notifications on imgRequestProxys. r=jrmuizel,bholley 2010-05-14 16:47:59 -04:00