gecko-dev/editor/composer
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
..
crashtests Bug 1345253 - Use element.firstChild.remove() instead of element.removeChild(element.firstChild), r=jaws. 2017-03-08 10:17:52 +01:00
res Bug 1355734 - Remove text-decoration-line: -moz-anchor-decoration. r=heycam,masayuki 2017-04-13 16:17:03 +08:00
test Bug 1374282 - script generated patch to remove Task.jsm calls, r=Mossop. 2017-06-22 12:51:42 +02:00
moz.build Bug 1297414 - Support execCommand("defaultParagraphSeparator"); r=masayuki 2017-04-04 13:47:28 +03:00
nsComposerCommands.cpp Bug 1400459 (part 2) - Devirtualize nsIAtom. r=heycam. 2017-09-26 08:33:21 +10:00
nsComposerCommands.h Bug 1391803 - Use nsStringFwd.h for forward declaring string classes. r=froydnj 2017-08-16 16:48:52 -07:00
nsComposerCommandsUpdater.cpp Bug 1391978 - Part 3. Replace nsISelection::GetIsCollapsed with Selection::IsCollapsed. r=masayuki 2017-08-25 17:48:04 +09:00
nsComposerCommandsUpdater.h Bug 1382172 - Name nsITimerCallback instances in native implementation. r=billm 2017-07-27 02:18:20 +08:00
nsComposerController.cpp Bug 1297414 - Support execCommand("defaultParagraphSeparator"); r=masayuki 2017-04-04 13:47:28 +03:00
nsComposerController.h
nsComposerDocumentCommands.cpp Bug 1390428 (part 1) - Remove many nsXPIDLCString local variables. r=erahm. 2017-08-16 13:58:35 +10:00
nsComposerRegistration.cpp Bug 1311621 Fix odd indent of editor/composer/nsComposerRegistration.cpp r=smaug 2016-10-25 15:07:42 +09:00
nsComposeTxtSrvFilter.cpp
nsComposeTxtSrvFilter.h
nsEditingSession.cpp Bug 1390428 (part 5) - Remove more nsXPIDLCString uses. r=erahm. 2017-08-16 14:07:18 +10:00
nsEditingSession.h Bug 1388001 - part2: nsEditingSession should treat editor as HTMLEditor r=m_kato 2017-08-04 22:53:28 +09:00
nsEditorSpellCheck.cpp Bug 1395443 - DictionaryFetcher::Fetch should initializate nsIContentPrefService2 by idle thread. r=masayuki 2017-09-04 19:57:45 +09:00
nsEditorSpellCheck.h Bug 1330912 - Part 2. Use async version on UpdateCurrentDictionary. r=masayuki 2017-04-11 17:05:19 +09:00
nsIEditingSession.idl Bug 1388001 - part1: Create nsIEditingSession::GetHTMLEditorForWindow() r=smaug 2017-08-12 11:44:16 +09:00