gecko-dev/gfx/src
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
..
AppUnits.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
DriverCrashGuard.cpp Relax the driver crash guard on nightly and e10s builds. (bug 1200825, r=jgilbert) 2015-09-03 21:05:41 -07:00
DriverCrashGuard.h Bug 1202430 - remove NS_GFX and related macros; r=jrmuizel 2015-09-07 17:53:36 -04:00
FilterSupport.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
FilterSupport.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
gfxCrashReporterUtils.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
gfxCrashReporterUtils.h Bug 1202430 - remove NS_GFX and related macros; r=jrmuizel 2015-09-07 17:53:36 -04:00
gfxTelemetry.cpp Don't attempt to use WARP after D3D11CreateDevice crashes. (bug 1201202, r=bas) 2015-09-13 23:52:29 -07:00
gfxTelemetry.h Don't attempt to use WARP after D3D11CreateDevice crashes. (bug 1201202, r=bas) 2015-09-13 23:52:29 -07:00
moz.build Bug 1207030 - Enable -Wshadow flag in more directories that have no -Wshadow warnings. r=glandium 2015-09-22 21:39:03 -07:00
nsBoundingMetrics.h
nsColor.cpp Bug 1202430 - remove NS_GFX and related macros; r=jrmuizel 2015-09-07 17:53:36 -04:00
nsColor.h Bug 1208300 (part 4) - Remove gfxRGBA and some related things. r=jwatt. 2015-09-24 19:24:16 -07:00
nsColorNameList.h Bug 1024642: Add in rebeccapurple to color lists in gfx; r=dbaron 2014-06-23 10:24:17 +01:00
nsColorNames.h Bug 1202430 - remove NS_GFX and related macros; r=jrmuizel 2015-09-07 17:53:36 -04:00
nsCoord.h Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo. 2015-02-09 14:34:50 -08:00
nsDeviceContext.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsDeviceContext.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsFont.cpp Bug 1144885 - Treat font-size-adjust: none as separate from font-size-adjust: 0. r=jdaggett 2015-04-20 23:10:40 -07:00
nsFont.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsFontMetrics.cpp Bug 1193488 - Update values of writing-mode and text-orientation to reflect the CSS WG decision to revise them in the Writing Modes spec. r=dholbert 2015-09-23 22:16:01 +01:00
nsFontMetrics.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsGfxCIID.h
nsIFontEnumerator.idl
nsIScriptableRegion.idl
nsITheme.h Bug 889085 - Make sheets styled with '-moz-appearance: dialog;' vibrant/semi-transparent. r=mstange, roc. 2015-05-26 19:55:08 +02:00
nsMargin.h Bug 1202430 - remove NS_GFX and related macros; r=jrmuizel 2015-09-07 17:53:36 -04:00
nsPoint.h Bug 1155621 - Make nsIntRect and nsIntPoint typedefs of mozilla::gfx::IntRect and mozilla::gfx::IntPoint. r=Bas 2015-04-21 17:04:57 +02:00
nsRect.cpp Bug 1158122 - Remove some of the occurences of nsIntRect in gfx. r=nical 2015-05-06 17:26:36 +02:00
nsRect.h Bug 1202430 - remove NS_GFX and related macros; r=jrmuizel 2015-09-07 17:53:36 -04:00
nsRegion.cpp Bug 1204597 - Use Move constructor for opaque region in FrameLayerBuilder instead of copying. r=jrmuizel 2015-09-14 14:18:20 -04:00
nsRegion.h Bug 1202430 - remove NS_GFX and related macros; r=jrmuizel 2015-09-07 17:53:36 -04:00
nsRenderingContext.cpp Bug 1088625, part 3 - Remove nsRenderingContext's SetFont, FontMetrics and SetTextRunRTL methods now that no one uses them any more. r=mstange 2014-10-24 16:28:15 +01:00
nsRenderingContext.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsScriptableRegion.cpp Bug 1158122 - Remove some of the occurences of nsIntRect in gfx. r=nical 2015-05-06 17:26:36 +02:00
nsScriptableRegion.h Bug 1202430 - remove NS_GFX and related macros; r=jrmuizel 2015-09-07 17:53:36 -04:00
nsSize.h Bug 1207741 - Remove gfxIntSize. r=nical. 2015-09-23 11:49:05 -07:00
nsThebesFontEnumerator.cpp Bug 1134920 - Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free. r=nfroyd 2015-04-01 13:51:45 +09:00
nsThebesFontEnumerator.h Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj 2015-03-21 12:28:04 -04:00
nsThebesGfxFactory.cpp Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj 2015-03-21 12:28:04 -04:00
nsThemeConstants.h Bug 1187203 - Implement GtkInfoBar appearance style on GTK3. r=karlt 2015-08-21 16:38:15 -04:00
nsTransform2D.cpp
nsTransform2D.h Bug 1202430 - remove NS_GFX and related macros; r=jrmuizel 2015-09-07 17:53:36 -04:00
RegionTyped.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
X11Util.cpp Bug 1045752 - Change ScopedXErrorHandler assert to warn; r=karlt 2014-07-30 17:30:19 -07:00
X11Util.h Bug 1202430 - remove NS_GFX and related macros; r=jrmuizel 2015-09-07 17:53:36 -04:00