Commit Graph

19087 Commits

Author SHA1 Message Date
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
John Daggett
1b7d8ac5fd Bug 1201318 - revise OSX system font handling. r=mstange
Rework system font lookup under OSX so that the style system passes around the same "meta" name used by Webkit, -apple-system. This makes it so that the hidden system fonts used aren't exposed to authors. It also allows us to handle the two optical sizes of font families used under OSX 10.11, which uses San Francisco as the new UI font, with one family for text sizes and another for larger, display sizes. The patch here:

  - moves system font lookup into gfxMacPlatformFontList
  - assigns the font family name to "-apple-system"
  - derives FindFamily to take a gfxFontStyle parameter to allow size-based lookups
  - maintains a list of hidden system font families (not exposed to authors)
  - maintains a mapping from -apple-system to the underlying hidden font families
2015-10-08 15:04:08 +09: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
Jim Chen
2c8727a14d Bug 1209574 - Switch GeckoInputConnection for each new GeckoView; r=esawin
The GeckoEditable instance doesn't change for each nsWindow instance.
However, because a GeckoInputConnection is associated with a GeckoView,
when we create a new GeckoView, we need to attach a new
GeckoInputConnection to the existing nsWindow's GeckoEditable. This
patch makes us do that inside nsWindow::Natives::Open by calling
GeckoEditable.OnViewChange.
2015-10-08 15:25:49 -04:00
Jim Chen
7088159257 Bug 1209574 - Move GeckoEditable management to nsWindow; r=esawin
This patch removes the GeckoEditable code in GeckoAppShell, and make
nsWindow create a GeckoEditable for itself when opening a window.
Instead of calling GeckoAppShell, nsWindow can now call GeckoEditable
methods directly.
2015-10-08 15:25:49 -04:00
Jim Chen
8d2a72b981 Bug 1209574 - Generate constants for non-accessible static final fields; r=snorp
We try to generate a C++ constant for static final fields, but that
was failing for inaccessible fields. Now we set the field to be
accessible so that we do end up generating a C++ constant.
2015-10-08 15:25:49 -04:00
Jim Chen
e924946ea2 Bug 1200426 - Convert PROCESS_OBJECT GeckoEvent to native call; r=snorp
The PROCESS_OBJECT GeckoEvent is used to set the layer client object in
Gecko once Gecko is done loading. This patch converts it to a native
call in GeckoView.Window.
2015-10-08 15:25:49 -04:00
Ahmed Khalil
3f5aa180f0 Bug 1201926 - Add support for keyed histograms to Fennec's Telemetry module, r=nalexander 2015-10-08 11:32:52 +05:30
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
Jim Chen
d000162e61 Bug 1209574 - Switch GeckoInputConnection for each new GeckoView; r=esawin
The GeckoEditable instance doesn't change for each nsWindow instance.
However, because a GeckoInputConnection is associated with a GeckoView,
when we create a new GeckoView, we need to attach a new
GeckoInputConnection to the existing nsWindow's GeckoEditable. This
patch makes us do that inside nsWindow::Natives::Open by calling
GeckoEditable.OnViewChange.
2015-10-08 01:13:00 -04:00
Jim Chen
42c7f8215a Bug 1209574 - Move GeckoEditable management to nsWindow; r=esawin
This patch removes the GeckoEditable code in GeckoAppShell, and make
nsWindow create a GeckoEditable for itself when opening a window.
Instead of calling GeckoAppShell, nsWindow can now call GeckoEditable
methods directly.
2015-10-08 01:12:59 -04:00
Jim Chen
5d16ca8d3b Bug 1209574 - Generate constants for non-accessible static final fields; r=snorp
We try to generate a C++ constant for static final fields, but that
was failing for inaccessible fields. Now we set the field to be
accessible so that we do end up generating a C++ constant.
2015-10-08 01:12:58 -04:00
Jim Chen
c05389afcc Bug 1200426 - Convert PROCESS_OBJECT GeckoEvent to native call; r=snorp
The PROCESS_OBJECT GeckoEvent is used to set the layer client object in
Gecko once Gecko is done loading. This patch converts it to a native
call in GeckoView.Window.
2015-10-08 01:12:57 -04:00
Wes Kocher
ad8e897290 Merge m-c to inbound, a=merge 2015-10-07 11:09:47 -07:00
Benoit Girard
60376c4a70 Bug 1199885 - Part 12: Add StartScrollbarDrag IPC message. r=kats
--HG--
extra : commitid : 87IsjW2NpRX
2015-09-28 17:00:25 -04:00
Benoit Girard
5e9f05f89c Bug 1199885 - Part 9: Let APZC handle the drag events. r=kats
--HG--
extra : commitid : 5eL9kMtaPPT
2015-09-28 14:44:37 -04:00
Benoit Girard
3ccd3e736b Bug 1199885 - Part 1: Add MouseInput InputData. r=kats
--HG--
extra : commitid : Koa5TunrB2K
extra : rebase_source : 982a5bb2f320dd2c55410ef53904a44de1b06db5
2015-09-28 10:32:05 -04: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
Wes Kocher
d31f5415b2 Backed out 2 changesets (bug 1200426) for android tpn bustage
Backed out changeset 4dcc2fb45208 (bug 1200426)
Backed out changeset 2dea192c7f33 (bug 1200426)
2015-10-07 09:05:01 -07:00
Wes Kocher
f12076ac2e Backed out 5 changesets (bug 1209574) for android tpn bustage
Backed out changeset fb1f06793a67 (bug 1209574)
Backed out changeset 5f0b32b1acc4 (bug 1209574)
Backed out changeset 657332ea4f59 (bug 1209574)
Backed out changeset 9d2c7ed9cd87 (bug 1209574)
Backed out changeset 8376124b6a0c (bug 1209574)
2015-10-07 09:04:39 -07:00
Jim Chen
4e7741fcb4 Bug 1209574 - Switch GeckoInputConnection for each new GeckoView; r=esawin
The GeckoEditable instance doesn't change for each nsWindow instance.
However, because a GeckoInputConnection is associated with a GeckoView,
when we create a new GeckoView, we need to attach a new
GeckoInputConnection to the existing nsWindow's GeckoEditable. This
patch makes us do that inside nsWindow::Natives::Open by calling
GeckoEditable.OnViewChange.
2015-10-07 08:57:31 -04:00
Jim Chen
c430fa611d Bug 1209574 - Move GeckoEditable management to nsWindow; r=esawin
This patch removes the GeckoEditable code in GeckoAppShell, and make
nsWindow create a GeckoEditable for itself when opening a window.
Instead of calling GeckoAppShell, nsWindow can now call GeckoEditable
methods directly.
2015-10-07 08:57:31 -04:00
Jim Chen
eb54e04df1 Bug 1209574 - Generate constants for non-accessible static final fields; r=snorp
We try to generate a C++ constant for static final fields, but that
was failing for inaccessible fields. Now we set the field to be
accessible so that we do end up generating a C++ constant.
2015-10-07 08:57:30 -04:00
Jim Chen
0f413bc2a3 Bug 1200426 - Convert PROCESS_OBJECT GeckoEvent to native call; r=snorp
The PROCESS_OBJECT GeckoEvent is used to set the layer client object in
Gecko once Gecko is done loading. This patch converts it to a native
call in GeckoView.Window.
2015-10-07 08:57:30 -04: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
James Willcox
158374ed78 Bug 1182665 - Adjust tile sizes depending on the screen size r=nical 2015-09-28 09:36:57 -05:00
James Willcox
45564cbbb2 Bug 1182665 - Use a direct JNI call to determine screen size in nsScreenManagerAndroid r=jchen 2015-09-28 09:36:56 -05:00
Sotaro Ikeda
fe61debc64 Bug 1205725 - Add basic SidebandStream handling to HwcComposer2D r=mwu,nical 2015-09-28 06:55:48 -07:00
Carsten "Tomcat" Book
ae6755a03e Merge mozilla-central to mozilla-inbound 2015-09-28 14:18:24 +02:00
Carsten "Tomcat" Book
363e40e298 merge mozilla-inbound to mozilla-central a=merge 2015-09-28 14:13:24 +02:00
Nigel Babu
4c81b31f16 Backed out changeset 26396d426123 (bug 1208906) for windows reftest bustage
ON A CLOSED TREE
2015-09-28 11:27:52 +05:30
Nigel Babu
4de80b14cf Backed out changeset 32076ec3f4c0 (bug 1208906) for reftest bustage 2015-09-28 11:27:40 +05:30
Nicholas Nethercote
89189f2ced Bug 1208283 (part 2) - Change ColorLayer::mColor, ColorLayerProperties::mColor, ReadbackLayer::mBackgroundColor from gfxRBGA to gfx::Color. r=jwatt.
This avoids some gfxRGBA-to-Color conversions.

--HG--
extra : rebase_source : ba62db5204301e4ab57f05b9f9901f986f5b09aa
2015-09-24 18:16:45 -07:00
Nicholas Nethercote
342466f878 Bug 1208345 - Remove gfxContext::GraphicsOperator. r=jwatt.
Also...

- Rename various "operator" identifiers as "op" to match |CompositionOp|.

- Rename |nsBackgroundLayerState::mCompositingOp| as |mCompositionOp| to match
  |CompositionOp|.

- Remove some deprecated functions that are no longer needed.

--HG--
extra : rebase_source : 74e9b6eecf6f442e27cc18fd4ae6f668a45188aa
2015-09-24 22:38:58 -07:00
Ehsan Akhgari
beff9c1083 Bug 1208906 - Fix typo on a typo fix! 2015-09-27 19:36:19 -04:00
Ehsan Akhgari
0ac8a4aff7 Bug 1208904 - Fix a condition in nsWindow::SetNonClientMargins; r=roc
Found by Viva64.
2015-09-27 19:34:13 -04:00
Ehsan Akhgari
8258e311c6 Bug 1208906 - Fix a conditional statement in nsNativeThemeWin::GetThemePartAndState; r=roc
Found by Viva64.
2015-09-27 19:34:11 -04:00
Wes Kocher
4ce68a706d Backed out 3 changesets (bug 1208295) for browser_offlineQuotaNotification.js bustage CLOSED TREE
Backed out changeset 1c16e9f4aa2f (bug 1208295)
Backed out changeset 3242ff9a86bb (bug 1208295)
Backed out changeset 04f2a2c320a3 (bug 1208295)
2015-09-25 18:20:35 -07:00
Matthew Noorenberghe
578b88bc6a Bug 1205399 - Fix OS X crash when no alert principal is passed. r=bustage
--HG--
extra : commitid : 9mTknYl7SCs
extra : rebase_source : 0d8be9c99ac06dc2870ea009e71c892435384c12
2015-09-25 16:10:56 -07:00
Matthew Noorenberghe
57a6416a3c Bug 1208295 - Show an additional action on OS X notifications to open notification settings. r=mstange
--HG--
extra : commitid : BP0mSNiIk4X
extra : rebase_source : 48aeb880868927f3df1310de70645e1e943b3d55
2015-09-25 13:18:29 -07:00
Matthew Noorenberghe
378d30f15c Bug 1205399 - OS X: Implement disabling Notifications for the site from the native notifications. r=mstange
--HG--
extra : commitid : Lm5VSxr6nRR
extra : rebase_source : e5e33718001e679a3aac4ef29a3d09629867c6eb
extra : amend_source : 46996ae24948e593e86174fc4651bee371817b2d
2015-09-25 13:18:29 -07:00
Wes Kocher
04128a0432 Merge m-c to inbound, a=merge 2015-09-24 17:14:17 -07:00
Wes Kocher
0d3937e34d Merge b2ginbound to central, a=merge 2015-09-24 16:57:38 -07:00
Fabrice Desré
d4aa7f63e2 Bug 1204557 - Stop using base64 for native app icons in the application registry r=jchen 2015-09-24 11:53:05 -07:00
Nicholas Nethercote
842dd1cf5a Bug 1207741 - Remove gfxIntSize. r=nical.
gfxIntSize is just a typedef of gfx::IntSize, so this is very mechanical. The
only tricky part is deciding for each occurrence whether to replace it with
IntSize, gfx::IntSize or mozilla::gfx::IntSize; in all cases I went with the
shortest one that worked given the existing "using namespace" declarations.

--HG--
extra : rebase_source : 67fd15f87222b16defa70ef795c6d77dfacf1c36
2015-09-23 11:49:05 -07:00
Ted Mielczarek
790ed5c62f fixup widget/ios from EventMessage change (no bug, NPOTB)
--HG--
extra : commitid : HE4vNs2Dt5A
extra : rebase_source : 601e7c1ec01a4bc3d3f9b8c041c795486009a3e4
2015-09-22 09:33:51 -04:00
Kaustabh Datta Choudhury
d64ac7ea6b Bug 1162003 - Enable run-by-dir mode for mochitest_chrome on Fx desktop opt builds. r=jmaher 2015-09-23 13:39:45 -04:00
Wes Kocher
e143a6410c Backed out 4 changesets (bug 1200343) for android talos failures
Backed out changeset 67dc42cbf02b (bug 1200343)
Backed out changeset b077acafcebb (bug 1200343)
Backed out changeset e115ca114601 (bug 1200343)
Backed out changeset 905e1fb54fd4 (bug 1200343)
2015-09-25 13:21:58 -07:00
Jim Chen
a0ed6d9e5e Bug 1200343 - Implment PrefsHelper native calls; r=snorp
This patch implements the PrefsHelper native calls for getting prefs;
2015-09-25 15:03:35 -04:00
Jim Chen
83e034c311 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-25 15:03:35 -04:00
Jim Chen
2c4f8e6d64 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-25 15:03:34 -04:00
Jim Chen
3460f51c9f 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-25 15:03:34 -04:00
Kathy Brade
61c6a3b383 Bug 232227 - Do not expose system colors to CSS or canvas. r=jmuizelaar r=enndeakin tor-r=arthuredelstein
--HG--
extra : rebase_source : 54498135a11fb7d7e9f4154ad5d5bfbf87a927bd
2015-09-25 00:59:00 +02:00
Martin Stransky
952a7c1bfd Bug 1195002 - draw to MozContainer window to allow GTK to draw decorations, r=karlt 2015-09-24 04:50:00 +02:00
David Anderson
6db8b52299 Bug 1207665 - Block Intel GMA 3150 for d3d11/d2d on all drivers. (bug 1207665 part 1, r=jrmuizel). r=jrmuizel 2015-09-28 01:44:00 +02:00
Neil Deakin
2914b44b1b Bug 1204944, convert drag position coordinates properly, r=mstange 2015-09-24 09:09:54 -04:00
Wes Kocher
407f41a2b0 Backed out changeset 1f327c67db57 (bug 1195002) for likely breaking ASAN/mulet tests CLOSED TREE 2015-09-23 09:28:51 -07:00
Martin Stransky
6e2baa8bd8 Bug 1195002 - "titlebar overlaps chrome UI on Linux Elementary OS Freya / with GTK_CSD (Gtk3)". r=karlt 2015-09-23 00:58:00 +02:00
Chris Peterson
71920a9550 Bug 1207030 - Enable -Wshadow flag in more directories that have no -Wshadow warnings. r=glandium 2015-09-22 21:39:03 -07:00
Chris Peterson
4306af00e2 Bug 1204398 - Fix -Wshadow warnings in widget/cocoa. r=spohl 2015-09-11 20:32:37 -07:00
Andrew Comminos
e5e5f9d99f Bug 1170342 - Disable XInput2 by default on GTK3. r=karlt 2015-09-22 22:25:22 -07:00
Karl Tomlinson
4ebdbb181a bug 1206564 skip copying of listeners r=roc
--HG--
extra : rebase_source : 04eeacb4ae74459c6963f3bfcacca920974fda2c
2015-09-19 00:51:03 +12:00
Jeff Walden
4046fe1490 Bug 1179003 - Convert the infallible objectClassIs proxy hook into a fallible getBuiltinClass hook that indicates class type via outparam. r=efaust, r=bz on DOM bits, r=billm on IPC bits
--HG--
extra : rebase_source : 6ddc3727c411fdfced6338e5e383a10572575f0f
2015-08-28 21:55:40 -07:00
Nathan Froyd
156399b67f Bug 1206801 - fix broken CONFIG['DEBUG'] checks in moz.build files; r=mshal
These were supposed to be CONFIG['MOZ_DEBUG'].  webapprt doesn't use the
define it set up, however, so it was deleted rather than fixed.
2015-09-21 22:32:15 -04:00
Steven Michaud
1273371c40 Bug 1206766 - Show meaningful module offsets in stack traces even when no symbol found. r=spohl 2015-09-21 14:20:35 -05:00
Christoph Kerschbaumer
9f1e9e2eaa Bug 1048048 - add preload content policy types for images (r=seth)
--HG--
extra : source : 88c2333ff7455b6988eb8d6ccc5e92b414a7ccf8
2015-09-20 14:55:59 -07:00
Wes Kocher
cd079d2bf9 Backed out 7 changesets (bug 1048048) for android crashes in various chunks CLOSED TREE
Backed out changeset b5abe23a4ea5 (bug 1048048)
Backed out changeset 4f91b10e8be0 (bug 1048048)
Backed out changeset 450d4a13c90e (bug 1048048)
Backed out changeset 6a727c40eb68 (bug 1048048)
Backed out changeset 88c2333ff745 (bug 1048048)
Backed out changeset 740ab1ecd079 (bug 1048048)
Backed out changeset 02c6d6aef163 (bug 1048048)
2015-09-21 09:08:34 -07:00
Christoph Kerschbaumer
19dc79ddbb Bug 1048048 - add preload content policy types for images (r=seth) 2015-09-20 14:55:59 -07:00
Jim Chen
e6f22f3cfa Bug 1197957 - Switch PROFILE_READY state to correspond to profile-after-change; r=snorp
Originally, the GeckoThread PROFILE_READY state was chosen to correspond
to the profile-do-change event, to give priority to JNI code (e.g.
window creation) over other events that may be registered under
profile-after-change event. However, this leads to broken tests because
our testing infra expects things like window creation to happen during
profile-after-change at the earliest. This is because we have to wait
for addons like SpecialPowers to be loaded between profile-do-change and
profile-after-change. This patch changes the PROFILE_READY state to
correspond to the profile-after-change event, so things are consistent
again.
2015-09-21 10:13:33 -04:00
Jim Chen
635fd10c85 Bug 1197957 - Dispatch nsWindow native calls to Gecko thread; r=snorp
A C++ class that implments native JNI methods can choose to inherit
UsesGeckoThreadProxy. Once enabled, all native JNI calls on that class
will be automatically dispatched to the Gecko thread as a runnable event.
2015-09-21 10:13:33 -04:00
Jim Chen
99ef489a78 Bug 1197957 - Implement GeckoView.Window.open in nsWindow; r=snorp
nsWindow will implement native methods of GeckoView.Window. This patch
implements the open method, which opens a new window in the same manner
as the CLH, and associates the new nsWindow with the GeckoView.Window
instance.
2015-09-21 10:13:32 -04:00
Jim Chen
1f5985cce7 Bug 1197957 - Introduce GeckoView.Window class; r=snorp
GeckoView.Window is a class that acts as the interface between
GeckoView in Java and nsWindow in C++. It will contain native methods
that GeckoView will use to interact with nsWindow.

On initialization, Window.open is called to create a nsWindow and
establish the JNI association between Window and the native nsWindow.
Then, whenever Window instance methods are called, the JNI stubs will
automatically call members of nsWindow.
2015-09-21 10:13:32 -04:00
Jim Chen
f57ad9e80a Bug 1197976 - Provide compatibility with AndroidGeckoEvent; r=snorp
With the new nsAppShell event loop based on runnable events, we need to
implement AndroidGeckoEvent handling as a runnable event. This patch adds
nsAppShell::LegacyGeckoEvent and adopts its implementation from existing
code that handle AndroidGeckoEvent.
2015-09-21 10:13:32 -04:00
Jim Chen
d01f456063 Bug 1197976 - Use runnable events for nsAppShell event loop; r=snorp
nsAppShell is currently based on AndroidGeckoEvent objects, which mirror
GeckoEvent on the Java side. With GeckoEvent going away, we will be
gradually removing AndroidGeckoEvent as well. This patch makes the
nsAppShell event loop based on runnable objects, which derive from
nsAppShell::Event. Using runnable objects is much more flexible and allows
us, for example, to post a lambda to the event loop to be run later.
2015-09-21 10:13:32 -04:00
Masayuki Nakano
d13141e676 Bug 1187583 part.2 Apply the TS_E_NOLAYOUT hacks for MS-IME to MS Office IME 2010 for Japanese too r=emk 2015-09-19 22:22:40 +09:00
Masayuki Nakano
e73a80f16a Bug 1187583 part.1 Add a method to check if active TIP is MS Office IME 2010 for Japanese r=emk 2015-09-19 22:22:40 +09:00
Kaustabh Datta Choudhury
92494c4d5f Bug 1162003 - Enable run-by-dir mode for mochitest_chrome on Fx desktop debug builds. r=jmaher 2015-10-06 09:46:24 -04:00
Neil Deakin
8760ec0272 Bug 1206559, forward PuppetWidget::SetFocus request to the parent process, r=smaug 2015-10-06 09:14:49 -04:00
Andrew Comminos
ca64242190 Bug 1206516 - Use temporary widget to construct style context for GtkInfoBar. r=karlt 2015-09-29 19:32:00 +02:00
Dylan Roeh
ee309b2869 Bug 1189881 - Move GeckoJavaSampler::getProfilerTime out of AndroidJNI.cpp. r=jchen 2015-09-17 16:17:26 -05:00
Lee Salzman
7575a5bb1e Bug 1205741 - add xpm and svg to supported gdk-pixbuf formats. r=acomminos,dveditz 2015-09-17 15:01:51 -04:00
Masayuki Nakano
c37e9d39b9 Bug 1205945 part.6 IMEInputHandler::GetAttributedSubstringFromRange() should return stored composition string if the range is in the composition string r=smichaud 2015-09-19 11:01:57 +09:00
Masayuki Nakano
b839a18a25 Bug 1205945 part.5 Emulate mSelectedRange at dispatching compositionchange or compositioncommit event until OnSelectionChange() is called r=smichaud 2015-09-19 11:01:57 +09:00
Masayuki Nakano
b6ccad8b3a Bug 1205945 part.4 Move the code of OnEndIMEComposition() into DispatchCompositionCommitEvent() r=smichaud 2015-09-19 11:01:57 +09:00
Masayuki Nakano
1c6093a281 Bug 1205945 part.3 Move the code of OnUpdateIMEComposition() into DispatchCompositionChangeEvent() r=smichaud 2015-09-19 11:01:57 +09:00
Masayuki Nakano
15ec40f3ff Bug 1205945 part.2 Add DispatchCompositionStartEvent() and move the code of OnStartIMEComposition() into it r=smichaud 2015-09-19 11:01:57 +09:00
Masayuki Nakano
fbc6a51594 Bug 1205945 part.1 Remove unnecessary member of IMEInputHandler, mLastDispatchedCompositionString r=smichaud 2015-09-19 11:01:57 +09:00
Jim Chen
797447c09d Bug 1197974 - Don't exit Gecko on Android even if there's no window; r=snorp
Gecko on Android follows the Android app model where it never stops
until it is killed by the system or told explicitly to quit. Therefore,
we should exit Gecko when there is no window or the last window is closed.
2015-09-18 09:17:10 -04:00
Lee Salzman
4fbc44de5a Bug 1205045 - remove GTK calls from compositor thread. r=jmuizelaar 2015-09-15 16:46:39 -04:00
Masayuki Nakano
7d38b5447b Bug 1204519 part.2 Remove TSFStaticSink::IsGoogleJapaneseInputActive() r=emk 2015-09-18 09:58:17 +09:00
Masayuki Nakano
19212d7c5f Bug 1204519 part.1 Remove hack for TS_E_NOLAYOUT issue of Google Japanese Input r=emk 2015-09-18 09:58:17 +09:00
Masayuki Nakano
206cb16099 Bug 1204523 part.2 Hack TSFTextStore::GetTextExt() for TS_E_NOLAYOUT issue of MS-IME for Japanese r=emk 2015-09-18 09:58:17 +09:00
Masayuki Nakano
26cadf342d Bug 1204523 part.1 Add a method which checks if the active TIP is Microsoft IME for Japanese r=emk 2015-09-18 09:58:16 +09:00
Carsten "Tomcat" Book
c5ccc485ac Merge mozilla-central to mozilla-inbound on a CLOSED TREE 2015-09-17 15:01:06 +02:00
Carsten "Tomcat" Book
587ddedf21 merge mozilla-inbound to mozilla-central a=merge 2015-09-17 14:56:37 +02:00
Fabrice Desré
5f8b1e5325 Bug 1205142 - Disable Android keyboard r=jchen 2015-09-16 09:24:17 -07:00
Wes Kocher
ebdcf9fc9e Merge b2ginbound to central, a=merge CLOSED TREE 2015-09-16 11:00:55 -07:00
Wes Kocher
9c01eed3d4 Merge m-c to b2ginbound, a=merge 2015-09-15 17:20:50 -07:00
Fabrice Desré
2089103a21 Bug 1203428 - E10S for device storage API r=cyu 2015-09-15 11:01:07 -07:00
Markus Stange
f057a6682b Bug 1204620 - Don't prepend 'image.' to CUIDraw image names on 10.11. r=stefanh
--HG--
extra : commitid : KEA0Qq16CNf
extra : rebase_source : 952d520ea545f890c1a467d62b9ca6dce3c864dd
2015-09-15 16:31:06 +02:00
Lee Salzman
e7ba3880f4 Bug 1203078 - whitelist gdk-pixbuf image formats. r=dan 2015-09-11 00:34:32 -04:00
Masayuki Nakano
ce885416ed Bug 1204439 part.3 Create methods to get enum item name r=smaug 2015-09-17 12:05:44 +09:00
Masayuki Nakano
68ad962e5b Bug 1204439 part.2 NS_EVENT_MESSAGE() shouldn't take specific value for the event message r=smaug 2015-09-17 12:05:44 +09:00
Masayuki Nakano
586b87d254 Bug 1204439 part.1 Add NS_EVENT_MESSAGE_FIRST_LAST() into EventMessageList.h for defining e*EventFirst and e*EventLast r=smaug 2015-09-17 12:05:44 +09:00
Nicholas Nethercote
8da254d570 Bug 1204518 - Fix warnings in widget/gonk/. r=mwu.
Warnings fixed include the following.

- Several cases where macros (|LOG| and |ALOGE|) were redefined. I just did a
  simple #undef to fix these.

- In GonkMemoryPressureMonitoring.cpp, "the address of NuwaMarkCurrentThread
  will never be NULL".

- In OrientationObserver.cpp, several signed/unsigned comparison warnings.

- Several warnings about variables that are unused or set but not used:
  in InputDispatcher.cpp, InputReader.cpp.

  Also in SpriteController, where several loops were all but empty if
  HAVE_ANDROID_OS is undefined; for these I moved the HAVE_ANDROID_OS check
  outside the loop.

The patch also disallows the introduction of new warnings by removing the
ALLOW_COMPILER_WARNINGS flag.

--HG--
extra : rebase_source : 6dc19235cf992b929d1308fd98baa03e16701874
2015-09-14 18:08:56 -07:00