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

18967 Коммитов

Автор SHA1 Сообщение Дата
Wes Kocher 400e33f154 Merge m-c to b2ginbound, a=merge 2015-10-07 11:11:10 -07:00
Wes Kocher 399a23b6c1 Merge inbound to m-c a=merge 2015-10-07 10:29:41 -07:00
Wes Kocher 92eaf64910 Backed out changeset 1f51d1614b9a (bug 1207245) 2015-10-07 10:19:31 -07:00
Wes Kocher 75ff20f5af Backed out changeset 91d4539e00ce (bug 1207245)
--HG--
rename : mfbt/RefPtr.h => mfbt/nsRefPtr.h
2015-10-07 10:19:19 -07:00
Nathan Froyd 89a69c829a 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.

 # 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-07 16:50:25 -04:00
Nathan Froyd 1f70f620da 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' | \
    xargs perl -p -i -e 's/byRef/getter_AddRefs/g'
2015-10-07 15:05:02 -04:00
Carsten "Tomcat" Book 08997000eb Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Reuben Morais 8c408a1045 Bug 1197010 - Implement Android backend for createMessageCursor/createThreadCursor. r=snorp 2015-10-06 19:40:38 -03:00
Kit Cambridge e83e929fef Bug 1202933, Part 2 - Show the origin for OS X notifications. r=MattN,wchen
--HG--
extra : commitid : JKh5o1SBcUX
extra : rebase_source : 07c7c73cd32f48e97a2eed1a7b75177cab3a1e32
2015-10-05 19:48:05 -07:00
Nicholas Nethercote 4fc2610c3c Bug 1211324 (part 4) - Replace GraphicsFilter constants with gfx::Filter equivalents. r=mattwoodrow.
The conversion is as follows:

- GraphicsFilter::FILTER_NEAREST == gfx::Filter::POINT
- GraphicsFilter::FILTER_GOOD    == gfx::Filter::GOOD
- GraphicsFilter::FILTER_BEST    == gfx::Filter::LINEAR

Also typedef GraphicsFilter to gfx::Filter; this will be removed in the next
patch.

These changes mean ToFilter() and ThebesFilter() are no longer needed.
2015-10-05 17:12:46 -07:00
Carsten "Tomcat" Book f21f41d902 Merge m-c to mozilla-inbound 2015-10-06 12:21:45 +02:00
Carsten "Tomcat" Book 71e22d0c44 merge mozilla-inbound to mozilla-central a=merge 2015-10-06 12:01:35 +02:00
Phil Ringnalda 77b145afc8 Back out 2 changesets (bug 1202933) for Mulet timeouts in test_alerts.html
CLOSED TREE

Backed out changeset fbcc1bb170e9 (bug 1202933)
Backed out changeset 1763e1484065 (bug 1202933)
2015-10-05 18:41:00 -07:00
Kit Cambridge 3c04c0a85d Bug 1202933, Part 2 - Show the origin for OS X notifications. r=MattN,wchen
--HG--
extra : commitid : 6sBIPzwwtYv
extra : rebase_source : 0eeda028206841fe096c765832163f5f783aa5e7
2015-10-05 11:49:38 -07:00
Matthew Noorenberghe d3537d6383 Bug 1208295 - Show an additional action on OS X notifications to open notification settings. r=mstange
--HG--
extra : commitid : 1LMiMvjWhST
extra : rebase_source : ae556b8e132e43b52eae947455eda288e53660a1
2015-09-25 13:18:29 -07:00
Wes Kocher ab9156d415 Merge b2ginbound to central, a=merge 2015-10-05 13:09:32 -07:00
Carsten "Tomcat" Book f11b039d32 Merge m-c to b2g-i on a CLOSED TREE 2015-10-05 13:55:18 +02:00
Nigel Babu 6075cf3e03 Backed out changeset 02a7211c3ac8 (bug 1112712) for build bustage 2015-10-05 14:29:44 +05:30
Sotaro Ikeda ebcecadcbd Bug 1210189 - Use nsScreenGonk in nsWindow::StartRemoteDrawing() r=mwu 2015-10-03 17:06:19 -07:00
Boris Chiou 50975ecf3c Bug 1210265 - Add a pref toggle for copying/pasting only plain text on B2G. r=timdream
Add a new preference, clibboard.plainTextOnly.
1. On:  we only support kUnicodeMIME in SetData/GetData.
2. Off: we can support different MIME types in SetData/GetData

BTW, "copy image" is dependent on non-text/rich text support, so this
menu item is also disabled after we turn the pref off.
2015-10-02 00:26:00 +02:00
Petr Jašíček 2cfd2719f5 Bug 1210086 - Fix warnings caused by toolbar buttons in gtk2. r=karl 2015-10-01 04:30:00 +02:00
hansu9866@gmail.com 238476d73a Bug 1112712 - DOM key and code mapping for simple phone hardware keys. r=masayuki
commit eb0f93fdeaba83493ad231b62e8d27793e1a67ca
Author: Hansu Kim <hansu9866@gmail.com>
    Bug 1112712 DOM key and code mapping for simple phone hardware keys

    Change-Id: I8b37b82e374ce287af334061eaaa49f1b9f350b8

--HG--
extra : amend_source : 3331d014f4206e0a6351a5607a83af21c0ca883f
2015-10-01 16:13:00 +02:00
Carsten "Tomcat" Book e91d5a31b6 Merge m-c to mozilla-inbound 2015-10-02 13:37:27 +02:00
Carsten "Tomcat" Book ca77b70a8d merge mozilla-inbound to mozilla-central a=merge 2015-10-02 11:52:49 +02:00
Carsten "Tomcat" Book e7ef778c9d Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)

--HG--
extra : rebase_source : 5d3db72337754bc7ab0ed0c30b2896100411ff92
2015-10-07 12:13:45 +02:00
Reuben Morais 576abdd9db Bug 1172740 - Implement Android HAL backend for alarms. r=snorp 2015-10-01 14:40:53 -03:00
Wes Kocher 0628e22f00 Merge m-c to inbound, a=merge CLOSED TREE 2015-10-05 13:11:26 -07:00
Kartikaya Gupta b46bb87da6 Bug 1205399 - Follow-up to fix build bustage for platforms without OS X 10.10 and -Wswitch enabled. r=mstange
--HG--
extra : commitid : CCv1fkfORi8
2015-09-30 12:48:45 -04:00
Tooru Fujisawa 60b3dd821e Bug 1207499 - Part 12: Remove use of expression closure from widget/. r=roc
--HG--
extra : commitid : GR0hQlmclGY
extra : rebase_source : b0f1b90db5c4e8547041842b5efe7b0fb3281eb4
2015-09-23 18:42:20 +09:00
Nathan Froyd 3a70fcff87 Bug 1210912 - fix widget leak in LookupRegisteredPluginWindow; r=roc
nsRefPtrHashtable::Get follows XPCOM outparam rules, so it addrefs its
argument prior to returning it.  LookupRegisteredPluginWindow, however,
doesn't know anything about the additional reference, and neither does
anything else that calls it (which is, fortunately, not that much code).
So every widget returned by this function will leak.

To fix this, we use nsRefPtrHashtable::GetWeak, which doesn't addref its
argument, but merely returns the raw pointer, leaving the hashtable
responsible for the owning reference.
2015-10-02 22:00:56 -04:00
Benoit Girard 13e50db20e Bug 1210180 - Force the view to update when we recycle a Vibrancy view. r=mstange
--HG--
extra : commitid : 8EmCjAdcxhE
extra : rebase_source : cf01abb7caafa37e49b9a5d3987bd3b9097f3001
2015-10-05 10:54:29 -04:00
Masayuki Nakano 2e3a1cee0d Bug 1208043 If composition is started with InsertTextAtSelection() and OnStartComposition() is called later, RecordCompositionStartAction() should cancel the last pending compositionend r=emk 2015-10-02 10:51:47 +09:00
Shu-yu Guo d06b6030f6 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Masayuki Nakano f961371a5e Bug 1109410 Resolve CSS transform in ContentEventHandler::ConvertToRootViewRelativeOffset() r=roc 2015-10-05 14:46:39 +09:00
Wes Kocher b89687d936 Backed out changeset 3f9ca060b8d0 (bug 1197010) for android build failures 2015-10-06 16:18:13 -07:00
Reuben Morais 94f2455f3b Bug 1197010 - Implement Android backend for createMessageCursor/createThreadCursor. r=snorp 2015-10-06 19:40:38 -03:00
David Anderson 8c32d3122a Allow top-level window changes to the remembered compositor type. (bug 1211109 part 3, r=mattwoodrow) 2015-10-05 23:39:28 -07:00
Jim Mathies c0e2ef953d Bug 1199892 - "Mouse cursor flickers in Flash object with wmode opaque/transparent". r=roc 2015-10-01 05:51:00 +02:00
Botond Ballo 8f68a493a9 Bug 1205511 - Document that nsIDragService.dragMoved() takes its arguments in LayoutDevice pixels. r=enn IGNORE IDL (comment change only)
This can't be expressed in the types of the arguments because IDL doesn't
support strongly typed units.

--HG--
extra : source : d00913efe05fbe285197eefc15e6a10072e337a9
extra : histedit_source : d3083ea9aed7da43786100671ce9c8c4b9cb8a88
2015-09-28 20:29:48 -04:00
Botond Ballo 4dcd72ae69 Bug 1205511 - Make nsMenuPopupFrame::MoveTo()'s arguments strongly typed. r=enn
--HG--
extra : source : 17c835a07d7ea9c0e3cd09f1a1f4c1759966a1e9
extra : histedit_source : 794a72fd4f8a0be4f955fd755646a19811139409
2015-09-28 20:17:34 -04:00
Botond Ballo f3edd7acf8 Bug 1205511 - Make nsBaseDragService::mImage[X|Y] strongly typed. r=enn
--HG--
extra : source : aa1bbf6ed623321f93234dae02fa1c244c702712
extra : histedit_source : d7363ea557eec558109dfe2e36a981c8431b8e75
2015-09-28 20:44:50 -04:00
Masayuki Nakano 1983959f97 Bug 1208969 TSFTextStore shouldn't grant document lock after starting to destroy the context r=emk 2015-09-29 17:08:42 +09:00
Nicholas Nethercote d0c4a9db1b Bug 1208300 (part 4) - Remove gfxRGBA and some related things. r=jwatt.
Hooray!

--HG--
extra : rebase_source : d691b55eef5a8655aa98b81b5398452a5ebe860d
2015-09-24 19:24:16 -07:00
Jim Chen 08e3d9ccd5 Bug 1200343 - Implment PrefsHelper native calls; r=snorp
This patch implements the PrefsHelper native calls for getting prefs;
2015-09-28 12:07:10 -04:00
Jim Chen eb87f7d742 Bug 1200343 - Remove pref events from GeckoEvent; r=snorp
Now that we use native calls, we can remove the pref-related events from
GeckoEvent.
2015-09-28 12:07:09 -04:00
Jim Chen 5c45d400b9 Bug 1200343 - Add native calls for pref events; r=snorp
This patch adds two native calls to PrefsHelper to avoid using
GeckoEvent for getting prefs.
2015-09-28 12:07:09 -04:00
Jim Chen 011890c91d Bug 1200343 - Add JNI wrapper for object arrays; r=snorp
This patch adds a specialization for jni::Ref<jni::ObjectArray>, which
includes members for getting the length of the array and accessing
array elements.
2015-09-28 12:07:09 -04:00
Jim Chen 3d7c253ff0 Bug 1208041 - Fix race condition when coalescing viewport events; r=snorp
We have a pretty messy system of coalescing viewport events that
introduced a race condition during the recent JNI refactoring. This
patch makes that code simpler and fixes the race condition. Instead of
keeping track of a previous viewport event, we now scan the event queue
for previous viewport events. This shouldn't be a perf concern because
we only scan the queue for viewport and native callback events, and stop
scanning as soon as we find another kind of event.
2015-09-28 12:07:09 -04:00
Brian Grinstead d23fa8b95a Bug 1034110 - Provide a way to observe mutations for ::before/::after pseudo elements;r=smaug
Adds a new chrome-only MutationObserverInit option called nativeAnonymousChildList
that will cause a mutation to fire when a native anonymous root is bound or unbound
2015-09-24 08:23:32 -07:00
James Willcox 8b40e8df70 Bug 1182665 - Don't try to call JNI methods in nsScreenManagerAndroid if it's not available r=esawin 2015-09-28 09:36:59 -05:00