gecko/parser/html
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
..
java
javasrc Bug 1178484 - Part 2: Regenerate gecko's in-tree parser. r=hsivonen 2015-08-28 03:31:24 -07:00
jArray.h Bug 489820 part 2 - Grow buffers to the worst-case size before tokenizing; fix comments. r=wchen. 2015-08-25 18:05:45 +03:00
moz.build Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium. 2015-08-27 20:44:53 -07:00
nsAHtml5TreeBuilderState.h
nsAHtml5TreeOpSink.h
nsHtml5ArrayCopy.h
nsHtml5Atom.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsHtml5Atom.h
nsHtml5AtomList.h Bug 1178484 - Part 2: Regenerate gecko's in-tree parser. r=hsivonen 2015-08-28 03:31:24 -07:00
nsHtml5Atoms.cpp
nsHtml5Atoms.h
nsHtml5AtomTable.cpp
nsHtml5AtomTable.h
nsHtml5AttributeName.cpp Bug 1178484 - Part 2: Regenerate gecko's in-tree parser. r=hsivonen 2015-08-28 03:31:24 -07:00
nsHtml5AttributeName.h Bug 1178484 - Part 2: Regenerate gecko's in-tree parser. r=hsivonen 2015-08-28 03:31:24 -07:00
nsHtml5ByteReadable.h
nsHtml5DependentUTF16Buffer.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsHtml5DependentUTF16Buffer.h
nsHtml5DocumentBuilder.cpp
nsHtml5DocumentBuilder.h
nsHtml5DocumentMode.h
nsHtml5ElementName.cpp
nsHtml5ElementName.h
nsHtml5Highlighter.cpp
nsHtml5Highlighter.h
nsHtml5HtmlAttributes.cpp
nsHtml5HtmlAttributes.h
nsHtml5Macros.h
nsHtml5MetaScanner.cpp Bug 1176698 - Use fallible allocator for attribute values in the HTML parser. r=wchen. 2015-08-25 18:05:46 +03:00
nsHtml5MetaScanner.h Bug 1176698 - Use fallible allocator for attribute values in the HTML parser. r=wchen. 2015-08-25 18:05:46 +03:00
nsHtml5MetaScannerCppSupplement.h
nsHtml5MetaScannerHSupplement.h
nsHtml5Module.cpp
nsHtml5Module.h
nsHtml5NamedCharacters.cpp
nsHtml5NamedCharacters.h
nsHtml5NamedCharactersAccel.cpp
nsHtml5NamedCharactersAccel.h
nsHtml5NamedCharactersInclude.h
nsHtml5OplessBuilder.cpp
nsHtml5OplessBuilder.h
nsHtml5OwningUTF16Buffer.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsHtml5OwningUTF16Buffer.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsHtml5Parser.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsHtml5Parser.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsHtml5PlainTextUtils.cpp
nsHtml5PlainTextUtils.h
nsHtml5Portability.cpp Bug 1176698 - Use fallible allocator for attribute values in the HTML parser. r=wchen. 2015-08-25 18:05:46 +03:00
nsHtml5Portability.h Bug 1176698 - Use fallible allocator for attribute values in the HTML parser. r=wchen. 2015-08-25 18:05:46 +03:00
nsHtml5RefPtr.h Bug 1196050 - Replace NSCAP_Zero usage with decltype(nullptr). r=froydnj 2015-08-20 10:30:10 +10:00
nsHtml5ReleasableAttributeName.cpp
nsHtml5ReleasableAttributeName.h
nsHtml5ReleasableElementName.cpp
nsHtml5ReleasableElementName.h
nsHtml5Speculation.cpp Bug 1185763 - Part 5: Remove now unnecessary nsTArray::AppendElements optimizations in parser/html/. r=froydnj 2015-08-11 08:29:46 -07:00
nsHtml5Speculation.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsHtml5SpeculativeLoad.cpp Bug 992096 - Implement Sub Resource Integrity [1/2]. r=baku,r=ckerschb 2015-08-12 20:19:11 -07:00
nsHtml5SpeculativeLoad.h Bug 992096 - Implement Sub Resource Integrity [1/2]. r=baku,r=ckerschb 2015-08-12 20:19:11 -07:00
nsHtml5StackNode.cpp
nsHtml5StackNode.h
nsHtml5StateSnapshot.cpp
nsHtml5StateSnapshot.h
nsHtml5StreamListener.cpp
nsHtml5StreamListener.h
nsHtml5StreamParser.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsHtml5StreamParser.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsHtml5StringParser.cpp Bug 489820 part 2 - Grow buffers to the worst-case size before tokenizing; fix comments. r=wchen. 2015-08-25 18:05:45 +03:00
nsHtml5StringParser.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsHtml5SVGLoadDispatcher.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsHtml5SVGLoadDispatcher.h
nsHtml5Tokenizer.cpp Bug 1176698 - Use fallible allocator for attribute values in the HTML parser. r=wchen. 2015-08-25 18:05:46 +03:00
nsHtml5Tokenizer.h Bug 1176698 - Use fallible allocator for attribute values in the HTML parser. r=wchen. 2015-08-25 18:05:46 +03:00
nsHtml5TokenizerCppSupplement.h Bug 489820 part 2 - Grow buffers to the worst-case size before tokenizing; fix comments. r=wchen. 2015-08-25 18:05:45 +03:00
nsHtml5TokenizerHSupplement.h Bug 489820 part 2 - Grow buffers to the worst-case size before tokenizing; fix comments. r=wchen. 2015-08-25 18:05:45 +03:00
nsHtml5TokenizerLoopPolicies.h
nsHtml5TreeBuilder.cpp Bug 1176698 - Use fallible allocator for attribute values in the HTML parser. r=wchen. 2015-08-25 18:05:46 +03:00
nsHtml5TreeBuilder.h Bug 1176698 - Use fallible allocator for attribute values in the HTML parser. r=wchen. 2015-08-25 18:05:46 +03:00
nsHtml5TreeBuilderCppSupplement.h Bug 1176698 - Use fallible allocator for attribute values in the HTML parser. r=wchen. 2015-08-25 18:05:46 +03:00
nsHtml5TreeBuilderHSupplement.h Bug 1176698 - Use fallible allocator for attribute values in the HTML parser. r=wchen. 2015-08-25 18:05:46 +03:00
nsHtml5TreeOperation.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsHtml5TreeOperation.h Bug 1176681 - Make character buffer allocations in the HTML5 tree builder fallible. r=wchen. 2015-08-25 18:05:46 +03:00
nsHtml5TreeOpExecutor.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsHtml5TreeOpExecutor.h Bug 992096 - Implement Sub Resource Integrity [1/2]. r=baku,r=ckerschb 2015-08-12 20:19:11 -07:00
nsHtml5TreeOpStage.cpp Bug 1185763 - Part 5: Remove now unnecessary nsTArray::AppendElements optimizations in parser/html/. r=froydnj 2015-08-11 08:29:46 -07:00
nsHtml5TreeOpStage.h
nsHtml5UTF16Buffer.cpp Bug 489820 part 2 - Grow buffers to the worst-case size before tokenizing; fix comments. r=wchen. 2015-08-25 18:05:45 +03:00
nsHtml5UTF16Buffer.h Bug 489820 part 2 - Grow buffers to the worst-case size before tokenizing; fix comments. r=wchen. 2015-08-25 18:05:45 +03:00
nsHtml5UTF16BufferCppSupplement.h
nsHtml5UTF16BufferHSupplement.h
nsHtml5ViewSourceUtils.cpp
nsHtml5ViewSourceUtils.h
nsIContentHandle.h
nsIParserUtils.idl
nsIScriptableUnescapeHTML.idl
nsParserUtils.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsParserUtils.h