Commit Graph

10991 Commits

Author SHA1 Message Date
Nathan Froyd
9c5965b035 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
2015-10-18 01:24:48 -04:00
Nathan Froyd
e504437747 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
Masayuki Nakano
10ea38d130 Bug 1215434 part.1 If scroll target is a plugin frame, EventStateManager::PostHandleEvent() should send the wheel event to the plugin frame even if APZC already handled it r=smaug 2015-10-17 15:50:09 +09:00
Nathan Froyd
f07099ec11 Bug 1212027 - followup - qualify PBrowserParent in GonkPermission.cpp; r=me
Landing this on a CLOSED TREE
2015-10-16 22:04:07 -04:00
Nathan Froyd
ff4822c6b3 Bug 1212027 - part 7 - modify IPDL codegen to store sub-protocols in a hashtable rather than an array; r=jld,nical,cpearce,billm 2015-10-07 14:30:33 -04:00
Henri Sivonen
f428a44495 Bug 943294 - Leave dealing with legacy codepages for clipboard data to Windows itself. r=jmathies. 2015-10-13 09:46:51 +03:00
Carsten "Tomcat" Book
23e6e2177e Merge m-c to mozilla-inbound 2015-10-16 14:45:26 +02:00
Carsten "Tomcat" Book
529dbcc2ac merge mozilla-inbound to mozilla-central a=merge 2015-10-16 13:17:56 +02:00
Phil Ringnalda
0b6ffd7546 Back out changeset bb7e9c6a66c6 (bug 1209602) for crashing 2015-10-15 22:31:42 -07:00
Jared Wein
691382249c Bug 1209602 - XUL: Implement disabling notifications for a site. r=MattN 2015-10-15 22:58:56 -04:00
Jared Wein
2c52b25713 Backout bug 1209602 for busting OSX on a CLOSED TREE. r=me 2015-10-15 23:19:10 -04:00
Jared Wein
b55b7bd64f Bug 1209602 - XUL: Implement disabling notifications for a site. r=MattN 2015-10-15 22:58:56 -04:00
Felipe Gomes
508a6d2a6c Bug 605813 - Re-enable test_taskbar_progress.xul on Windows. r=me 2015-10-15 18:39:28 -03:00
Masayuki Nakano
7a341ba0f3 Bug 376679 part.5 nsPluginInstanceOwner::ProcessEvent() should create WM_MOUSE*WHEEL message from WidgetWheelEvent data r=smaug+jimm 2015-10-16 13:19:27 +09:00
Sotaro Ikeda
138a28902f Bug 1210514 - Fix color inversion when BasicCompositor is used on gonk r=nical 2015-10-15 00:26:08 -07:00
Jim Chen
6cc4f08fa5 Bug 1211919 - Allow quitting when asked explicitly; r=snorp
Right now we don't allow quitting Fennec when the last nsWindow closes
(e.g. when the last GeckoView is destroyed) because we want to keep the
Gecko thread running throughout the app process lifetime. However, when
we are asked to quit explicitly through nsIAppStartup::Quit, we should
release the hold on nsAppStartup and allow quitting to continue.
2015-10-15 15:49:48 -04:00
Henri Sivonen
3130f346ca Bug 943296 - widget/gtk/nsDragService.cpp should assume Gtk uses UTF-8. r=karlt. 2015-10-14 15:28:50 +03:00
Andrew Comminos
f075b1baf6 Bug 1209774 - Transform from GDK coords to layout device pixels before calling DispatchEvent. r=karlt 2015-10-13 19:14:54 -07:00
David Anderson
28d64c6869 Block some Radeon drivers that crash on D3D9. (bug 1213107, r=jrmuizel) 2015-10-13 16:45:40 -07:00
Carsten "Tomcat" Book
aad234307c Merge m-c to mozilla-inbound 2015-10-13 12:27:01 +02:00
Reuben Morais
0ea536d19d Bug 748391 - Implement markMessageRead on the Android backend. r=snorp 2015-10-13 01:08:51 -03:00
Andrew Comminos
7346004667 Bug 1187385 - Use GTK style padding for entry widgets. r=karlt 2015-10-13 00:08:21 -07:00
Martin Stransky
b05796f04f Bug 1210249 - don't mess with toplevel widget when client side decorations are enabled. r=karlt 2015-10-12 09:56:00 +02:00
Hiroyuki Ikezoe
aab422f2c6 Bug 1167627 - Part 5: Use mozinfo in widget/. 2015-08-25 14:54:00 +02:00
Lee Salzman
c72d423c47 Bug 1196494 - part 2: only update nsWindow client offset when _NET_FRAME_EXTENTS property actually changes. r=eihrul 2015-10-09 09:24:48 -04:00
Masayuki Nakano
7aedbbd965 Bug 1211352 part.5 PuppetWidget should cache only the focused editor rect information while a plugin has focus r=m_kato 2015-10-10 10:21:02 +09:00
Masayuki Nakano
795194af70 Bug 1211352 part.4 PuppetWidget::GetIMEUpdatePreference() should request only position change notifications while a plugin has focus r=m_kato 2015-10-10 10:21:02 +09:00
Masayuki Nakano
ba654e2eef Bug 1211352 part.3 nsIWidget::GetIMEupdatePreference() for each platform should not request any notifications while a plugin has focus r=m_kato 2015-10-10 10:21:02 +09:00
Masayuki Nakano
8c675f448e Bug 1211352 part.2 PuppetWidget shouldn't send notifications which are not wanted by the parent process r=m_kato 2015-10-10 10:21:01 +09:00
Wes Kocher
cc494d30e9 Backed out changeset 81be051cd7a8 (bug 1213107) for windows build bustage CLOSED TREE 2015-10-09 13:55:34 -07:00
David Anderson
9e771cf7d6 Block some Radeon devices that crash on D3D9. (bug 1213107, r=jrmuizel) 2015-10-09 13:29:34 -07:00
Andrew Comminos
c92b2b4c5f Revert "Bug 1209774 - Transform from GDK coords to layout device pixels before calling DispatchEvent. r=karlt"
This reverts commit bc5ba9c53f2a2c08a17b028c0aa8ff24e35847b6.
2015-10-09 09:36:13 -07:00
Andrew Comminos
86a887b992 Bug 1209774 - Transform from GDK coords to layout device pixels before calling DispatchEvent. r=karlt 2015-10-09 09:22:38 -07:00
Andrew Comminos
a46d6b7840 Bug 1176929 - Disable Ctrl-K in GtkEntry unless custom key bindings are
set on GTK3. r=karlt
2015-10-09 09:22:37 -07:00
Wes Kocher
376a071f0b Merge m-c to inbound, a=merge 2015-10-08 14:35:43 -07:00
Jared Wein
587f896baa Bug 1210033 - Add on-screen keyboard diagnostic information to about:support. r=masayuki r=felipe 2015-10-08 11:51:47 -04:00
Carsten "Tomcat" Book
cc5cc0661d Merge m-c to fx-team 2015-10-08 16:11:56 +02:00
Carsten "Tomcat" Book
c3a4faf573 merge mozilla-inbound to mozilla-central a=merge 2015-10-08 15:26:54 +02:00
Carsten "Tomcat" Book
aa4fcc238d Backed out changeset 2e8206d7352e (bug 1200426) for Android Perma Failures 2015-10-08 10:07:11 +02:00
Carsten "Tomcat" Book
b91cfb6b85 Backed out changeset 9862f86ffe31 (bug 1209574) for Android Perma Failures 2015-10-08 10:06:47 +02:00
Carsten "Tomcat" Book
8aba8449d0 Backed out changeset 161f9ab0c5e7 (bug 1209574) for Android Perma Failures 2015-10-08 10:06:19 +02:00
Carsten "Tomcat" Book
c5ea4896fd Backed out changeset 6763177287ca (bug 1209574) for Android perma failures 2015-10-08 10:05:44 +02:00
Wes Kocher
8f74e3e6b9 Merge m-c to b2ginbound, a=merge 2015-10-07 11:11:10 -07:00
Wes Kocher
09022f945d Merge inbound to m-c a=merge 2015-10-07 10:29:41 -07:00
Wes Kocher
fcbfeca36b Backed out changeset 1f51d1614b9a (bug 1207245) 2015-10-07 10:19:31 -07:00
Wes Kocher
b3e106628e Backed out changeset 91d4539e00ce (bug 1207245) 2015-10-07 10:19:19 -07:00
Nathan Froyd
806d8619d3 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
2015-10-07 16:50:25 -04:00
Nathan Froyd
34d7cd6c43 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
9f1c0bf17d 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
295afccb2f Bug 1197010 - Implement Android backend for createMessageCursor/createThreadCursor. r=snorp 2015-10-06 19:40:38 -03:00