Граф коммитов

4 Коммитов

Автор SHA1 Сообщение Дата
Nicholas Nethercote d225f7151b Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro.
(Path is actually r=froydnj.)

Bug 1400459 devirtualized nsIAtom so that it is no longer a subclass of
nsISupports. This means that nsAtom is now a better name for it than nsIAtom.

MozReview-Commit-ID: 91U22X2NydP

--HG--
rename : xpcom/ds/nsIAtom.h => xpcom/ds/nsAtom.h
extra : rebase_source : ac3e904a21b8b48e74534fff964f1623ee937c67
2017-10-03 09:05:19 +11:00
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
Eric Rahm a33f11e0f5 Bug 1391803 - Use nsStringFwd.h for forward declaring string classes. r=froydnj
We should not be declaring forward declarations for nsString classes directly,
instead we should use nsStringFwd.h. This will make changing the underlying
types easier.

--HG--
extra : rebase_source : b2c7554e8632f078167ff2f609392e63a136c299
2017-08-16 16:48:52 -07:00
James Kitchener afbc3ea6ed Bug 1100184 - Flatten netwerk/streamconv/(public|src)/ directories. r=mcmanus, r=poiru
--HG--
rename : netwerk/streamconv/public/mozITXTToHTMLConv.idl => netwerk/streamconv/mozITXTToHTMLConv.idl
rename : netwerk/streamconv/public/nsIDirIndex.idl => netwerk/streamconv/nsIDirIndex.idl
rename : netwerk/streamconv/public/nsIDirIndexListener.idl => netwerk/streamconv/nsIDirIndexListener.idl
rename : netwerk/streamconv/public/nsIStreamConverter.idl => netwerk/streamconv/nsIStreamConverter.idl
rename : netwerk/streamconv/public/nsIStreamConverterService.idl => netwerk/streamconv/nsIStreamConverterService.idl
rename : netwerk/streamconv/public/nsITXTToHTMLConv.idl => netwerk/streamconv/nsITXTToHTMLConv.idl
rename : netwerk/streamconv/src/nsStreamConverterService.cpp => netwerk/streamconv/nsStreamConverterService.cpp
rename : netwerk/streamconv/src/nsStreamConverterService.h => netwerk/streamconv/nsStreamConverterService.h
extra : rebase_source : 406d98e0c3e249bfa432e35962810bbc2fa933d1
2015-01-03 17:42:00 -05:00