Граф коммитов

15 Коммитов

Автор SHA1 Сообщение Дата
Kaku Kuo 7460e53193 Bug 1141979 - part11 - handle cases that mapDataInto() should throw; r=jrmuizel
MozReview-Commit-ID: JuPj54fNB3s

--HG--
extra : transplant_source : UW%60%B44%B2%7B%B2u%06U%27%60%9AH%BF%BD%FD%25%B7
2016-03-16 12:01:32 +08:00
Kaku Kuo d3a7ed24e9 Bug 1141979 - part9 - implement ImageBitmapFactories extensions; r=jrmuizel
MozReview-Commit-ID: 6Hm58nffAuV

--HG--
extra : transplant_source : %97%EE%BB%BB%EC%D4%8B%90q%C6%8F%95%F2%A8%D1Q%DDp%A1%F8
2016-04-27 11:46:51 +08:00
Kaku Kuo fca7b0b604 Bug 1141979 - part8 - implement ImageBitmap extensions; r=jrmuizel
MozReview-Commit-ID: Bc6HoqRLMNB

--HG--
extra : transplant_source : %89%E9Q%FD4%ED%FD%EC5pqq%AF%C6%90%E0y%A2%88%12
2016-04-27 13:03:01 +08:00
Kaku Kuo 447d4a1f0d Bug 1141979 - part0 - setup preference utilities; r=jrmuizel
MozReview-Commit-ID: GoevPKVNASQ

--HG--
extra : transplant_source : %7Co%BA9%D0i%92B%5D%03%3Fb%AF_%84%02.Ano
2015-11-13 18:27:41 +08:00
Kaku Kuo 7c27f74f1f Bug 1239752 - Create ImageBitmap from ImageData should preserve alpha. r=roc
MozReview-Commit-ID: RTf8Bva5yb

--HG--
extra : rebase_source : f5a783c1d2bb7d02f64256e711010a3f2d8563f2
2016-01-19 15:06:20 +08:00
Ting-Yu Lin 8583cbceaa Bug 1234744 - Fix build errors in ImageBitmap.h. r=roc
--HG--
extra : rebase_source : 6832c025216fd26cdd5932dc1a789b5080621380
2015-12-23 11:49:19 +08:00
Morris Tseng 3e61e4b4cf Bug 1172796 - Part 7: Implements ImageBitmapRenderingContext. r=roc r=smaug
--HG--
extra : commitid : J5ynF4BHVHV
2015-12-18 14:52:17 +08:00
Morris Tseng 4144a07339 Bug 1172796 - Part 6: Implements ImageBitmap::Close(). r=roc r=smaug
--HG--
extra : commitid : 85dot8oSPkP
2015-12-18 14:52:17 +08:00
Morris Tseng 25c5294a43 Bug 1172796 - Part 5: Implements OffscreenCanvas::TransferImageBitmap. r=roc r=smaug
--HG--
extra : commitid : 4XzkGVfRcHJ
2015-12-18 14:52:17 +08:00
Morris Tseng 0d4ac3243e Bug 1215438 - Part 1: Add utility functions to support transferring ImageBitmap. r=roc
--HG--
extra : commitid : JdhYZUbeqRs
2015-12-18 14:52:16 +08:00
Nathan Froyd 01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Nathan Froyd 583afa0965 Bug 1207245 - part 3 - switch all uses of mozilla::RefPtr<T> to nsRefPtr<T>; r=ehsan
This commit was generated using the following script, executed at the
top level of a typical source code checkout.

 # Don't modify select files in mfbt/ because it's not worth trying to
 # tease out the dependencies currently.
 #
 # Don't modify anything in media/gmp-clearkey/0.1/ because those files
 # use their own RefPtr, defined in their own RefCounted.h.
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    grep -v 'mfbt/RefPtr.h' | \
    grep -v 'mfbt/nsRefPtr.h' | \
    grep -v 'mfbt/RefCounted.h' | \
    grep -v 'media/gmp-clearkey/0.1/' | \
    xargs perl -p -i -e '
 s/mozilla::RefPtr/nsRefPtr/g; # handle declarations in headers
 s/\bRefPtr</nsRefPtr</g; # handle local variables in functions
 s#mozilla/RefPtr.h#mozilla/nsRefPtr.h#; # handle #includes
 s#mfbt/RefPtr.h#mfbt/nsRefPtr.h#;       # handle strange #includes
'

 # |using mozilla::RefPtr;| is OK; |using nsRefPtr;| is invalid syntax.
find . -name '*.cpp' -o -name '*.mm' | xargs sed -i -e '/using nsRefPtr/d'

 # RefPtr.h used |byRef| for dealing with COM-style outparams.
 # nsRefPtr.h uses |getter_AddRefs|.
 # Fixup that mismatch.
find . -name '*.cpp' -o -name '*.h'| \
    xargs perl -p -i -e 's/byRef/getter_AddRefs/g'
2015-10-18 00:40:10 -04:00
William Chen 326cceef61 Bug 1131470 - Part 3: Implement ScreenOrientation interface. r=baku
--HG--
extra : rebase_source : 115753be382c7694c775915d5944ae2dabd9d0c3
2015-08-18 14:55:21 -07:00
Kaku Kuo 9f9f5a83d7 Bug 1044102 - Part 3 - Support StructuredClone. r=baku
--HG--
extra : rebase_source : 714950441e109436a9d70a24a8ab4efb269024c5
2015-07-30 20:50:00 +02:00
Kaku Kuo 9c3f995e43 Bug 1044102 - Part 1 - Implement ImageBitmap. r=roc, sr=smaug
--HG--
extra : rebase_source : c26f327064125a6d5690b03571f25ea0e25347eb
2015-07-30 20:47:00 +02:00