Commit Graph
12 Commits
Author SHA1 Message Date
Nathan Froyd 4e6d8f6705 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
Karl Tomlinson 8e7d93aacf bug 147419 remove ununsed plexName colorspace resolutionName and downloadFonts r=roc
This was only used to write to and read from otherwise unused preferences.
2015-06-11 09:34:27 +12:00
Karl Tomlinson 1af6bef0d4 bug 147419 remove ununsed nsIPrintSettings::printCommand and print_command prefs r=roc
These was used only to write to and read from each other.
2015-06-10 18:10:28 +12:00
Mike Conley 446c687641 Bug 1091112 - Proxy opening the print dialog on OS X to the parent. r=mstange 2015-05-06 14:10:21 -04:00
Mike Conley d68e4e61b2 Bug 1091112 - Add OS X-specific members to PrintData IPDL struct. r=jimm 2015-05-06 14:09:08 -04:00
Mike Conley 75eccc2871 Bug 1091112 - Serialize nsIPrintSettings options bitfield. r=jimm 2015-05-06 15:35:35 -04:00
L. David Baron 562ed1129f Bug 1152921 - Always initialize platform-specific booleans in PrintData before sending over IPC. r=mconley
This fixes the crash in Linux debug builds bringing up the print dialog,
though there's still a crash when closing it.
2015-04-16 19:27:01 -07:00
Mike Conley 1d92d9cdca Bug 1088070 - If saving print settings in the content process, proxy to the parent. r=smaug. 2015-03-05 13:12:41 -05:00
Carsten "Tomcat" Book 473f9622e3 Backed out changeset 8e04b9c921ad (bug 1088070) 2015-03-05 08:54:00 +01:00
Mike Conley 0ef9065eac Bug 1088070 - If saving print settings in the content process, proxy to the parent. r=smaug. 2015-03-02 14:33:53 -05:00
Mike Conley 401e1aee9d Bug 1082579 - Introduce PPrinting.ipdl and proxies for opening printing UI. r=blassey. 2014-10-28 11:59:08 -04:00
Mason Chang 5816cf797a Bug 1085696. Part 1 Move widget/xpwidget to /widget. r=roc 2014-10-23 10:16:45 -07:00