gecko-dev/parser/html
Nicholas Nethercote dfd3b7e7aa Bug 1400459 (part 2) - Devirtualize nsIAtom. r=heycam.
This patch merges nsAtom into nsIAtom. For the moment, both names can be used
interchangeably due to a typedef. The patch also devirtualizes nsIAtom, by
making it not inherit from nsISupports, removing NS_DECL_NSIATOM, and dropping
the use of NS_IMETHOD_. It also removes nsIAtom's IIDs.

These changes trigger knock-on changes throughout the codebase, changing the
types of lots of things as follows.

- nsCOMPtr<nsIAtom> --> RefPtr<nsIAtom>

- nsCOMArray<nsIAtom> --> nsTArray<RefPtr<nsIAtom>>
  - Count() --> Length()
  - ObjectAt() --> ElementAt()
  - AppendObject() --> AppendElement()
  - RemoveObjectAt() --> RemoveElementAt()

- ns*Hashtable<nsISupportsHashKey, ...> -->
  ns*Hashtable<nsRefPtrHashKey<nsIAtom>, ...>

- nsInterfaceHashtable<T, nsIAtom> --> nsRefPtrHashtable<T, nsIAtom>
  - This requires adding a Get() method to nsRefPtrHashtable that it lacks but
    nsInterfaceHashtable has.

- nsCOMPtr<nsIMutableArray> --> nsTArray<RefPtr<nsIAtom>>
  - nsArrayBase::Create() --> nsTArray()
  - GetLength() --> Length()
  - do_QueryElementAt() --> operator[]

The patch also has some changes to Rust code that manipulates nsIAtom.

MozReview-Commit-ID: DykOl8aEnUJ

--HG--
extra : rebase_source : 254404e318e94b4c93ec8d4081ff0f0fda8aa7d1
2017-09-26 08:33:21 +10:00
..
java Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout 2017-08-11 10:48:10 +02:00
javasrc Bug 1396584 - Remove support for multiple ShadowRoots, r=mrbkap 2017-09-25 18:09:26 +03:00
jArray.h
moz.build Bug 1401873 - Remove nsHtml5Atom. r=froydnj,hsivonen. 2017-09-21 14:02:05 +10:00
nsAHtml5TreeBuilderState.h
nsAHtml5TreeOpSink.h
nsHtml5ArrayCopy.h Bug 1391803 - Use nsStringFwd.h for forward declaring string classes. r=froydnj 2017-08-16 16:48:52 -07:00
nsHtml5AtomTable.cpp Bug 1401873 - Remove nsHtml5Atom. r=froydnj,hsivonen. 2017-09-21 14:02:05 +10:00
nsHtml5AtomTable.h Bug 1401873 - Remove nsHtml5Atom. r=froydnj,hsivonen. 2017-09-21 14:02:05 +10:00
nsHtml5AttributeEntry.h Bug 1355479 - Flatten attribute storage in the HTML parser to AutoTArray to avoid malloc. r=wchen 2017-04-13 11:14:48 +03:00
nsHtml5AttributeName.cpp Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout 2017-08-11 10:48:10 +02:00
nsHtml5AttributeName.h Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout 2017-08-11 10:48:10 +02:00
nsHtml5ByteReadable.h
nsHtml5ContentCreatorFunction.h Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout 2017-08-11 10:48:10 +02:00
nsHtml5DependentUTF16Buffer.cpp
nsHtml5DependentUTF16Buffer.h
nsHtml5DocumentBuilder.cpp Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv 2017-08-29 16:02:48 -07:00
nsHtml5DocumentBuilder.h Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen 2017-06-18 20:37:50 +09:00
nsHtml5DocumentMode.h
nsHtml5ElementName.cpp Bug 1396584 - Remove support for multiple ShadowRoots, r=mrbkap 2017-09-25 18:09:26 +03:00
nsHtml5ElementName.h Bug 1396584 - Remove support for multiple ShadowRoots, r=mrbkap 2017-09-25 18:09:26 +03:00
nsHtml5Highlighter.cpp Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout 2017-08-11 10:48:10 +02:00
nsHtml5Highlighter.h Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout 2017-08-11 10:48:10 +02:00
nsHtml5HtmlAttributes.cpp Bug 1261841 part 2 - Use encoding_rs instead of uconv. r=emk,mystor. 2017-06-13 13:23:23 +03:00
nsHtml5HtmlAttributes.h Bug 1261841 part 2 - Use encoding_rs instead of uconv. r=emk,mystor. 2017-06-13 13:23:23 +03:00
nsHtml5Macros.h
nsHtml5MetaScanner.cpp Backed out changeset fabf345eec6e (bug 1375701) for bustage at parser/html/nsHtml5String.h:143:3: bad implicit conversion constructor for 'nsHtml5String'. r=backout on a CLOSED TREE 2017-08-15 16:28:10 +02:00
nsHtml5MetaScanner.h Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout 2017-08-11 10:48:10 +02:00
nsHtml5MetaScannerCppSupplement.h Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen 2017-06-18 20:37:50 +09:00
nsHtml5MetaScannerHSupplement.h Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen 2017-06-18 20:37:50 +09:00
nsHtml5Module.cpp
nsHtml5Module.h
nsHtml5NamedCharacters.cpp
nsHtml5NamedCharacters.h
nsHtml5NamedCharactersAccel.cpp
nsHtml5NamedCharactersAccel.h
nsHtml5NamedCharactersInclude.h
nsHtml5OplessBuilder.cpp Bug 1362119 - part 1 - Moving dom/base/Script{Loader,Element}.* in dom/script, r=ehsan 2017-05-08 08:24:22 +02:00
nsHtml5OplessBuilder.h
nsHtml5OwningUTF16Buffer.cpp Bug 1261841 part 2 - Use encoding_rs instead of uconv. r=emk,mystor. 2017-06-13 13:23:23 +03:00
nsHtml5OwningUTF16Buffer.h Bug 1261841 part 2 - Use encoding_rs instead of uconv. r=emk,mystor. 2017-06-13 13:23:23 +03:00
nsHtml5Parser.cpp Bug 1381253 - Remove redundant control flow declarations rs=ehsan 2017-07-15 19:03:04 +02:00
nsHtml5Parser.h Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen 2017-06-18 20:37:50 +09:00
nsHtml5PlainTextUtils.cpp Bug 1395486 - Move resource://gre-resource/plaintext.css to resource://content-accessible/plaintext.css. r=heycam 2017-08-31 17:06:22 +08:00
nsHtml5PlainTextUtils.h
nsHtml5Portability.cpp Backed out changeset fabf345eec6e (bug 1375701) for bustage at parser/html/nsHtml5String.h:143:3: bad implicit conversion constructor for 'nsHtml5String'. r=backout on a CLOSED TREE 2017-08-15 16:28:10 +02:00
nsHtml5Portability.h Backed out changeset fabf345eec6e (bug 1375701) for bustage at parser/html/nsHtml5String.h:143:3: bad implicit conversion constructor for 'nsHtml5String'. r=backout on a CLOSED TREE 2017-08-15 16:28:10 +02:00
nsHtml5SVGLoadDispatcher.cpp
nsHtml5SVGLoadDispatcher.h
nsHtml5Speculation.cpp
nsHtml5Speculation.h
nsHtml5SpeculativeLoad.cpp Bug 1401873 - Remove nsHtml5Atom. r=froydnj,hsivonen. 2017-09-21 14:02:05 +10:00
nsHtml5SpeculativeLoad.h Bug 1053321 - Correctly pass info about 'defer' and 'async' attributes to HTML5 parser invoked script preload. r=bkelly 2017-08-19 05:35:00 -04:00
nsHtml5StackNode.cpp Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout 2017-08-11 10:48:10 +02:00
nsHtml5StackNode.h Bug 1396584 - Remove support for multiple ShadowRoots, r=mrbkap 2017-09-25 18:09:26 +03:00
nsHtml5StateSnapshot.cpp Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout 2017-08-11 10:48:10 +02:00
nsHtml5StateSnapshot.h Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout 2017-08-11 10:48:10 +02:00
nsHtml5StreamListener.cpp
nsHtml5StreamListener.h Bug 1333333 - Label runnables in the HTML parser (again). r=billm. 2017-06-27 10:38:30 -07:00
nsHtml5StreamParser.cpp Bug 1377131 - Try to trigger collector slices at times which disturb page js less (at least with iframes loaded after the top level page has been loaded), r=mccr8,bz 2017-09-06 18:18:11 +01:00
nsHtml5StreamParser.h Bug 1378930 - Part 2: Remove the aName parameter from SchedulerGroup/DocGroup/DispatcherTrait. r=billm 2017-07-26 16:13:35 +08:00
nsHtml5StreamParserPtr.h Bug 1378930 - Part 2: Remove the aName parameter from SchedulerGroup/DocGroup/DispatcherTrait. r=billm 2017-07-26 16:13:35 +08:00
nsHtml5String.cpp Backed out changeset fabf345eec6e (bug 1375701) for bustage at parser/html/nsHtml5String.h:143:3: bad implicit conversion constructor for 'nsHtml5String'. r=backout on a CLOSED TREE 2017-08-15 16:28:10 +02:00
nsHtml5String.h Backed out changeset fabf345eec6e (bug 1375701) for bustage at parser/html/nsHtml5String.h:143:3: bad implicit conversion constructor for 'nsHtml5String'. r=backout on a CLOSED TREE 2017-08-15 16:28:10 +02:00
nsHtml5StringParser.cpp
nsHtml5StringParser.h
nsHtml5Tokenizer.cpp Backed out changeset fabf345eec6e (bug 1375701) for bustage at parser/html/nsHtml5String.h:143:3: bad implicit conversion constructor for 'nsHtml5String'. r=backout on a CLOSED TREE 2017-08-15 16:28:10 +02:00
nsHtml5Tokenizer.h Bug 1269490 - Merge nsHtml5Atoms into nsGkAtoms. r=wchen 2017-04-20 11:47:02 +03:00
nsHtml5TokenizerCppSupplement.h Bug 1358037 - Inline the methods of nsHtml5ElementName and nsHtml5AttributeName. r=wchen 2017-04-20 10:34:32 +03:00
nsHtml5TokenizerHSupplement.h
nsHtml5TokenizerLoopPolicies.h
nsHtml5TreeBuilder.cpp Backed out changeset fabf345eec6e (bug 1375701) for bustage at parser/html/nsHtml5String.h:143:3: bad implicit conversion constructor for 'nsHtml5String'. r=backout on a CLOSED TREE 2017-08-15 16:28:10 +02:00
nsHtml5TreeBuilder.h Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout 2017-08-11 10:48:10 +02:00
nsHtml5TreeBuilderCppSupplement.h Bug 1400459 (part 2) - Devirtualize nsIAtom. r=heycam. 2017-09-26 08:33:21 +10:00
nsHtml5TreeBuilderHSupplement.h Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen 2017-06-18 20:37:50 +09:00
nsHtml5TreeOpExecutor.cpp Bug 1398985 - Remove a warning message in nsHtml5TreeOpExecutor::ContinueInterruptedParsingAsync(). r=erahm 2017-09-25 13:45:04 +08:00
nsHtml5TreeOpExecutor.h Bug 1053321 - Correctly pass info about 'defer' and 'async' attributes to HTML5 parser invoked script preload. r=bkelly 2017-08-19 05:35:00 -04:00
nsHtml5TreeOpStage.cpp
nsHtml5TreeOpStage.h
nsHtml5TreeOperation.cpp Bug 1400459 (part 2) - Devirtualize nsIAtom. r=heycam. 2017-09-26 08:33:21 +10:00
nsHtml5TreeOperation.h Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout 2017-08-11 10:48:10 +02:00
nsHtml5UTF16Buffer.cpp Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout 2017-08-11 10:48:10 +02:00
nsHtml5UTF16Buffer.h Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout 2017-08-11 10:48:10 +02:00
nsHtml5UTF16BufferCppSupplement.h
nsHtml5UTF16BufferHSupplement.h
nsHtml5ViewSourceUtils.cpp Bug 870698 - Part 10: Replace Append(NS_LITERAL_STRING("")) with AppendLiteral(u""). r=erahm 2017-09-07 18:32:54 -07:00
nsHtml5ViewSourceUtils.h
nsIContentHandle.h
nsIParserUtils.idl
nsIScriptableUnescapeHTML.idl
nsParserUtils.cpp Bug 1390428 (part 9) - Remove nsXPIDLCString. r=erahm. 2017-08-17 15:29:03 +10:00
nsParserUtils.h