diff --git a/accessible/base/NotificationController.h b/accessible/base/NotificationController.h index 24af2af261f4..d4f7c98208bf 100644 --- a/accessible/base/NotificationController.h +++ b/accessible/base/NotificationController.h @@ -86,7 +86,7 @@ class TNotification : public Notification * Used to process notifications from core for the document accessible. */ class NotificationController final : public EventQueue, - public nsARefreshObserver + public nsARefreshObserver { public: NotificationController(DocAccessible* aDocument, nsIPresShell* aPresShell); diff --git a/accessible/base/nsAccessibilityService.h b/accessible/base/nsAccessibilityService.h index 44678e4a3596..75091fc216b6 100644 --- a/accessible/base/nsAccessibilityService.h +++ b/accessible/base/nsAccessibilityService.h @@ -64,10 +64,10 @@ struct MarkupMapInfo { } // namespace mozilla class nsAccessibilityService final : public mozilla::a11y::DocManager, - public mozilla::a11y::FocusManager, - public mozilla::a11y::SelectionManager, - public nsIAccessibilityService, - public nsIObserver + public mozilla::a11y::FocusManager, + public mozilla::a11y::SelectionManager, + public nsIAccessibilityService, + public nsIObserver { public: typedef mozilla::a11y::Accessible Accessible; diff --git a/accessible/windows/msaa/IUnknownImpl.h b/accessible/windows/msaa/IUnknownImpl.h index cb2565776e35..dbf6c1374ffa 100644 --- a/accessible/windows/msaa/IUnknownImpl.h +++ b/accessible/windows/msaa/IUnknownImpl.h @@ -51,13 +51,13 @@ class AutoRefCnt #define DECL_IUNKNOWN \ public: \ virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID, void**); \ - virtual ULONG STDMETHODCALLTYPE AddRef() final \ + virtual ULONG STDMETHODCALLTYPE AddRef() final \ { \ MOZ_ASSERT(int32_t(mRefCnt) >= 0, "illegal refcnt"); \ ++mRefCnt; \ return mRefCnt; \ } \ - virtual ULONG STDMETHODCALLTYPE Release() final \ + virtual ULONG STDMETHODCALLTYPE Release() final \ { \ MOZ_ASSERT(int32_t(mRefCnt) > 0, "dup release"); \ --mRefCnt; \ diff --git a/accessible/windows/uia/uiaRawElmProvider.h b/accessible/windows/uia/uiaRawElmProvider.h index cb10779c1374..ba0921530a74 100644 --- a/accessible/windows/uia/uiaRawElmProvider.h +++ b/accessible/windows/uia/uiaRawElmProvider.h @@ -21,7 +21,7 @@ class AccessibleWrap; * IRawElementProviderSimple implementation (maintains IAccessibleEx approach). */ class uiaRawElmProvider final : public IAccessibleEx, - public IRawElementProviderSimple + public IRawElementProviderSimple { public: uiaRawElmProvider(AccessibleWrap* aAcc) : mAcc(aAcc) { } diff --git a/browser/components/feeds/nsFeedSniffer.h b/browser/components/feeds/nsFeedSniffer.h index 57e10d954d09..fce66773bb12 100644 --- a/browser/components/feeds/nsFeedSniffer.h +++ b/browser/components/feeds/nsFeedSniffer.h @@ -10,7 +10,7 @@ #include "mozilla/Attributes.h" class nsFeedSniffer final : public nsIContentSniffer, - nsIStreamListener + nsIStreamListener { public: NS_DECL_ISUPPORTS diff --git a/caps/nsNullPrincipalURI.h b/caps/nsNullPrincipalURI.h index 1837fcaa6183..6fb0b02d6450 100644 --- a/caps/nsNullPrincipalURI.h +++ b/caps/nsNullPrincipalURI.h @@ -25,8 +25,8 @@ {0xb9, 0x1b, 0x6b, 0x54, 0x10, 0x22, 0x36, 0xe6} } class nsNullPrincipalURI final : public nsIURI - , public nsISizeOf - , public nsIIPCSerializableURI + , public nsISizeOf + , public nsIIPCSerializableURI { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/caps/nsScriptSecurityManager.h b/caps/nsScriptSecurityManager.h index 646114d211d2..da9b3a299083 100644 --- a/caps/nsScriptSecurityManager.h +++ b/caps/nsScriptSecurityManager.h @@ -33,8 +33,8 @@ class ClassInfoData; { 0xba, 0x18, 0x00, 0x60, 0xb0, 0xf1, 0x99, 0xa2 }} class nsScriptSecurityManager final : public nsIScriptSecurityManager, - public nsIChannelEventSink, - public nsIObserver + public nsIChannelEventSink, + public nsIObserver { public: static void Shutdown(); diff --git a/chrome/nsChromeProtocolHandler.h b/chrome/nsChromeProtocolHandler.h index 0d86b009db4f..42c3f52be05a 100644 --- a/chrome/nsChromeProtocolHandler.h +++ b/chrome/nsChromeProtocolHandler.h @@ -19,7 +19,7 @@ } class nsChromeProtocolHandler final : public nsIProtocolHandler, - public nsSupportsWeakReference + public nsSupportsWeakReference { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/docshell/shistory/src/nsSHEntry.h b/docshell/shistory/src/nsSHEntry.h index cc00572035f0..19e3827faa46 100644 --- a/docshell/shistory/src/nsSHEntry.h +++ b/docshell/shistory/src/nsSHEntry.h @@ -23,8 +23,8 @@ class nsIInputStream; class nsIURI; class nsSHEntry final : public nsISHEntry, - public nsISHContainer, - public nsISHEntryInternal + public nsISHContainer, + public nsISHEntryInternal { public: nsSHEntry(); diff --git a/docshell/shistory/src/nsSHEntryShared.h b/docshell/shistory/src/nsSHEntryShared.h index 1e7a2e67775a..6559fa51634b 100644 --- a/docshell/shistory/src/nsSHEntryShared.h +++ b/docshell/shistory/src/nsSHEntryShared.h @@ -31,7 +31,7 @@ class nsISupportsArray; // // nsSHEntryShared is the vehicle for this sharing. class nsSHEntryShared final : public nsIBFCacheEntry, - public nsIMutationObserver + public nsIMutationObserver { public: static void EnsureHistoryTracker(); diff --git a/docshell/shistory/src/nsSHistory.h b/docshell/shistory/src/nsSHistory.h index 71237cfd334c..36af8855f688 100644 --- a/docshell/shistory/src/nsSHistory.h +++ b/docshell/shistory/src/nsSHistory.h @@ -28,9 +28,9 @@ class nsISHEntry; class nsISHTransaction; class nsSHistory final : public PRCList, - public nsISHistory, - public nsISHistoryInternal, - public nsIWebNavigation + public nsISHistory, + public nsISHistoryInternal, + public nsIWebNavigation { public: nsSHistory(); diff --git a/dom/archivereader/ArchiveReader.h b/dom/archivereader/ArchiveReader.h index b84cc3c03f3c..31a75b3dd978 100644 --- a/dom/archivereader/ArchiveReader.h +++ b/dom/archivereader/ArchiveReader.h @@ -33,7 +33,7 @@ class ArchiveRequest; * This is the ArchiveReader object */ class ArchiveReader final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/dom/archivereader/ArchiveZipFile.cpp b/dom/archivereader/ArchiveZipFile.cpp index 13e804b403af..0866503d32d2 100644 --- a/dom/archivereader/ArchiveZipFile.cpp +++ b/dom/archivereader/ArchiveZipFile.cpp @@ -21,7 +21,7 @@ USING_ARCHIVEREADER_NAMESPACE * Input stream object for zip files */ class ArchiveInputStream final : public nsIInputStream, - public nsISeekableStream + public nsISeekableStream { public: ArchiveInputStream(uint64_t aParentSize, diff --git a/dom/asmjscache/AsmJSCache.cpp b/dom/asmjscache/AsmJSCache.cpp index c4dcc6987b37..dbe07f4413d9 100644 --- a/dom/asmjscache/AsmJSCache.cpp +++ b/dom/asmjscache/AsmJSCache.cpp @@ -1108,7 +1108,7 @@ FindHashMatch(const Metadata& aMetadata, const ReadParams& aReadParams, // A runnable that executes for a cache access originating in the main process. class SingleProcessRunnable final : public File, - private MainProcessRunnable + private MainProcessRunnable { public: // In the single-process case, the calling JS compilation thread holds the @@ -1186,7 +1186,7 @@ class SingleProcessRunnable final : public File, // in the content process. This runnable gets registered as an IPDL subprotocol // actor so that it can communicate with the corresponding ChildProcessRunnable. class ParentProcessRunnable final : public PAsmJSCacheEntryParent, - public MainProcessRunnable + public MainProcessRunnable { public: // The given principal comes from an IPC::Principal which will be dec-refed @@ -1357,7 +1357,7 @@ DeallocEntryParent(PAsmJSCacheEntryParent* aActor) namespace { class ChildProcessRunnable final : public File, - public PAsmJSCacheEntryChild + public PAsmJSCacheEntryChild { public: NS_DECL_NSIRUNNABLE diff --git a/dom/base/Attr.h b/dom/base/Attr.h index 3716c4ba66e6..6b36e51aca73 100644 --- a/dom/base/Attr.h +++ b/dom/base/Attr.h @@ -29,7 +29,7 @@ namespace dom { // Attribute helper class used to wrap up an attribute with a dom // object that implements nsIDOMAttr and nsIDOMNode class Attr final : public nsIAttribute, - public nsIDOMAttr + public nsIDOMAttr { virtual ~Attr() {} diff --git a/dom/base/Comment.h b/dom/base/Comment.h index 572169704cd6..d13fc1d00baa 100644 --- a/dom/base/Comment.h +++ b/dom/base/Comment.h @@ -14,7 +14,7 @@ namespace mozilla { namespace dom { class Comment final : public nsGenericDOMDataNode, - public nsIDOMComment + public nsIDOMComment { private: void Init() diff --git a/dom/base/Console.h b/dom/base/Console.h index 67ca8ff35956..0c0a356382b2 100644 --- a/dom/base/Console.h +++ b/dom/base/Console.h @@ -26,7 +26,7 @@ class ConsoleCallData; struct ConsoleStackEntry; class Console final : public nsIObserver - , public nsWrapperCache + , public nsWrapperCache { ~Console(); diff --git a/dom/base/DOMImplementation.h b/dom/base/DOMImplementation.h index 4cbf44fa27ec..8b2a19143939 100644 --- a/dom/base/DOMImplementation.h +++ b/dom/base/DOMImplementation.h @@ -25,7 +25,7 @@ namespace dom { class DocumentType; class DOMImplementation final : public nsIDOMDOMImplementation - , public nsWrapperCache + , public nsWrapperCache { ~DOMImplementation() { diff --git a/dom/base/DOMParser.h b/dom/base/DOMParser.h index 9ee16934c6ce..b4adeffefecf 100644 --- a/dom/base/DOMParser.h +++ b/dom/base/DOMParser.h @@ -21,8 +21,8 @@ namespace mozilla { namespace dom { class DOMParser final : public nsIDOMParser, - public nsSupportsWeakReference, - public nsWrapperCache + public nsSupportsWeakReference, + public nsWrapperCache { typedef mozilla::dom::GlobalObject GlobalObject; diff --git a/dom/base/DOMRect.h b/dom/base/DOMRect.h index fb7dfaeff1ee..d0e94e54a12a 100644 --- a/dom/base/DOMRect.h +++ b/dom/base/DOMRect.h @@ -76,7 +76,7 @@ class DOMRectReadOnly : public nsISupports }; class DOMRect final : public DOMRectReadOnly - , public nsIDOMClientRect + , public nsIDOMClientRect { public: explicit DOMRect(nsISupports* aParent, double aX = 0, double aY = 0, @@ -147,7 +147,7 @@ class DOMRect final : public DOMRectReadOnly }; class DOMRectList final : public nsIDOMClientRectList, - public nsWrapperCache + public nsWrapperCache { ~DOMRectList() {} diff --git a/dom/base/Element.h b/dom/base/Element.h index 8044541db0ce..100243f496e1 100644 --- a/dom/base/Element.h +++ b/dom/base/Element.h @@ -1467,45 +1467,44 @@ _elementName::Clone(mozilla::dom::NodeInfo *aNodeInfo, nsINode **aResult) const #define NS_FORWARD_NSIDOMELEMENT_TO_GENERIC \ typedef mozilla::dom::Element Element; \ -NS_IMETHOD GetTagName(nsAString& aTagName) final override \ +NS_IMETHOD GetTagName(nsAString& aTagName) final override \ { \ Element::GetTagName(aTagName); \ return NS_OK; \ } \ -NS_IMETHOD GetId(nsAString& aId) final override \ +NS_IMETHOD GetId(nsAString& aId) final override \ { \ Element::GetId(aId); \ return NS_OK; \ } \ -NS_IMETHOD SetId(const nsAString& aId) final override \ +NS_IMETHOD SetId(const nsAString& aId) final override \ { \ Element::SetId(aId); \ return NS_OK; \ } \ -NS_IMETHOD GetClassName(nsAString& aClassName) final override \ +NS_IMETHOD GetClassName(nsAString& aClassName) final override \ { \ Element::GetClassName(aClassName); \ return NS_OK; \ } \ -NS_IMETHOD SetClassName(const nsAString& aClassName) final override \ +NS_IMETHOD SetClassName(const nsAString& aClassName) final override \ { \ Element::SetClassName(aClassName); \ return NS_OK; \ } \ -NS_IMETHOD GetClassList(nsISupports** aClassList) final override \ +NS_IMETHOD GetClassList(nsISupports** aClassList) final override \ { \ Element::GetClassList(aClassList); \ return NS_OK; \ } \ -NS_IMETHOD GetAttributes(nsIDOMMozNamedAttrMap** aAttributes) final \ - override \ +NS_IMETHOD GetAttributes(nsIDOMMozNamedAttrMap** aAttributes) final override \ { \ NS_ADDREF(*aAttributes = Attributes()); \ return NS_OK; \ } \ using Element::GetAttribute; \ -NS_IMETHOD GetAttribute(const nsAString& name, nsAString& _retval) final \ - override \ +NS_IMETHOD GetAttribute(const nsAString& name, nsAString& _retval) final \ + override \ { \ nsString attr; \ GetAttribute(name, attr); \ @@ -1514,13 +1513,13 @@ NS_IMETHOD GetAttribute(const nsAString& name, nsAString& _retval) final \ } \ NS_IMETHOD GetAttributeNS(const nsAString& namespaceURI, \ const nsAString& localName, \ - nsAString& _retval) final override \ + nsAString& _retval) final override \ { \ Element::GetAttributeNS(namespaceURI, localName, _retval); \ return NS_OK; \ } \ NS_IMETHOD SetAttribute(const nsAString& name, \ - const nsAString& value) override \ + const nsAString& value) override \ { \ mozilla::ErrorResult rv; \ Element::SetAttribute(name, value, rv); \ @@ -1528,22 +1527,21 @@ NS_IMETHOD SetAttribute(const nsAString& name, \ } \ NS_IMETHOD SetAttributeNS(const nsAString& namespaceURI, \ const nsAString& qualifiedName, \ - const nsAString& value) final override \ + const nsAString& value) final override \ { \ mozilla::ErrorResult rv; \ Element::SetAttributeNS(namespaceURI, qualifiedName, value, rv); \ return rv.ErrorCode(); \ } \ using Element::RemoveAttribute; \ -NS_IMETHOD RemoveAttribute(const nsAString& name) final override \ +NS_IMETHOD RemoveAttribute(const nsAString& name) final override \ { \ mozilla::ErrorResult rv; \ RemoveAttribute(name, rv); \ return rv.ErrorCode(); \ } \ NS_IMETHOD RemoveAttributeNS(const nsAString& namespaceURI, \ - const nsAString& localName) final \ - override \ + const nsAString& localName) final override \ { \ mozilla::ErrorResult rv; \ Element::RemoveAttributeNS(namespaceURI, localName, rv); \ @@ -1551,31 +1549,31 @@ NS_IMETHOD RemoveAttributeNS(const nsAString& namespaceURI, \ } \ using Element::HasAttribute; \ NS_IMETHOD HasAttribute(const nsAString& name, \ - bool* _retval) final override \ + bool* _retval) final override \ { \ *_retval = HasAttribute(name); \ return NS_OK; \ } \ NS_IMETHOD HasAttributeNS(const nsAString& namespaceURI, \ const nsAString& localName, \ - bool* _retval) final override \ + bool* _retval) final override \ { \ *_retval = Element::HasAttributeNS(namespaceURI, localName); \ return NS_OK; \ } \ -NS_IMETHOD HasAttributes(bool* _retval) final override \ +NS_IMETHOD HasAttributes(bool* _retval) final override \ { \ *_retval = Element::HasAttributes(); \ return NS_OK; \ } \ NS_IMETHOD GetAttributeNode(const nsAString& name, \ - nsIDOMAttr** _retval) final override \ + nsIDOMAttr** _retval) final override \ { \ NS_IF_ADDREF(*_retval = Element::GetAttributeNode(name)); \ return NS_OK; \ } \ NS_IMETHOD SetAttributeNode(nsIDOMAttr* newAttr, \ - nsIDOMAttr** _retval) final override \ + nsIDOMAttr** _retval) final override \ { \ if (!newAttr) { \ return NS_ERROR_INVALID_POINTER; \ @@ -1586,7 +1584,7 @@ NS_IMETHOD SetAttributeNode(nsIDOMAttr* newAttr, \ return rv.ErrorCode(); \ } \ NS_IMETHOD RemoveAttributeNode(nsIDOMAttr* oldAttr, \ - nsIDOMAttr** _retval) final override \ + nsIDOMAttr** _retval) final override \ { \ if (!oldAttr) { \ return NS_ERROR_INVALID_POINTER; \ @@ -1598,14 +1596,14 @@ NS_IMETHOD RemoveAttributeNode(nsIDOMAttr* oldAttr, \ } \ NS_IMETHOD GetAttributeNodeNS(const nsAString& namespaceURI, \ const nsAString& localName, \ - nsIDOMAttr** _retval) final override \ + nsIDOMAttr** _retval) final override \ { \ NS_IF_ADDREF(*_retval = Element::GetAttributeNodeNS(namespaceURI, \ localName)); \ return NS_OK; \ } \ NS_IMETHOD SetAttributeNodeNS(nsIDOMAttr* newAttr, \ - nsIDOMAttr** _retval) final override \ + nsIDOMAttr** _retval) final override \ { \ mozilla::ErrorResult rv; \ mozilla::dom::Attr* attr = static_cast(newAttr); \ @@ -1613,34 +1611,33 @@ NS_IMETHOD SetAttributeNodeNS(nsIDOMAttr* newAttr, \ return rv.ErrorCode(); \ } \ NS_IMETHOD GetElementsByTagName(const nsAString& name, \ - nsIDOMHTMLCollection** _retval) final \ - override \ + nsIDOMHTMLCollection** _retval) final \ + override \ { \ Element::GetElementsByTagName(name, _retval); \ return NS_OK; \ } \ NS_IMETHOD GetElementsByTagNameNS(const nsAString& namespaceURI, \ const nsAString& localName, \ - nsIDOMHTMLCollection** _retval) final \ - override\ + nsIDOMHTMLCollection** _retval) final \ + override \ { \ return Element::GetElementsByTagNameNS(namespaceURI, localName, \ _retval); \ } \ NS_IMETHOD GetElementsByClassName(const nsAString& classes, \ - nsIDOMHTMLCollection** _retval) final \ - override\ + nsIDOMHTMLCollection** _retval) final \ + override \ { \ return Element::GetElementsByClassName(classes, _retval); \ } \ -NS_IMETHOD GetChildElements(nsIDOMNodeList** aChildElements) final \ - override \ +NS_IMETHOD GetChildElements(nsIDOMNodeList** aChildElements) final override \ { \ nsIHTMLCollection* list = FragmentOrElement::Children(); \ return CallQueryInterface(list, aChildElements); \ } \ -NS_IMETHOD GetFirstElementChild(nsIDOMElement** aFirstElementChild) final \ - override \ +NS_IMETHOD GetFirstElementChild(nsIDOMElement** aFirstElementChild) final \ + override \ { \ Element* element = Element::GetFirstElementChild(); \ if (!element) { \ @@ -1649,8 +1646,8 @@ NS_IMETHOD GetFirstElementChild(nsIDOMElement** aFirstElementChild) final \ } \ return CallQueryInterface(element, aFirstElementChild); \ } \ -NS_IMETHOD GetLastElementChild(nsIDOMElement** aLastElementChild) final \ - override \ +NS_IMETHOD GetLastElementChild(nsIDOMElement** aLastElementChild) final \ + override \ { \ Element* element = Element::GetLastElementChild(); \ if (!element) { \ @@ -1660,7 +1657,7 @@ NS_IMETHOD GetLastElementChild(nsIDOMElement** aLastElementChild) final \ return CallQueryInterface(element, aLastElementChild); \ } \ NS_IMETHOD GetPreviousElementSibling(nsIDOMElement** aPreviousElementSibling) \ - final override \ + final override \ { \ Element* element = Element::GetPreviousElementSibling(); \ if (!element) { \ @@ -1670,7 +1667,7 @@ NS_IMETHOD GetPreviousElementSibling(nsIDOMElement** aPreviousElementSibling) \ return CallQueryInterface(element, aPreviousElementSibling); \ } \ NS_IMETHOD GetNextElementSibling(nsIDOMElement** aNextElementSibling) \ - final override \ + final override \ { \ Element* element = Element::GetNextElementSibling(); \ if (!element) { \ @@ -1679,126 +1676,123 @@ NS_IMETHOD GetNextElementSibling(nsIDOMElement** aNextElementSibling) \ } \ return CallQueryInterface(element, aNextElementSibling); \ } \ -NS_IMETHOD GetChildElementCount(uint32_t* aChildElementCount) final \ - override \ +NS_IMETHOD GetChildElementCount(uint32_t* aChildElementCount) final override \ { \ *aChildElementCount = Element::ChildElementCount(); \ return NS_OK; \ } \ -NS_IMETHOD MozRemove() final override \ +NS_IMETHOD MozRemove() final override \ { \ nsINode::Remove(); \ return NS_OK; \ } \ -NS_IMETHOD GetClientRects(nsIDOMClientRectList** _retval) final \ - override \ +NS_IMETHOD GetClientRects(nsIDOMClientRectList** _retval) final override \ { \ *_retval = Element::GetClientRects().take(); \ return NS_OK; \ } \ -NS_IMETHOD GetBoundingClientRect(nsIDOMClientRect** _retval) final \ - override \ +NS_IMETHOD GetBoundingClientRect(nsIDOMClientRect** _retval) final override \ { \ *_retval = Element::GetBoundingClientRect().take(); \ return NS_OK; \ } \ -NS_IMETHOD GetScrollTop(int32_t* aScrollTop) final override \ +NS_IMETHOD GetScrollTop(int32_t* aScrollTop) final override \ { \ *aScrollTop = Element::ScrollTop(); \ return NS_OK; \ } \ -NS_IMETHOD SetScrollTop(int32_t aScrollTop) final override \ +NS_IMETHOD SetScrollTop(int32_t aScrollTop) final override \ { \ Element::SetScrollTop(aScrollTop); \ return NS_OK; \ } \ -NS_IMETHOD GetScrollLeft(int32_t* aScrollLeft) final override \ +NS_IMETHOD GetScrollLeft(int32_t* aScrollLeft) final override \ { \ *aScrollLeft = Element::ScrollLeft(); \ return NS_OK; \ } \ -NS_IMETHOD SetScrollLeft(int32_t aScrollLeft) final override \ +NS_IMETHOD SetScrollLeft(int32_t aScrollLeft) final override \ { \ Element::SetScrollLeft(aScrollLeft); \ return NS_OK; \ } \ -NS_IMETHOD GetScrollWidth(int32_t* aScrollWidth) final override \ +NS_IMETHOD GetScrollWidth(int32_t* aScrollWidth) final override \ { \ *aScrollWidth = Element::ScrollWidth(); \ return NS_OK; \ } \ -NS_IMETHOD GetScrollHeight(int32_t* aScrollHeight) final override \ +NS_IMETHOD GetScrollHeight(int32_t* aScrollHeight) final override \ { \ *aScrollHeight = Element::ScrollHeight(); \ return NS_OK; \ } \ -NS_IMETHOD GetClientTop(int32_t* aClientTop) final override \ +NS_IMETHOD GetClientTop(int32_t* aClientTop) final override \ { \ *aClientTop = Element::ClientTop(); \ return NS_OK; \ } \ -NS_IMETHOD GetClientLeft(int32_t* aClientLeft) final override \ +NS_IMETHOD GetClientLeft(int32_t* aClientLeft) final override \ { \ *aClientLeft = Element::ClientLeft(); \ return NS_OK; \ } \ -NS_IMETHOD GetClientWidth(int32_t* aClientWidth) final override \ +NS_IMETHOD GetClientWidth(int32_t* aClientWidth) final override \ { \ *aClientWidth = Element::ClientWidth(); \ return NS_OK; \ } \ -NS_IMETHOD GetClientHeight(int32_t* aClientHeight) final override \ +NS_IMETHOD GetClientHeight(int32_t* aClientHeight) final override \ { \ *aClientHeight = Element::ClientHeight(); \ return NS_OK; \ } \ -NS_IMETHOD GetScrollLeftMax(int32_t* aScrollLeftMax) final override \ +NS_IMETHOD GetScrollLeftMax(int32_t* aScrollLeftMax) final override \ { \ *aScrollLeftMax = Element::ScrollLeftMax(); \ return NS_OK; \ } \ -NS_IMETHOD GetScrollTopMax(int32_t* aScrollTopMax) final override \ +NS_IMETHOD GetScrollTopMax(int32_t* aScrollTopMax) final override \ { \ *aScrollTopMax = Element::ScrollTopMax(); \ return NS_OK; \ } \ NS_IMETHOD MozMatchesSelector(const nsAString& selector, \ - bool* _retval) final override \ + bool* _retval) final override \ { \ mozilla::ErrorResult rv; \ *_retval = Element::MozMatchesSelector(selector, rv); \ return rv.ErrorCode(); \ } \ -NS_IMETHOD SetCapture(bool retargetToElement) final override \ +NS_IMETHOD SetCapture(bool retargetToElement) final override \ { \ Element::SetCapture(retargetToElement); \ return NS_OK; \ } \ -NS_IMETHOD ReleaseCapture(void) final override \ +NS_IMETHOD ReleaseCapture(void) final override \ { \ Element::ReleaseCapture(); \ return NS_OK; \ } \ -NS_IMETHOD MozRequestFullScreen(void) final override \ +NS_IMETHOD MozRequestFullScreen(void) final override \ { \ mozilla::ErrorResult rv; \ Element::MozRequestFullScreen(nullptr, JS::UndefinedHandleValue, rv); \ return rv.ErrorCode(); \ } \ -NS_IMETHOD MozRequestPointerLock(void) final override \ +NS_IMETHOD MozRequestPointerLock(void) final override \ { \ Element::MozRequestPointerLock(); \ return NS_OK; \ } \ using nsINode::QuerySelector; \ NS_IMETHOD QuerySelector(const nsAString& aSelector, \ - nsIDOMElement **aReturn) final override \ + nsIDOMElement **aReturn) final override \ { \ return nsINode::QuerySelector(aSelector, aReturn); \ } \ using nsINode::QuerySelectorAll; \ NS_IMETHOD QuerySelectorAll(const nsAString& aSelector, \ - nsIDOMNodeList **aReturn) final override \ + nsIDOMNodeList **aReturn) final override \ { \ return nsINode::QuerySelectorAll(aSelector, aReturn); \ } diff --git a/dom/base/EventSource.h b/dom/base/EventSource.h index 7086b9f3f203..6815b85f81ab 100644 --- a/dom/base/EventSource.h +++ b/dom/base/EventSource.h @@ -37,11 +37,11 @@ class AsyncVerifyRedirectCallbackFwr; struct EventSourceInit; class EventSource final : public DOMEventTargetHelper - , public nsIObserver - , public nsIStreamListener - , public nsIChannelEventSink - , public nsIInterfaceRequestor - , public nsSupportsWeakReference + , public nsIObserver + , public nsIStreamListener + , public nsIChannelEventSink + , public nsIInterfaceRequestor + , public nsSupportsWeakReference { friend class AsyncVerifyRedirectCallbackFwr; diff --git a/dom/base/File.cpp b/dom/base/File.cpp index 6dfaf680a8e6..dfd05f746c38 100644 --- a/dom/base/File.cpp +++ b/dom/base/File.cpp @@ -52,8 +52,8 @@ namespace dom { // from NS_NewByteInputStream is held alive as long as the // stream is. We do that by passing back this class instead. class DataOwnerAdapter final : public nsIInputStream, - public nsISeekableStream, - public nsIIPCSerializableInputStream + public nsISeekableStream, + public nsIIPCSerializableInputStream { typedef FileImplMemory::DataOwner DataOwner; public: diff --git a/dom/base/File.h b/dom/base/File.h index c8d4ac7ae23e..ad704a007c20 100644 --- a/dom/base/File.h +++ b/dom/base/File.h @@ -52,10 +52,10 @@ class FileImpl; class OwningArrayBufferOrArrayBufferViewOrBlobOrString; class File final : public nsIDOMFile - , public nsIXHRSendable - , public nsIMutable - , public nsSupportsWeakReference - , public nsWrapperCache + , public nsIXHRSendable + , public nsIMutable + , public nsSupportsWeakReference + , public nsWrapperCache { public: NS_DECL_NSIDOMBLOB @@ -524,7 +524,8 @@ class FileImplMemory final : public FileImplBase return true; } - class DataOwner final : public mozilla::LinkedListElement { + class DataOwner final : public mozilla::LinkedListElement + { public: NS_INLINE_DECL_THREADSAFE_REFCOUNTING(DataOwner) DataOwner(void* aMemoryBuffer, uint64_t aLength) @@ -814,7 +815,7 @@ class FileImplFile : public FileImplBase }; class FileList final : public nsIDOMFileList, - public nsWrapperCache + public nsWrapperCache { ~FileList() {} diff --git a/dom/base/ImportManager.h b/dom/base/ImportManager.h index d63d7c84940c..8d1aa77c3429 100644 --- a/dom/base/ImportManager.h +++ b/dom/base/ImportManager.h @@ -62,7 +62,7 @@ class ImportManager; typedef nsTHashtable> NodeTable; class ImportLoader final : public nsIStreamListener - , public nsIDOMEventListener + , public nsIDOMEventListener { // A helper inner class to decouple the logic of updating the import graph diff --git a/dom/base/MessageChannel.h b/dom/base/MessageChannel.h index 87b28832a619..d9b1fb52f599 100644 --- a/dom/base/MessageChannel.h +++ b/dom/base/MessageChannel.h @@ -22,7 +22,7 @@ namespace dom { class MessagePort; class MessageChannel final : public nsISupports - , public nsWrapperCache + , public nsWrapperCache { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/dom/base/MessagePortList.h b/dom/base/MessagePortList.h index 5b62bf72fac9..b6f09ced68b7 100644 --- a/dom/base/MessagePortList.h +++ b/dom/base/MessagePortList.h @@ -19,7 +19,7 @@ namespace mozilla { namespace dom { class MessagePortList final : public nsISupports - , public nsWrapperCache + , public nsWrapperCache { ~MessagePortList() {} diff --git a/dom/base/Navigator.h b/dom/base/Navigator.h index fe99c242b58d..ea37e2140df7 100644 --- a/dom/base/Navigator.h +++ b/dom/base/Navigator.h @@ -109,8 +109,8 @@ class AudioChannelManager; } // namespace system class Navigator final : public nsIDOMNavigator - , public nsIMozNavigatorNetwork - , public nsWrapperCache + , public nsIMozNavigatorNetwork + , public nsWrapperCache { public: explicit Navigator(nsPIDOMWindow* aInnerWindow); diff --git a/dom/base/NodeIterator.h b/dom/base/NodeIterator.h index 54d89f2fc173..a3313df74e80 100644 --- a/dom/base/NodeIterator.h +++ b/dom/base/NodeIterator.h @@ -23,8 +23,8 @@ namespace mozilla { namespace dom { class NodeIterator final : public nsIDOMNodeIterator, - public nsTraversal, - public nsStubMutationObserver + public nsTraversal, + public nsStubMutationObserver { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/dom/base/SubtleCrypto.h b/dom/base/SubtleCrypto.h index 9712e740aefd..eb530496aa92 100644 --- a/dom/base/SubtleCrypto.h +++ b/dom/base/SubtleCrypto.h @@ -22,7 +22,7 @@ class Promise; typedef ArrayBufferViewOrArrayBuffer CryptoOperationData; class SubtleCrypto final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { ~SubtleCrypto() {} diff --git a/dom/base/TextInputProcessor.h b/dom/base/TextInputProcessor.h index 401605320881..e8e7336b1cd4 100644 --- a/dom/base/TextInputProcessor.h +++ b/dom/base/TextInputProcessor.h @@ -21,7 +21,7 @@ class TextEventDispatcher; } // namespace widget class TextInputProcessor final : public nsITextInputProcessor - , public widget::TextEventDispatcherListener + , public widget::TextEventDispatcherListener { typedef mozilla::widget::IMENotification IMENotification; typedef mozilla::widget::TextEventDispatcher TextEventDispatcher; diff --git a/dom/base/URLSearchParams.h b/dom/base/URLSearchParams.h index 86ac459008d2..173628fb58ce 100644 --- a/dom/base/URLSearchParams.h +++ b/dom/base/URLSearchParams.h @@ -27,7 +27,7 @@ class URLSearchParamsObserver : public nsISupports }; class URLSearchParams final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { ~URLSearchParams(); diff --git a/dom/base/WebSocket.cpp b/dom/base/WebSocket.cpp index e03e15ef6c5f..3c98128121cc 100644 --- a/dom/base/WebSocket.cpp +++ b/dom/base/WebSocket.cpp @@ -62,11 +62,11 @@ namespace mozilla { namespace dom { class WebSocketImpl final : public nsIInterfaceRequestor - , public nsIWebSocketListener - , public nsIObserver - , public nsSupportsWeakReference - , public nsIRequest - , public nsIEventTarget + , public nsIWebSocketListener + , public nsIObserver + , public nsSupportsWeakReference + , public nsIRequest + , public nsIEventTarget { public: NS_DECL_NSIINTERFACEREQUESTOR diff --git a/dom/base/nsContentPermissionHelper.h b/dom/base/nsContentPermissionHelper.h index f51d706c6106..e3368e836ddc 100644 --- a/dom/base/nsContentPermissionHelper.h +++ b/dom/base/nsContentPermissionHelper.h @@ -107,7 +107,7 @@ class nsContentPermissionRequestProxy : public nsIContentPermissionRequest * RemotePermissionRequest will send a prompt ipdl request to b2g process. */ class RemotePermissionRequest final : public nsISupports - , public mozilla::dom::PContentPermissionRequestChild + , public mozilla::dom::PContentPermissionRequestChild { public: NS_DECL_ISUPPORTS diff --git a/dom/base/nsContentUtils.cpp b/dom/base/nsContentUtils.cpp index 5754db9a443e..6604b747ea64 100644 --- a/dom/base/nsContentUtils.cpp +++ b/dom/base/nsContentUtils.cpp @@ -399,7 +399,7 @@ EventListenerManagerHashClearEntry(PLDHashTable *table, PLDHashEntryHdr *entry) } class SameOriginCheckerImpl final : public nsIChannelEventSink, - public nsIInterfaceRequestor + public nsIInterfaceRequestor { ~SameOriginCheckerImpl() {} diff --git a/dom/base/nsDOMMutationObserver.h b/dom/base/nsDOMMutationObserver.h index 47762d434c7b..76d509365d70 100644 --- a/dom/base/nsDOMMutationObserver.h +++ b/dom/base/nsDOMMutationObserver.h @@ -31,7 +31,7 @@ class nsDOMMutationObserver; using mozilla::dom::MutationObservingInfo; class nsDOMMutationRecord final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { virtual ~nsDOMMutationRecord() {} @@ -443,7 +443,7 @@ class nsAnimationReceiver : public nsMutationReceiver { 0x9e, 0xab, 0x07, 0x47, 0xa9, 0xe4, 0x65, 0xb4 } } class nsDOMMutationObserver final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { public: nsDOMMutationObserver(already_AddRefed&& aOwner, diff --git a/dom/base/nsDOMScriptObjectFactory.h b/dom/base/nsDOMScriptObjectFactory.h index 0ef6ead0f9c2..03263da0a0eb 100644 --- a/dom/base/nsDOMScriptObjectFactory.h +++ b/dom/base/nsDOMScriptObjectFactory.h @@ -23,7 +23,7 @@ #include "mozilla/Attributes.h" class nsDOMScriptObjectFactory final : public nsIDOMScriptObjectFactory, - public nsIObserver + public nsIObserver { ~nsDOMScriptObjectFactory() {} diff --git a/dom/base/nsDOMSerializer.h b/dom/base/nsDOMSerializer.h index 1560998ed905..27accd6ecb79 100644 --- a/dom/base/nsDOMSerializer.h +++ b/dom/base/nsDOMSerializer.h @@ -15,7 +15,7 @@ class nsINode; class nsDOMSerializer final : public nsIDOMSerializer, - public nsWrapperCache + public nsWrapperCache { public: nsDOMSerializer(); diff --git a/dom/base/nsDOMWindowUtils.h b/dom/base/nsDOMWindowUtils.h index e3b351e73d8c..aa13a3bd4c0f 100644 --- a/dom/base/nsDOMWindowUtils.h +++ b/dom/base/nsDOMWindowUtils.h @@ -55,7 +55,7 @@ class nsTranslationNodeList final : public nsITranslationNodeList }; class nsDOMWindowUtils final : public nsIDOMWindowUtils, - public nsSupportsWeakReference + public nsSupportsWeakReference { typedef mozilla::widget::TextEventDispatcher TextEventDispatcher; diff --git a/dom/base/nsDocument.h b/dom/base/nsDocument.h index cc048458bb65..1b1bf79ee6a6 100644 --- a/dom/base/nsDocument.h +++ b/dom/base/nsDocument.h @@ -597,8 +597,8 @@ class nsExternalResourceMap // XXXbz I wish we could just derive the _allcaps thing from _i #define DECL_SHIM(_i, _allcaps) \ - class _i##Shim final : public nsIInterfaceRequestor, \ - public _i \ + class _i##Shim final : public nsIInterfaceRequestor, \ + public _i \ { \ ~_i##Shim() {} \ public: \ diff --git a/dom/base/nsFocusManager.h b/dom/base/nsFocusManager.h index 5c2b433643a9..b93571d52088 100644 --- a/dom/base/nsFocusManager.h +++ b/dom/base/nsFocusManager.h @@ -32,8 +32,8 @@ struct nsDelayedBlurOrFocusEvent; */ class nsFocusManager final : public nsIFocusManager, - public nsIObserver, - public nsSupportsWeakReference + public nsIObserver, + public nsSupportsWeakReference { typedef mozilla::widget::InputContextAction InputContextAction; diff --git a/dom/base/nsFormData.h b/dom/base/nsFormData.h index 59671337f4e0..f830994a234b 100644 --- a/dom/base/nsFormData.h +++ b/dom/base/nsFormData.h @@ -26,9 +26,9 @@ class GlobalObject; } // namespace mozilla class nsFormData final : public nsIDOMFormData, - public nsIXHRSendable, - public nsFormSubmission, - public nsWrapperCache + public nsIXHRSendable, + public nsFormSubmission, + public nsWrapperCache { private: ~nsFormData() {} diff --git a/dom/base/nsFrameLoader.h b/dom/base/nsFrameLoader.h index 326d725dd151..b2ba049a0b3f 100644 --- a/dom/base/nsFrameLoader.h +++ b/dom/base/nsFrameLoader.h @@ -55,8 +55,8 @@ class QX11EmbedContainer; #endif class nsFrameLoader final : public nsIFrameLoader, - public nsStubMutationObserver, - public mozilla::dom::ipc::MessageManagerCallback + public nsStubMutationObserver, + public mozilla::dom::ipc::MessageManagerCallback { friend class AutoResetInShow; typedef mozilla::dom::PBrowserParent PBrowserParent; diff --git a/dom/base/nsFrameMessageManager.h b/dom/base/nsFrameMessageManager.h index 0a74f820ba56..bdd1fa8e1590 100644 --- a/dom/base/nsFrameMessageManager.h +++ b/dom/base/nsFrameMessageManager.h @@ -153,10 +153,10 @@ class MOZ_STACK_CLASS SameProcessCpowHolder : public mozilla::jsipc::CpowHolder }; class nsFrameMessageManager final : public nsIContentFrameMessageManager, - public nsIMessageBroadcaster, - public nsIFrameScriptLoader, - public nsIProcessScriptLoader, - public nsIProcessChecker + public nsIMessageBroadcaster, + public nsIFrameScriptLoader, + public nsIProcessScriptLoader, + public nsIProcessChecker { friend class mozilla::dom::MessageManagerReporter; typedef mozilla::dom::StructuredCloneData StructuredCloneData; diff --git a/dom/base/nsGenConImageContent.cpp b/dom/base/nsGenConImageContent.cpp index 3f6ddd3e39d8..8a49a9d0e9cf 100644 --- a/dom/base/nsGenConImageContent.cpp +++ b/dom/base/nsGenConImageContent.cpp @@ -21,7 +21,7 @@ using namespace mozilla; class nsGenConImageContent final : public nsXMLElement, - public nsImageLoadingContent + public nsImageLoadingContent { public: explicit nsGenConImageContent(already_AddRefed& aNodeInfo) diff --git a/dom/base/nsGlobalWindow.cpp b/dom/base/nsGlobalWindow.cpp index 2a11fb4df91c..6d2694fa9f3e 100644 --- a/dom/base/nsGlobalWindow.cpp +++ b/dom/base/nsGlobalWindow.cpp @@ -477,7 +477,7 @@ static const char sPopStatePrefStr[] = "browser.history.allowPopState"; * on nsGlobalWindow, where any script could see it. */ class nsGlobalWindowObserver final : public nsIObserver, - public nsIInterfaceRequestor + public nsIInterfaceRequestor { public: explicit nsGlobalWindowObserver(nsGlobalWindow* aWindow) : mWindow(aWindow) {} diff --git a/dom/base/nsLocation.h b/dom/base/nsLocation.h index 2db8315e4ecc..ea420e356a7a 100644 --- a/dom/base/nsLocation.h +++ b/dom/base/nsLocation.h @@ -26,8 +26,8 @@ class nsIDocShellLoadInfo; //***************************************************************************** class nsLocation final : public nsIDOMLocation - , public nsWrapperCache - , public mozilla::dom::URLSearchParamsObserver + , public nsWrapperCache + , public mozilla::dom::URLSearchParamsObserver { typedef mozilla::ErrorResult ErrorResult; diff --git a/dom/base/nsMimeTypeArray.h b/dom/base/nsMimeTypeArray.h index ee6631a532fd..d4a8f5618b3c 100644 --- a/dom/base/nsMimeTypeArray.h +++ b/dom/base/nsMimeTypeArray.h @@ -17,7 +17,7 @@ class nsMimeType; class nsPluginElement; class nsMimeTypeArray final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { public: explicit nsMimeTypeArray(nsPIDOMWindow* aWindow); diff --git a/dom/base/nsObjectLoadingContent.cpp b/dom/base/nsObjectLoadingContent.cpp index a85be30e81a2..578de9884a2e 100644 --- a/dom/base/nsObjectLoadingContent.cpp +++ b/dom/base/nsObjectLoadingContent.cpp @@ -1293,8 +1293,8 @@ nsObjectLoadingContent::GetBaseURI(nsIURI **aResult) // see an interface requestor even though WebIDL bindings don't expose // that stuff. class ObjectInterfaceRequestorShim final : public nsIInterfaceRequestor, - public nsIChannelEventSink, - public nsIStreamListener + public nsIChannelEventSink, + public nsIStreamListener { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/dom/base/nsPluginArray.h b/dom/base/nsPluginArray.h index e9b5eb8a7798..dc82f4f951d5 100644 --- a/dom/base/nsPluginArray.h +++ b/dom/base/nsPluginArray.h @@ -18,8 +18,8 @@ class nsPluginElement; class nsMimeType; class nsPluginArray final : public nsIObserver, - public nsSupportsWeakReference, - public nsWrapperCache + public nsSupportsWeakReference, + public nsWrapperCache { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS @@ -76,7 +76,7 @@ class nsPluginArray final : public nsIObserver, }; class nsPluginElement final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/dom/base/nsRange.h b/dom/base/nsRange.h index 2438c21e550c..b5330a0aa125 100644 --- a/dom/base/nsRange.h +++ b/dom/base/nsRange.h @@ -31,8 +31,8 @@ class DOMRectList; } class nsRange final : public nsIDOMRange, - public nsStubMutationObserver, - public nsWrapperCache + public nsStubMutationObserver, + public nsWrapperCache { typedef mozilla::ErrorResult ErrorResult; typedef mozilla::dom::DOMRect DOMRect; diff --git a/dom/base/nsTextNode.cpp b/dom/base/nsTextNode.cpp index 7e5a7e96bfe1..75d32da204f6 100644 --- a/dom/base/nsTextNode.cpp +++ b/dom/base/nsTextNode.cpp @@ -28,7 +28,7 @@ using namespace mozilla::dom; * class used to implement attr() generated content */ class nsAttributeTextNode final : public nsTextNode, - public nsStubMutationObserver + public nsStubMutationObserver { public: NS_DECL_ISUPPORTS_INHERITED diff --git a/dom/base/nsWindowMemoryReporter.h b/dom/base/nsWindowMemoryReporter.h index 59e8e242b13f..7d76ab927d29 100644 --- a/dom/base/nsWindowMemoryReporter.h +++ b/dom/base/nsWindowMemoryReporter.h @@ -140,8 +140,8 @@ class nsWindowSizes { * */ class nsWindowMemoryReporter final : public nsIMemoryReporter, - public nsIObserver, - public nsSupportsWeakReference + public nsIObserver, + public nsSupportsWeakReference { public: NS_DECL_ISUPPORTS diff --git a/dom/base/nsXMLHttpRequest.h b/dom/base/nsXMLHttpRequest.h index fec3deb958bc..ca37a7c45ac2 100644 --- a/dom/base/nsXMLHttpRequest.h +++ b/dom/base/nsXMLHttpRequest.h @@ -147,7 +147,7 @@ class nsXHREventTarget : public mozilla::DOMEventTargetHelper, }; class nsXMLHttpRequestUpload final : public nsXHREventTarget, - public nsIXMLHttpRequestUpload + public nsIXMLHttpRequestUpload { public: explicit nsXMLHttpRequestUpload(mozilla::DOMEventTargetHelper* aOwner) @@ -180,15 +180,15 @@ class nsXMLHttpRequestXPCOMifier; // Make sure that any non-DOM interfaces added here are also added to // nsXMLHttpRequestXPCOMifier. class nsXMLHttpRequest final : public nsXHREventTarget, - public nsIXMLHttpRequest, - public nsIJSXMLHttpRequest, - public nsIStreamListener, - public nsIChannelEventSink, - public nsIProgressEventSink, - public nsIInterfaceRequestor, - public nsSupportsWeakReference, - public nsITimerCallback, - public nsISizeOfEventTarget + public nsIXMLHttpRequest, + public nsIJSXMLHttpRequest, + public nsIStreamListener, + public nsIChannelEventSink, + public nsIProgressEventSink, + public nsIInterfaceRequestor, + public nsSupportsWeakReference, + public nsITimerCallback, + public nsISizeOfEventTarget { friend class nsXHRParseEndListener; friend class nsXMLHttpRequestXPCOMifier; @@ -634,7 +634,8 @@ class nsXMLHttpRequest final : public nsXHREventTarget, nsCOMPtr mXMLParserStreamListener; // used to implement getAllResponseHeaders() - class nsHeaderVisitor : public nsIHttpHeaderVisitor { + class nsHeaderVisitor : public nsIHttpHeaderVisitor + { public: NS_DECL_ISUPPORTS NS_DECL_NSIHTTPHEADERVISITOR @@ -820,10 +821,10 @@ class MOZ_STACK_CLASS AutoDontWarnAboutSyncXHR // A shim class designed to expose the non-DOM interfaces of // XMLHttpRequest via XPCOM stuff. class nsXMLHttpRequestXPCOMifier final : public nsIStreamListener, - public nsIChannelEventSink, - public nsIProgressEventSink, - public nsIInterfaceRequestor, - public nsITimerCallback + public nsIChannelEventSink, + public nsIProgressEventSink, + public nsIInterfaceRequestor, + public nsITimerCallback { NS_DECL_CYCLE_COLLECTING_ISUPPORTS NS_DECL_CYCLE_COLLECTION_CLASS_AMBIGUOUS(nsXMLHttpRequestXPCOMifier, diff --git a/dom/bluetooth/BluetoothProfileManagerBase.h b/dom/bluetooth/BluetoothProfileManagerBase.h index 1fadfd99962d..517c1cfc3882 100644 --- a/dom/bluetooth/BluetoothProfileManagerBase.h +++ b/dom/bluetooth/BluetoothProfileManagerBase.h @@ -89,17 +89,17 @@ class BluetoothProfileManagerBase : public nsIObserver virtual void GetName(nsACString& aName) = 0; }; -#define BT_DECL_PROFILE_MGR_BASE \ -public: \ - NS_DECL_ISUPPORTS \ - NS_DECL_NSIOBSERVER \ - virtual void OnGetServiceChannel(const nsAString& aDeviceAddress, \ - const nsAString& aServiceUuid, \ +#define BT_DECL_PROFILE_MGR_BASE \ +public: \ + NS_DECL_ISUPPORTS \ + NS_DECL_NSIOBSERVER \ + virtual void OnGetServiceChannel(const nsAString& aDeviceAddress, \ + const nsAString& aServiceUuid, \ int aChannel) override; \ virtual void OnUpdateSdpRecords(const nsAString& aDeviceAddress) override; \ virtual void GetAddress(nsAString& aDeviceAddress) override; \ virtual bool IsConnected() override; \ - virtual void Connect(const nsAString& aDeviceAddress, \ + virtual void Connect(const nsAString& aDeviceAddress, \ BluetoothProfileController* aController) override; \ virtual void Disconnect(BluetoothProfileController* aController) override; \ virtual void OnConnect(const nsAString& aErrorStr) override; \ diff --git a/dom/bluetooth2/BluetoothProfileManagerBase.h b/dom/bluetooth2/BluetoothProfileManagerBase.h index f7db59079626..833af81abf8c 100644 --- a/dom/bluetooth2/BluetoothProfileManagerBase.h +++ b/dom/bluetooth2/BluetoothProfileManagerBase.h @@ -88,17 +88,17 @@ class BluetoothProfileManagerBase : public nsIObserver virtual void GetName(nsACString& aName) = 0; }; -#define BT_DECL_PROFILE_MGR_BASE \ -public: \ - NS_DECL_ISUPPORTS \ - NS_DECL_NSIOBSERVER \ - virtual void OnGetServiceChannel(const nsAString& aDeviceAddress, \ - const nsAString& aServiceUuid, \ +#define BT_DECL_PROFILE_MGR_BASE \ +public: \ + NS_DECL_ISUPPORTS \ + NS_DECL_NSIOBSERVER \ + virtual void OnGetServiceChannel(const nsAString& aDeviceAddress, \ + const nsAString& aServiceUuid, \ int aChannel) override; \ virtual void OnUpdateSdpRecords(const nsAString& aDeviceAddress) override; \ virtual void GetAddress(nsAString& aDeviceAddress) override; \ virtual bool IsConnected() override; \ - virtual void Connect(const nsAString& aDeviceAddress, \ + virtual void Connect(const nsAString& aDeviceAddress, \ BluetoothProfileController* aController) override; \ virtual void Disconnect(BluetoothProfileController* aController) override; \ virtual void OnConnect(const nsAString& aErrorStr) override; \ diff --git a/dom/camera/DOMCameraCapabilities.h b/dom/camera/DOMCameraCapabilities.h index 499caff358b0..8195a84047a0 100644 --- a/dom/camera/DOMCameraCapabilities.h +++ b/dom/camera/DOMCameraCapabilities.h @@ -30,7 +30,7 @@ namespace dom { * CameraRecorderVideoProfile */ class CameraRecorderVideoProfile final : public nsISupports - , public nsWrapperCache + , public nsWrapperCache { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS @@ -69,7 +69,7 @@ class CameraRecorderVideoProfile final : public nsISupports * CameraRecorderAudioProfile */ class CameraRecorderAudioProfile final : public nsISupports - , public nsWrapperCache + , public nsWrapperCache { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS @@ -103,7 +103,7 @@ class CameraRecorderAudioProfile final : public nsISupports * CameraRecorderProfile */ class CameraRecorderProfile final : public nsISupports - , public nsWrapperCache + , public nsWrapperCache { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS @@ -149,7 +149,7 @@ class CameraRecorderProfile final : public nsISupports template class CameraClosedListenerProxy; class CameraRecorderProfiles final : public nsISupports - , public nsWrapperCache + , public nsWrapperCache { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS @@ -182,7 +182,7 @@ class CameraRecorderProfiles final : public nsISupports * CameraCapabilities */ class CameraCapabilities final : public nsISupports - , public nsWrapperCache + , public nsWrapperCache { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/dom/camera/DOMCameraControl.h b/dom/camera/DOMCameraControl.h index f850aacf4f58..dae5754d2a2d 100644 --- a/dom/camera/DOMCameraControl.h +++ b/dom/camera/DOMCameraControl.h @@ -46,7 +46,7 @@ class StartRecordingHelper; // Main camera control. class nsDOMCameraControl final : public DOMMediaStream - , public nsSupportsWeakReference + , public nsSupportsWeakReference { public: NS_DECLARE_STATIC_IID_ACCESSOR(NS_DOM_CAMERA_CONTROL_CID) diff --git a/dom/camera/DOMCameraDetectedFace.h b/dom/camera/DOMCameraDetectedFace.h index f73c4cc61eda..45eb49ed8d92 100644 --- a/dom/camera/DOMCameraDetectedFace.h +++ b/dom/camera/DOMCameraDetectedFace.h @@ -17,7 +17,7 @@ namespace mozilla { namespace dom { class DOMCameraDetectedFace final : public nsISupports - , public nsWrapperCache + , public nsWrapperCache { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/dom/cellbroadcast/CellBroadcastMessage.h b/dom/cellbroadcast/CellBroadcastMessage.h index 73f94786f7b5..4a6063178659 100644 --- a/dom/cellbroadcast/CellBroadcastMessage.h +++ b/dom/cellbroadcast/CellBroadcastMessage.h @@ -20,7 +20,7 @@ namespace dom { class CellBroadcastEtwsInfo; class CellBroadcastMessage final : public nsISupports - , public nsWrapperCache + , public nsWrapperCache { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS @@ -92,7 +92,7 @@ class CellBroadcastMessage final : public nsISupports }; class CellBroadcastEtwsInfo final : public nsISupports - , public nsWrapperCache + , public nsWrapperCache { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/dom/cellbroadcast/ipc/CellBroadcastIPCService.h b/dom/cellbroadcast/ipc/CellBroadcastIPCService.h index 9241203bde36..fe2d170cc162 100644 --- a/dom/cellbroadcast/ipc/CellBroadcastIPCService.h +++ b/dom/cellbroadcast/ipc/CellBroadcastIPCService.h @@ -16,7 +16,7 @@ namespace dom { namespace cellbroadcast { class CellBroadcastIPCService final : public PCellBroadcastChild - , public nsICellBroadcastService + , public nsICellBroadcastService { public: @@ -55,4 +55,4 @@ class CellBroadcastIPCService final : public PCellBroadcastChild } // namespace dom } // namespace mozilla -#endif // mozilla_dom_cellbroadcast_CellBroadcastIPCService_h \ No newline at end of file +#endif // mozilla_dom_cellbroadcast_CellBroadcastIPCService_h diff --git a/dom/cellbroadcast/ipc/CellBroadcastParent.h b/dom/cellbroadcast/ipc/CellBroadcastParent.h index 3880762bde7b..3d79fa0196ad 100644 --- a/dom/cellbroadcast/ipc/CellBroadcastParent.h +++ b/dom/cellbroadcast/ipc/CellBroadcastParent.h @@ -16,7 +16,7 @@ namespace dom { namespace cellbroadcast { class CellBroadcastParent final : public PCellBroadcastParent - , public nsICellBroadcastListener + , public nsICellBroadcastListener { public: NS_DECL_ISUPPORTS diff --git a/dom/crypto/CryptoKey.h b/dom/crypto/CryptoKey.h index 5c091fe33951..21548780cd40 100644 --- a/dom/crypto/CryptoKey.h +++ b/dom/crypto/CryptoKey.h @@ -59,8 +59,8 @@ Thus, internally, a key has the following fields: struct JsonWebKey; class CryptoKey final : public nsISupports, - public nsWrapperCache, - public nsNSSShutDownObject + public nsWrapperCache, + public nsNSSShutDownObject { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/dom/datastore/DataStoreService.h b/dom/datastore/DataStoreService.h index 0189ba892848..e740bcfb8a39 100644 --- a/dom/datastore/DataStoreService.h +++ b/dom/datastore/DataStoreService.h @@ -28,7 +28,7 @@ class RetrieveRevisionsCounter; class RevisionAddedEnableStoreCallback; class DataStoreService final : public nsIDataStoreService - , public nsIObserver + , public nsIObserver { friend class ContentChild; friend class FirstRevisionIdCallback; diff --git a/dom/events/CustomEvent.h b/dom/events/CustomEvent.h index 2d37dd3b4a9c..b9922e9fb9c9 100644 --- a/dom/events/CustomEvent.h +++ b/dom/events/CustomEvent.h @@ -14,7 +14,7 @@ namespace dom { struct CustomEventInit; class CustomEvent final : public Event, - public nsIDOMCustomEvent + public nsIDOMCustomEvent { private: virtual ~CustomEvent(); diff --git a/dom/events/DOMEventTargetHelper.h b/dom/events/DOMEventTargetHelper.h index 9cddf515e89f..a64311aa0dd4 100644 --- a/dom/events/DOMEventTargetHelper.h +++ b/dom/events/DOMEventTargetHelper.h @@ -281,11 +281,11 @@ NS_DEFINE_STATIC_IID_ACCESSOR(DOMEventTargetHelper, using _class::RemoveEventListener; \ NS_FORWARD_NSIDOMEVENTTARGET(_class::) \ virtual mozilla::EventListenerManager* \ - GetOrCreateListenerManager() override { \ + GetOrCreateListenerManager() override { \ return _class::GetOrCreateListenerManager(); \ } \ virtual mozilla::EventListenerManager* \ - GetExistingListenerManager() const override { \ + GetExistingListenerManager() const override { \ return _class::GetExistingListenerManager(); \ } diff --git a/dom/events/DataTransfer.h b/dom/events/DataTransfer.h index 934ed0298613..a4e7eea2c1eb 100644 --- a/dom/events/DataTransfer.h +++ b/dom/events/DataTransfer.h @@ -52,7 +52,7 @@ struct TransferItem { { 0x9b, 0xd0, 0xf1, 0x79, 0x09, 0x69, 0xf2, 0xfb } } class DataTransfer final : public nsIDOMDataTransfer, - public nsWrapperCache + public nsWrapperCache { public: NS_DECLARE_STATIC_IID_ACCESSOR(NS_DATATRANSFER_IID) diff --git a/dom/events/IMEContentObserver.h b/dom/events/IMEContentObserver.h index f8a598f21d11..ae991e44fa7a 100644 --- a/dom/events/IMEContentObserver.h +++ b/dom/events/IMEContentObserver.h @@ -32,11 +32,11 @@ class EventStateManager; // IMEContentObserver notifies widget of any text and selection changes // in the currently focused editor class IMEContentObserver final : public nsISelectionListener - , public nsStubMutationObserver - , public nsIReflowObserver - , public nsIScrollObserver - , public nsSupportsWeakReference - , public nsIEditorObserver + , public nsStubMutationObserver + , public nsIReflowObserver + , public nsIScrollObserver + , public nsSupportsWeakReference + , public nsIEditorObserver { friend class AsyncMergeableNotificationsFlusher; diff --git a/dom/events/ImageCaptureError.h b/dom/events/ImageCaptureError.h index fe5ce88b2459..da908e63b337 100644 --- a/dom/events/ImageCaptureError.h +++ b/dom/events/ImageCaptureError.h @@ -21,7 +21,7 @@ namespace dom { * This object should be generated by ImageCapture object only. */ class ImageCaptureError final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/dom/events/MessageEvent.h b/dom/events/MessageEvent.h index ac855a60ba03..6c1eeffbe259 100644 --- a/dom/events/MessageEvent.h +++ b/dom/events/MessageEvent.h @@ -34,7 +34,7 @@ class ServiceWorkerClient; * further details. */ class MessageEvent final : public Event, - public nsIDOMMessageEvent + public nsIDOMMessageEvent { public: MessageEvent(EventTarget* aOwner, diff --git a/dom/events/PaintRequest.h b/dom/events/PaintRequest.h index 97cf18c5a2d7..a08f891539b6 100644 --- a/dom/events/PaintRequest.h +++ b/dom/events/PaintRequest.h @@ -18,7 +18,7 @@ namespace dom { class DOMRect; class PaintRequest final : public nsIDOMPaintRequest - , public nsWrapperCache + , public nsWrapperCache { public: explicit PaintRequest(nsIDOMEvent* aParent) @@ -55,7 +55,7 @@ class PaintRequest final : public nsIDOMPaintRequest }; class PaintRequestList final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { public: explicit PaintRequestList(nsIDOMEvent *aParent) : mParent(aParent) diff --git a/dom/events/Touch.h b/dom/events/Touch.h index daacd9cadbba..8b4a0ba66308 100644 --- a/dom/events/Touch.h +++ b/dom/events/Touch.h @@ -21,8 +21,8 @@ namespace dom { class EventTarget; class Touch final : public nsISupports - , public nsWrapperCache - , public WidgetPointerHelper + , public nsWrapperCache + , public WidgetPointerHelper { public: static bool PrefEnabled(JSContext* aCx, JSObject* aGlobal); diff --git a/dom/events/TouchEvent.h b/dom/events/TouchEvent.h index 531c4231cc5b..f934d29878e3 100644 --- a/dom/events/TouchEvent.h +++ b/dom/events/TouchEvent.h @@ -20,7 +20,7 @@ namespace mozilla { namespace dom { class TouchList final : public nsISupports - , public nsWrapperCache + , public nsWrapperCache { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/dom/events/UIEvent.h b/dom/events/UIEvent.h index a4efc163d395..3635f5eb015e 100644 --- a/dom/events/UIEvent.h +++ b/dom/events/UIEvent.h @@ -176,18 +176,18 @@ class UIEvent : public Event, #define NS_FORWARD_TO_UIEVENT \ NS_FORWARD_NSIDOMUIEVENT(UIEvent::) \ NS_FORWARD_TO_EVENT_NO_SERIALIZATION_NO_DUPLICATION \ - NS_IMETHOD DuplicatePrivateData() override \ + NS_IMETHOD DuplicatePrivateData() override \ { \ return UIEvent::DuplicatePrivateData(); \ } \ NS_IMETHOD_(void) Serialize(IPC::Message* aMsg, \ bool aSerializeInterfaceType) \ - override \ + override \ { \ UIEvent::Serialize(aMsg, aSerializeInterfaceType); \ } \ NS_IMETHOD_(bool) Deserialize(const IPC::Message* aMsg, \ - void** aIter) override \ + void** aIter) override \ { \ return UIEvent::Deserialize(aMsg, aIter); \ } diff --git a/dom/fetch/Fetch.cpp b/dom/fetch/Fetch.cpp index 777527d84bc1..4a11c32e1b16 100644 --- a/dom/fetch/Fetch.cpp +++ b/dom/fetch/Fetch.cpp @@ -45,7 +45,7 @@ namespace dom { using namespace workers; class WorkerFetchResolver final : public FetchDriverObserver, - public WorkerFeature + public WorkerFeature { friend class MainThreadFetchRunnable; friend class WorkerFetchResponseEndRunnable; diff --git a/dom/fetch/FetchDriver.h b/dom/fetch/FetchDriver.h index 33ee192085ed..b9cba3d935ef 100644 --- a/dom/fetch/FetchDriver.h +++ b/dom/fetch/FetchDriver.h @@ -42,9 +42,9 @@ class FetchDriverObserver }; class FetchDriver final : public nsIStreamListener, - public nsIChannelEventSink, - public nsIInterfaceRequestor, - public nsIAsyncVerifyRedirectCallback + public nsIChannelEventSink, + public nsIInterfaceRequestor, + public nsIAsyncVerifyRedirectCallback { public: NS_DECL_ISUPPORTS diff --git a/dom/fetch/Headers.h b/dom/fetch/Headers.h index 371b8f3f2b4e..96eca7bb244a 100644 --- a/dom/fetch/Headers.h +++ b/dom/fetch/Headers.h @@ -34,7 +34,7 @@ class OwningHeadersOrByteStringSequenceSequenceOrByteStringMozMap; * InternalHeaders object. */ class Headers final : public nsISupports - , public nsWrapperCache + , public nsWrapperCache { NS_DECL_CYCLE_COLLECTING_ISUPPORTS NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(Headers) diff --git a/dom/fetch/Request.h b/dom/fetch/Request.h index 2e07ecca381c..839faa289a3b 100644 --- a/dom/fetch/Request.h +++ b/dom/fetch/Request.h @@ -27,8 +27,8 @@ class Promise; class RequestOrUSVString; class Request final : public nsISupports - , public FetchBody - , public nsWrapperCache + , public FetchBody + , public nsWrapperCache { NS_DECL_CYCLE_COLLECTING_ISUPPORTS NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(Request) diff --git a/dom/fetch/Response.h b/dom/fetch/Response.h index 52e0cddf7efc..786736144bf9 100644 --- a/dom/fetch/Response.h +++ b/dom/fetch/Response.h @@ -25,8 +25,8 @@ class InternalHeaders; class Promise; class Response final : public nsISupports - , public FetchBody - , public nsWrapperCache + , public FetchBody + , public nsWrapperCache { NS_DECL_CYCLE_COLLECTING_ISUPPORTS NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(Response) diff --git a/dom/fmradio/FMRadio.cpp b/dom/fmradio/FMRadio.cpp index 7867fc6cf0e1..1e8c2a429fe2 100644 --- a/dom/fmradio/FMRadio.cpp +++ b/dom/fmradio/FMRadio.cpp @@ -33,7 +33,7 @@ using mozilla::Preferences; BEGIN_FMRADIO_NAMESPACE class FMRadioRequest final : public FMRadioReplyRunnable - , public DOMRequest + , public DOMRequest { public: NS_DECL_ISUPPORTS_INHERITED diff --git a/dom/fmradio/FMRadio.h b/dom/fmradio/FMRadio.h index 71edf7fb5fc5..69dd6e20a7dd 100644 --- a/dom/fmradio/FMRadio.h +++ b/dom/fmradio/FMRadio.h @@ -21,11 +21,11 @@ BEGIN_FMRADIO_NAMESPACE class DOMRequest; class FMRadio final : public DOMEventTargetHelper - , public hal::SwitchObserver - , public FMRadioEventObserver - , public nsSupportsWeakReference - , public nsIAudioChannelAgentCallback - , public nsIDOMEventListener + , public hal::SwitchObserver + , public FMRadioEventObserver + , public nsSupportsWeakReference + , public nsIAudioChannelAgentCallback + , public nsIDOMEventListener { friend class FMRadioRequest; diff --git a/dom/fmradio/FMRadioService.h b/dom/fmradio/FMRadioService.h index c211200a913d..82cfa14449ba 100644 --- a/dom/fmradio/FMRadioService.h +++ b/dom/fmradio/FMRadioService.h @@ -148,9 +148,9 @@ enum FMRadioState }; class FMRadioService final : public IFMRadioService - , public hal::FMRadioObserver - , public hal::FMRadioRDSObserver - , public nsIObserver + , public hal::FMRadioObserver + , public hal::FMRadioRDSObserver + , public nsIObserver { friend class ReadAirplaneModeSettingTask; friend class EnableRunnable; diff --git a/dom/fmradio/ipc/FMRadioChild.h b/dom/fmradio/ipc/FMRadioChild.h index 173c36eb93aa..730a5e10db3c 100644 --- a/dom/fmradio/ipc/FMRadioChild.h +++ b/dom/fmradio/ipc/FMRadioChild.h @@ -23,7 +23,7 @@ BEGIN_FMRADIO_NAMESPACE * IPC channel to transfer the requests. */ class FMRadioChild final : public IFMRadioService - , public PFMRadioChild + , public PFMRadioChild { public: static FMRadioChild* Singleton(); diff --git a/dom/fmradio/ipc/FMRadioParent.h b/dom/fmradio/ipc/FMRadioParent.h index 39f36cd45e2a..53f722b603d9 100644 --- a/dom/fmradio/ipc/FMRadioParent.h +++ b/dom/fmradio/ipc/FMRadioParent.h @@ -16,7 +16,7 @@ BEGIN_FMRADIO_NAMESPACE class PFMRadioRequestParent; class FMRadioParent final : public PFMRadioParent - , public FMRadioEventObserver + , public FMRadioEventObserver { public: FMRadioParent(); diff --git a/dom/fmradio/ipc/FMRadioRequestParent.h b/dom/fmradio/ipc/FMRadioRequestParent.h index 857585eed335..0d1f0a2b2a11 100644 --- a/dom/fmradio/ipc/FMRadioRequestParent.h +++ b/dom/fmradio/ipc/FMRadioRequestParent.h @@ -14,7 +14,7 @@ BEGIN_FMRADIO_NAMESPACE class FMRadioRequestParent final : public PFMRadioRequestParent - , public FMRadioReplyRunnable + , public FMRadioReplyRunnable { public: FMRadioRequestParent(); diff --git a/dom/gamepad/Gamepad.h b/dom/gamepad/Gamepad.h index 62f6ac940c72..63bc12e7ad05 100644 --- a/dom/gamepad/Gamepad.h +++ b/dom/gamepad/Gamepad.h @@ -32,7 +32,7 @@ const int kRightStickXAxis = 2; const int kRightStickYAxis = 3; class Gamepad final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { public: Gamepad(nsISupports* aParent, diff --git a/dom/geolocation/nsGeoPosition.h b/dom/geolocation/nsGeoPosition.h index 00f2aa36299b..48ed215bce18 100644 --- a/dom/geolocation/nsGeoPosition.h +++ b/dom/geolocation/nsGeoPosition.h @@ -77,7 +77,7 @@ namespace dom { class Coordinates; class Position final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { ~Position(); @@ -105,7 +105,7 @@ class Position final : public nsISupports, }; class Coordinates final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { ~Coordinates(); diff --git a/dom/geolocation/nsGeolocation.h b/dom/geolocation/nsGeolocation.h index 595fd3462fd2..423b7bf773c0 100644 --- a/dom/geolocation/nsGeolocation.h +++ b/dom/geolocation/nsGeolocation.h @@ -53,7 +53,8 @@ struct CachedPositionAndAccuracy { /** * Singleton that manages the geolocation provider */ -class nsGeolocationService final : public nsIGeolocationUpdate, public nsIObserver +class nsGeolocationService final : public nsIGeolocationUpdate, + public nsIObserver { public: @@ -124,8 +125,8 @@ namespace dom { * Can return a geolocation info */ class Geolocation final : public nsIDOMGeoGeolocation, - public nsIGeolocationUpdate, - public nsWrapperCache + public nsIGeolocationUpdate, + public nsWrapperCache { public: @@ -221,7 +222,7 @@ class Geolocation final : public nsIDOMGeoGeolocation, }; class PositionError final : public nsIDOMGeoPositionError, - public nsWrapperCache + public nsWrapperCache { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/dom/html/HTMLAllCollection.h b/dom/html/HTMLAllCollection.h index f2c5b95aec0e..d6d71e2c8241 100644 --- a/dom/html/HTMLAllCollection.h +++ b/dom/html/HTMLAllCollection.h @@ -30,7 +30,7 @@ class OwningNodeOrHTMLCollection; template struct Nullable; class HTMLAllCollection final : public nsISupports - , public nsWrapperCache + , public nsWrapperCache { ~HTMLAllCollection(); diff --git a/dom/html/HTMLAnchorElement.h b/dom/html/HTMLAnchorElement.h index 096da5245b44..8c5102d07aab 100644 --- a/dom/html/HTMLAnchorElement.h +++ b/dom/html/HTMLAnchorElement.h @@ -19,8 +19,8 @@ class EventChainPreVisitor; namespace dom { class HTMLAnchorElement final : public nsGenericHTMLElement, - public nsIDOMHTMLAnchorElement, - public Link + public nsIDOMHTMLAnchorElement, + public Link { public: using Element::GetText; diff --git a/dom/html/HTMLAreaElement.h b/dom/html/HTMLAreaElement.h index 41eb46bab53c..01a2c5e229dd 100644 --- a/dom/html/HTMLAreaElement.h +++ b/dom/html/HTMLAreaElement.h @@ -23,8 +23,8 @@ class EventChainPreVisitor; namespace dom { class HTMLAreaElement final : public nsGenericHTMLElement, - public nsIDOMHTMLAreaElement, - public Link + public nsIDOMHTMLAreaElement, + public Link { public: explicit HTMLAreaElement(already_AddRefed& aNodeInfo); diff --git a/dom/html/HTMLBRElement.h b/dom/html/HTMLBRElement.h index afe2bbf9bb41..13d5e6671700 100644 --- a/dom/html/HTMLBRElement.h +++ b/dom/html/HTMLBRElement.h @@ -15,7 +15,7 @@ namespace mozilla { namespace dom { class HTMLBRElement final : public nsGenericHTMLElement, - public nsIDOMHTMLBRElement + public nsIDOMHTMLBRElement { public: explicit HTMLBRElement(already_AddRefed& aNodeInfo); diff --git a/dom/html/HTMLBodyElement.h b/dom/html/HTMLBodyElement.h index 60943ba82e02..4c3f5a6a6b17 100644 --- a/dom/html/HTMLBodyElement.h +++ b/dom/html/HTMLBodyElement.h @@ -35,7 +35,7 @@ class BodyRule: public nsIStyleRule }; class HTMLBodyElement final : public nsGenericHTMLElement, - public nsIDOMHTMLBodyElement + public nsIDOMHTMLBodyElement { public: using Element::GetText; diff --git a/dom/html/HTMLButtonElement.h b/dom/html/HTMLButtonElement.h index 324616ecf5e4..d75ccbf0ff83 100644 --- a/dom/html/HTMLButtonElement.h +++ b/dom/html/HTMLButtonElement.h @@ -17,8 +17,8 @@ class EventChainPreVisitor; namespace dom { class HTMLButtonElement final : public nsGenericHTMLFormElementWithState, - public nsIDOMHTMLButtonElement, - public nsIConstraintValidation + public nsIDOMHTMLButtonElement, + public nsIConstraintValidation { public: using nsIConstraintValidation::GetValidationMessage; diff --git a/dom/html/HTMLCanvasElement.h b/dom/html/HTMLCanvasElement.h index 0ca614d3108a..ea6c2f86cd54 100644 --- a/dom/html/HTMLCanvasElement.h +++ b/dom/html/HTMLCanvasElement.h @@ -42,7 +42,7 @@ enum class CanvasContextType : uint8_t { }; class HTMLCanvasElement final : public nsGenericHTMLElement, - public nsIDOMHTMLCanvasElement + public nsIDOMHTMLCanvasElement { enum { DEFAULT_CANVAS_WIDTH = 300, diff --git a/dom/html/HTMLDivElement.h b/dom/html/HTMLDivElement.h index 21392f03d560..066e565d24c1 100644 --- a/dom/html/HTMLDivElement.h +++ b/dom/html/HTMLDivElement.h @@ -13,7 +13,7 @@ namespace mozilla { namespace dom { class HTMLDivElement final : public nsGenericHTMLElement, - public nsIDOMHTMLDivElement + public nsIDOMHTMLDivElement { public: explicit HTMLDivElement(already_AddRefed& aNodeInfo) diff --git a/dom/html/HTMLFieldSetElement.h b/dom/html/HTMLFieldSetElement.h index d50fc42e851a..7d9b6e7d9b83 100644 --- a/dom/html/HTMLFieldSetElement.h +++ b/dom/html/HTMLFieldSetElement.h @@ -18,8 +18,8 @@ class EventChainPreVisitor; namespace dom { class HTMLFieldSetElement final : public nsGenericHTMLFormElement, - public nsIDOMHTMLFieldSetElement, - public nsIConstraintValidation + public nsIDOMHTMLFieldSetElement, + public nsIConstraintValidation { public: using nsGenericHTMLFormElement::GetForm; diff --git a/dom/html/HTMLFormControlsCollection.h b/dom/html/HTMLFormControlsCollection.h index fde2341866bc..73f86036e32c 100644 --- a/dom/html/HTMLFormControlsCollection.h +++ b/dom/html/HTMLFormControlsCollection.h @@ -24,7 +24,7 @@ class OwningRadioNodeListOrElement; template struct Nullable; class HTMLFormControlsCollection final : public nsIHTMLCollection - , public nsWrapperCache + , public nsWrapperCache { public: explicit HTMLFormControlsCollection(HTMLFormElement* aForm); diff --git a/dom/html/HTMLFormElement.h b/dom/html/HTMLFormElement.h index f0547d3dfe2e..f3e7600d2af3 100644 --- a/dom/html/HTMLFormElement.h +++ b/dom/html/HTMLFormElement.h @@ -34,10 +34,10 @@ class HTMLFormControlsCollection; class HTMLImageElement; class HTMLFormElement final : public nsGenericHTMLElement, - public nsIDOMHTMLFormElement, - public nsIWebProgressListener, - public nsIForm, - public nsIRadioGroupContainer + public nsIDOMHTMLFormElement, + public nsIWebProgressListener, + public nsIForm, + public nsIRadioGroupContainer { friend class HTMLFormControlsCollection; diff --git a/dom/html/HTMLFrameElement.h b/dom/html/HTMLFrameElement.h index 97fc4ea45420..ac8de9c8965b 100644 --- a/dom/html/HTMLFrameElement.h +++ b/dom/html/HTMLFrameElement.h @@ -17,7 +17,7 @@ namespace mozilla { namespace dom { class HTMLFrameElement final : public nsGenericHTMLFrameElement, - public nsIDOMHTMLFrameElement + public nsIDOMHTMLFrameElement { public: using nsGenericHTMLFrameElement::SwapFrameLoaders; diff --git a/dom/html/HTMLFrameSetElement.h b/dom/html/HTMLFrameSetElement.h index 4448dbdcfe74..170d445248f7 100644 --- a/dom/html/HTMLFrameSetElement.h +++ b/dom/html/HTMLFrameSetElement.h @@ -43,7 +43,7 @@ namespace dom { class OnBeforeUnloadEventHandlerNonNull; class HTMLFrameSetElement final : public nsGenericHTMLElement, - public nsIDOMHTMLFrameSetElement + public nsIDOMHTMLFrameSetElement { public: explicit HTMLFrameSetElement(already_AddRefed& aNodeInfo) diff --git a/dom/html/HTMLHRElement.h b/dom/html/HTMLHRElement.h index 8e46ed46856d..09b7d37d6ea7 100644 --- a/dom/html/HTMLHRElement.h +++ b/dom/html/HTMLHRElement.h @@ -17,7 +17,7 @@ namespace mozilla { namespace dom { class HTMLHRElement final : public nsGenericHTMLElement, - public nsIDOMHTMLHRElement + public nsIDOMHTMLHRElement { public: explicit HTMLHRElement(already_AddRefed& aNodeInfo); diff --git a/dom/html/HTMLHeadingElement.h b/dom/html/HTMLHeadingElement.h index 76719a7d2964..ed0092cd8529 100644 --- a/dom/html/HTMLHeadingElement.h +++ b/dom/html/HTMLHeadingElement.h @@ -14,7 +14,7 @@ namespace mozilla { namespace dom { class HTMLHeadingElement final : public nsGenericHTMLElement, - public nsIDOMHTMLHeadingElement + public nsIDOMHTMLHeadingElement { public: explicit HTMLHeadingElement(already_AddRefed& aNodeInfo) diff --git a/dom/html/HTMLIFrameElement.h b/dom/html/HTMLIFrameElement.h index 93b4acaf3455..c67e641383b9 100644 --- a/dom/html/HTMLIFrameElement.h +++ b/dom/html/HTMLIFrameElement.h @@ -15,7 +15,7 @@ namespace mozilla { namespace dom { class HTMLIFrameElement final : public nsGenericHTMLFrameElement - , public nsIDOMHTMLIFrameElement + , public nsIDOMHTMLIFrameElement { public: explicit HTMLIFrameElement(already_AddRefed& aNodeInfo, diff --git a/dom/html/HTMLImageElement.h b/dom/html/HTMLImageElement.h index f6c799e60632..945df6f3019a 100644 --- a/dom/html/HTMLImageElement.h +++ b/dom/html/HTMLImageElement.h @@ -23,8 +23,8 @@ namespace dom { class ResponsiveImageSelector; class HTMLImageElement final : public nsGenericHTMLElement, - public nsImageLoadingContent, - public nsIDOMHTMLImageElement + public nsImageLoadingContent, + public nsIDOMHTMLImageElement { friend class HTMLSourceElement; friend class HTMLPictureElement; diff --git a/dom/html/HTMLInputElement.h b/dom/html/HTMLInputElement.h index 1a5d25a4a022..8784f2181a8a 100644 --- a/dom/html/HTMLInputElement.h +++ b/dom/html/HTMLInputElement.h @@ -89,13 +89,13 @@ class UploadLastDir final : public nsIObserver, public nsSupportsWeakReference { }; class HTMLInputElement final : public nsGenericHTMLFormElementWithState, - public nsImageLoadingContent, - public nsIDOMHTMLInputElement, - public nsITextControlElement, - public nsIPhonetic, - public nsIDOMNSEditableElement, - public nsITimerCallback, - public nsIConstraintValidation + public nsImageLoadingContent, + public nsIDOMHTMLInputElement, + public nsITextControlElement, + public nsIPhonetic, + public nsIDOMNSEditableElement, + public nsITimerCallback, + public nsIConstraintValidation { friend class DirPickerFileListBuilderTask; diff --git a/dom/html/HTMLLIElement.h b/dom/html/HTMLLIElement.h index 440d345df2c1..ec77c73cd73b 100644 --- a/dom/html/HTMLLIElement.h +++ b/dom/html/HTMLLIElement.h @@ -15,7 +15,7 @@ namespace mozilla { namespace dom { class HTMLLIElement final : public nsGenericHTMLElement, - public nsIDOMHTMLLIElement + public nsIDOMHTMLLIElement { public: explicit HTMLLIElement(already_AddRefed& aNodeInfo) diff --git a/dom/html/HTMLLabelElement.h b/dom/html/HTMLLabelElement.h index aff6901eb863..f90d43be9dd0 100644 --- a/dom/html/HTMLLabelElement.h +++ b/dom/html/HTMLLabelElement.h @@ -18,7 +18,7 @@ class EventChainPostVisitor; namespace dom { class HTMLLabelElement final : public nsGenericHTMLFormElement, - public nsIDOMHTMLLabelElement + public nsIDOMHTMLLabelElement { public: explicit HTMLLabelElement(already_AddRefed& aNodeInfo) diff --git a/dom/html/HTMLLinkElement.h b/dom/html/HTMLLinkElement.h index bb05599f935f..1ef429fb167d 100644 --- a/dom/html/HTMLLinkElement.h +++ b/dom/html/HTMLLinkElement.h @@ -19,9 +19,9 @@ class EventChainPreVisitor; namespace dom { class HTMLLinkElement final : public nsGenericHTMLElement, - public nsIDOMHTMLLinkElement, - public nsStyleLinkElement, - public Link + public nsIDOMHTMLLinkElement, + public nsStyleLinkElement, + public Link { public: explicit HTMLLinkElement(already_AddRefed& aNodeInfo); diff --git a/dom/html/HTMLMapElement.h b/dom/html/HTMLMapElement.h index 869cbeb8172e..34afaf964195 100644 --- a/dom/html/HTMLMapElement.h +++ b/dom/html/HTMLMapElement.h @@ -18,7 +18,7 @@ namespace mozilla { namespace dom { class HTMLMapElement final : public nsGenericHTMLElement, - public nsIDOMHTMLMapElement + public nsIDOMHTMLMapElement { public: explicit HTMLMapElement(already_AddRefed& aNodeInfo); diff --git a/dom/html/HTMLMediaElement.cpp b/dom/html/HTMLMediaElement.cpp index 27d13e53aded..1411c598e2d3 100644 --- a/dom/html/HTMLMediaElement.cpp +++ b/dom/html/HTMLMediaElement.cpp @@ -258,9 +258,9 @@ class nsSourceErrorEventRunner : public nsMediaEvent * We break the reference cycle in OnStartRequest by clearing mElement. */ class HTMLMediaElement::MediaLoadListener final : public nsIStreamListener, - public nsIChannelEventSink, - public nsIInterfaceRequestor, - public nsIObserver + public nsIChannelEventSink, + public nsIInterfaceRequestor, + public nsIObserver { ~MediaLoadListener() {} diff --git a/dom/html/HTMLMenuElement.h b/dom/html/HTMLMenuElement.h index 272b436c5a57..4ffab2c173bb 100644 --- a/dom/html/HTMLMenuElement.h +++ b/dom/html/HTMLMenuElement.h @@ -15,8 +15,8 @@ namespace mozilla { namespace dom { class HTMLMenuElement final : public nsGenericHTMLElement, - public nsIDOMHTMLMenuElement, - public nsIHTMLMenu + public nsIDOMHTMLMenuElement, + public nsIHTMLMenu { public: explicit HTMLMenuElement(already_AddRefed& aNodeInfo); diff --git a/dom/html/HTMLMenuItemElement.h b/dom/html/HTMLMenuItemElement.h index b5bdcff26e59..edb0e122b58e 100644 --- a/dom/html/HTMLMenuItemElement.h +++ b/dom/html/HTMLMenuItemElement.h @@ -19,7 +19,7 @@ namespace dom { class Visitor; class HTMLMenuItemElement final : public nsGenericHTMLElement, - public nsIDOMHTMLMenuItemElement + public nsIDOMHTMLMenuItemElement { public: using mozilla::dom::Element::GetText; diff --git a/dom/html/HTMLMetaElement.h b/dom/html/HTMLMetaElement.h index e8492abc003f..8331f697e11c 100644 --- a/dom/html/HTMLMetaElement.h +++ b/dom/html/HTMLMetaElement.h @@ -14,7 +14,7 @@ namespace mozilla { namespace dom { class HTMLMetaElement final : public nsGenericHTMLElement, - public nsIDOMHTMLMetaElement + public nsIDOMHTMLMetaElement { public: explicit HTMLMetaElement(already_AddRefed& aNodeInfo); diff --git a/dom/html/HTMLObjectElement.h b/dom/html/HTMLObjectElement.h index 4de138bf8778..855e65336261 100644 --- a/dom/html/HTMLObjectElement.h +++ b/dom/html/HTMLObjectElement.h @@ -17,9 +17,9 @@ namespace mozilla { namespace dom { class HTMLObjectElement final : public nsGenericHTMLFormElement - , public nsObjectLoadingContent - , public nsIDOMHTMLObjectElement - , public nsIConstraintValidation + , public nsObjectLoadingContent + , public nsIDOMHTMLObjectElement + , public nsIConstraintValidation { public: explicit HTMLObjectElement(already_AddRefed& aNodeInfo, diff --git a/dom/html/HTMLOptGroupElement.h b/dom/html/HTMLOptGroupElement.h index 310c60650940..8576f87dcca4 100644 --- a/dom/html/HTMLOptGroupElement.h +++ b/dom/html/HTMLOptGroupElement.h @@ -15,7 +15,7 @@ class EventChainPreVisitor; namespace dom { class HTMLOptGroupElement final : public nsGenericHTMLElement, - public nsIDOMHTMLOptGroupElement + public nsIDOMHTMLOptGroupElement { public: explicit HTMLOptGroupElement(already_AddRefed& aNodeInfo); diff --git a/dom/html/HTMLOptionElement.h b/dom/html/HTMLOptionElement.h index de4fc63d1d0b..814479711273 100644 --- a/dom/html/HTMLOptionElement.h +++ b/dom/html/HTMLOptionElement.h @@ -18,7 +18,7 @@ namespace dom { class HTMLSelectElement; class HTMLOptionElement final : public nsGenericHTMLElement, - public nsIDOMHTMLOptionElement + public nsIDOMHTMLOptionElement { public: explicit HTMLOptionElement(already_AddRefed& aNodeInfo); diff --git a/dom/html/HTMLOptionsCollection.h b/dom/html/HTMLOptionsCollection.h index 6175fa94a84a..2b138901e6ea 100644 --- a/dom/html/HTMLOptionsCollection.h +++ b/dom/html/HTMLOptionsCollection.h @@ -31,8 +31,8 @@ class HTMLSelectElement; * select.options in DOM) */ class HTMLOptionsCollection final : public nsIHTMLCollection - , public nsIDOMHTMLOptionsCollection - , public nsWrapperCache + , public nsIDOMHTMLOptionsCollection + , public nsWrapperCache { typedef HTMLOptionElementOrHTMLOptGroupElement HTMLOptionOrOptGroupElement; public: diff --git a/dom/html/HTMLOutputElement.h b/dom/html/HTMLOutputElement.h index 34c368c9d0f5..68dbb57debbd 100644 --- a/dom/html/HTMLOutputElement.h +++ b/dom/html/HTMLOutputElement.h @@ -15,8 +15,8 @@ namespace mozilla { namespace dom { class HTMLOutputElement final : public nsGenericHTMLFormElement, - public nsStubMutationObserver, - public nsIConstraintValidation + public nsStubMutationObserver, + public nsIConstraintValidation { public: using nsIConstraintValidation::GetValidationMessage; diff --git a/dom/html/HTMLParagraphElement.h b/dom/html/HTMLParagraphElement.h index 25f69770c3aa..cea6c3c4e4e2 100644 --- a/dom/html/HTMLParagraphElement.h +++ b/dom/html/HTMLParagraphElement.h @@ -15,7 +15,7 @@ namespace mozilla { namespace dom { class HTMLParagraphElement final : public nsGenericHTMLElement, - public nsIDOMHTMLParagraphElement + public nsIDOMHTMLParagraphElement { public: explicit HTMLParagraphElement(already_AddRefed& aNodeInfo) diff --git a/dom/html/HTMLPictureElement.h b/dom/html/HTMLPictureElement.h index d161d317cc93..1253aabe62f0 100644 --- a/dom/html/HTMLPictureElement.h +++ b/dom/html/HTMLPictureElement.h @@ -17,7 +17,7 @@ namespace mozilla { namespace dom { class HTMLPictureElement final : public nsGenericHTMLElement, - public nsIDOMHTMLPictureElement + public nsIDOMHTMLPictureElement { public: explicit HTMLPictureElement(already_AddRefed& aNodeInfo); diff --git a/dom/html/HTMLPreElement.h b/dom/html/HTMLPreElement.h index 4a270ecda617..708ff0190a79 100644 --- a/dom/html/HTMLPreElement.h +++ b/dom/html/HTMLPreElement.h @@ -15,7 +15,7 @@ namespace mozilla { namespace dom { class HTMLPreElement final : public nsGenericHTMLElement, - public nsIDOMHTMLPreElement + public nsIDOMHTMLPreElement { public: explicit HTMLPreElement(already_AddRefed& aNodeInfo) diff --git a/dom/html/HTMLPropertiesCollection.h b/dom/html/HTMLPropertiesCollection.h index 0c6cbbf0797e..ff40ea0c2377 100644 --- a/dom/html/HTMLPropertiesCollection.h +++ b/dom/html/HTMLPropertiesCollection.h @@ -49,8 +49,8 @@ class PropertyStringList : public DOMStringList }; class HTMLPropertiesCollection final : public nsIHTMLCollection, - public nsStubMutationObserver, - public nsWrapperCache + public nsStubMutationObserver, + public nsWrapperCache { friend class PropertyNodeList; friend class PropertyStringList; @@ -149,7 +149,7 @@ class HTMLPropertiesCollection final : public nsIHTMLCollection, }; class PropertyNodeList final : public nsINodeList, - public nsStubMutationObserver + public nsStubMutationObserver { public: PropertyNodeList(HTMLPropertiesCollection* aCollection, diff --git a/dom/html/HTMLScriptElement.h b/dom/html/HTMLScriptElement.h index 7c1c44fd9d24..94c721731b86 100644 --- a/dom/html/HTMLScriptElement.h +++ b/dom/html/HTMLScriptElement.h @@ -16,8 +16,8 @@ namespace mozilla { namespace dom { class HTMLScriptElement final : public nsGenericHTMLElement, - public nsIDOMHTMLScriptElement, - public nsScriptElement + public nsIDOMHTMLScriptElement, + public nsScriptElement { public: using Element::GetText; diff --git a/dom/html/HTMLSelectElement.h b/dom/html/HTMLSelectElement.h index b9c6e243f1c5..32859345fbab 100644 --- a/dom/html/HTMLSelectElement.h +++ b/dom/html/HTMLSelectElement.h @@ -113,8 +113,8 @@ class MOZ_STACK_CLASS SafeOptionListMutation * Implementation of <select> */ class HTMLSelectElement final : public nsGenericHTMLFormElementWithState, - public nsIDOMHTMLSelectElement, - public nsIConstraintValidation + public nsIDOMHTMLSelectElement, + public nsIConstraintValidation { public: /** diff --git a/dom/html/HTMLShadowElement.h b/dom/html/HTMLShadowElement.h index 6800dd46ba00..1feac60beefa 100644 --- a/dom/html/HTMLShadowElement.h +++ b/dom/html/HTMLShadowElement.h @@ -12,7 +12,7 @@ namespace mozilla { namespace dom { class HTMLShadowElement final : public nsGenericHTMLElement, - public nsStubMutationObserver + public nsStubMutationObserver { public: explicit HTMLShadowElement(already_AddRefed& aNodeInfo); diff --git a/dom/html/HTMLSharedElement.h b/dom/html/HTMLSharedElement.h index dc46635f6457..048d2c9846f8 100644 --- a/dom/html/HTMLSharedElement.h +++ b/dom/html/HTMLSharedElement.h @@ -22,11 +22,11 @@ namespace mozilla { namespace dom { class HTMLSharedElement final : public nsGenericHTMLElement, - public nsIDOMHTMLBaseElement, - public nsIDOMHTMLDirectoryElement, - public nsIDOMHTMLQuoteElement, - public nsIDOMHTMLHeadElement, - public nsIDOMHTMLHtmlElement + public nsIDOMHTMLBaseElement, + public nsIDOMHTMLDirectoryElement, + public nsIDOMHTMLQuoteElement, + public nsIDOMHTMLHeadElement, + public nsIDOMHTMLHtmlElement { public: explicit HTMLSharedElement(already_AddRefed& aNodeInfo) diff --git a/dom/html/HTMLSharedListElement.h b/dom/html/HTMLSharedListElement.h index 5cb7dccf78ec..acb88f1f0be4 100644 --- a/dom/html/HTMLSharedListElement.h +++ b/dom/html/HTMLSharedListElement.h @@ -16,8 +16,8 @@ namespace mozilla { namespace dom { class HTMLSharedListElement final : public nsGenericHTMLElement, - public nsIDOMHTMLOListElement, - public nsIDOMHTMLUListElement + public nsIDOMHTMLOListElement, + public nsIDOMHTMLUListElement { public: explicit HTMLSharedListElement(already_AddRefed& aNodeInfo) diff --git a/dom/html/HTMLSharedObjectElement.h b/dom/html/HTMLSharedObjectElement.h index 89e61041a704..6d3071146de1 100644 --- a/dom/html/HTMLSharedObjectElement.h +++ b/dom/html/HTMLSharedObjectElement.h @@ -19,9 +19,9 @@ namespace mozilla { namespace dom { class HTMLSharedObjectElement final : public nsGenericHTMLElement - , public nsObjectLoadingContent - , public nsIDOMHTMLAppletElement - , public nsIDOMHTMLEmbedElement + , public nsObjectLoadingContent + , public nsIDOMHTMLAppletElement + , public nsIDOMHTMLEmbedElement { public: explicit HTMLSharedObjectElement(already_AddRefed& aNodeInfo, diff --git a/dom/html/HTMLSourceElement.h b/dom/html/HTMLSourceElement.h index f98db495f48a..34ddc82c1cdf 100644 --- a/dom/html/HTMLSourceElement.h +++ b/dom/html/HTMLSourceElement.h @@ -19,7 +19,7 @@ namespace dom { class ResponsiveImageSelector; class HTMLSourceElement final : public nsGenericHTMLElement, - public nsIDOMHTMLSourceElement + public nsIDOMHTMLSourceElement { public: explicit HTMLSourceElement(already_AddRefed& aNodeInfo); diff --git a/dom/html/HTMLStyleElement.h b/dom/html/HTMLStyleElement.h index eadd51871ac4..63e748db796f 100644 --- a/dom/html/HTMLStyleElement.h +++ b/dom/html/HTMLStyleElement.h @@ -18,9 +18,9 @@ namespace mozilla { namespace dom { class HTMLStyleElement final : public nsGenericHTMLElement, - public nsIDOMHTMLStyleElement, - public nsStyleLinkElement, - public nsStubMutationObserver + public nsIDOMHTMLStyleElement, + public nsStyleLinkElement, + public nsStubMutationObserver { public: explicit HTMLStyleElement(already_AddRefed& aNodeInfo); diff --git a/dom/html/HTMLTableCaptionElement.h b/dom/html/HTMLTableCaptionElement.h index 612566d2ec0a..15f41d8ef408 100644 --- a/dom/html/HTMLTableCaptionElement.h +++ b/dom/html/HTMLTableCaptionElement.h @@ -13,7 +13,7 @@ namespace mozilla { namespace dom { class HTMLTableCaptionElement final : public nsGenericHTMLElement, - public nsIDOMHTMLTableCaptionElement + public nsIDOMHTMLTableCaptionElement { public: explicit HTMLTableCaptionElement(already_AddRefed& aNodeInfo) diff --git a/dom/html/HTMLTableCellElement.h b/dom/html/HTMLTableCellElement.h index eb8fe3b060e2..d0da453f434a 100644 --- a/dom/html/HTMLTableCellElement.h +++ b/dom/html/HTMLTableCellElement.h @@ -17,7 +17,7 @@ namespace dom { class HTMLTableElement; class HTMLTableCellElement final : public nsGenericHTMLElement, - public nsIDOMHTMLTableCellElement + public nsIDOMHTMLTableCellElement { public: explicit HTMLTableCellElement(already_AddRefed& aNodeInfo) diff --git a/dom/html/HTMLTableElement.h b/dom/html/HTMLTableElement.h index 1d8fa067d080..1907a22b12c7 100644 --- a/dom/html/HTMLTableElement.h +++ b/dom/html/HTMLTableElement.h @@ -19,7 +19,7 @@ namespace dom { class TableRowsCollection; class HTMLTableElement final : public nsGenericHTMLElement, - public nsIDOMHTMLTableElement + public nsIDOMHTMLTableElement { public: explicit HTMLTableElement(already_AddRefed& aNodeInfo); diff --git a/dom/html/HTMLTextAreaElement.h b/dom/html/HTMLTextAreaElement.h index f382a172739a..b871184b419e 100644 --- a/dom/html/HTMLTextAreaElement.h +++ b/dom/html/HTMLTextAreaElement.h @@ -36,11 +36,11 @@ class EventStates; namespace dom { class HTMLTextAreaElement final : public nsGenericHTMLFormElementWithState, - public nsIDOMHTMLTextAreaElement, - public nsITextControlElement, - public nsIDOMNSEditableElement, - public nsStubMutationObserver, - public nsIConstraintValidation + public nsIDOMHTMLTextAreaElement, + public nsITextControlElement, + public nsIDOMNSEditableElement, + public nsStubMutationObserver, + public nsIConstraintValidation { public: using nsIConstraintValidation::GetValidationMessage; diff --git a/dom/html/HTMLTitleElement.h b/dom/html/HTMLTitleElement.h index 9c716fbfd0e1..81ef2be8e9db 100644 --- a/dom/html/HTMLTitleElement.h +++ b/dom/html/HTMLTitleElement.h @@ -17,8 +17,8 @@ class ErrorResult; namespace dom { class HTMLTitleElement final : public nsGenericHTMLElement, - public nsIDOMHTMLTitleElement, - public nsStubMutationObserver + public nsIDOMHTMLTitleElement, + public nsStubMutationObserver { public: using Element::GetText; diff --git a/dom/html/ImageDocument.h b/dom/html/ImageDocument.h index 8f404ca9750b..c8564dd95884 100644 --- a/dom/html/ImageDocument.h +++ b/dom/html/ImageDocument.h @@ -15,9 +15,9 @@ namespace mozilla { namespace dom { class ImageDocument final : public MediaDocument, - public nsIImageDocument, - public imgINotificationObserver, - public nsIDOMEventListener + public nsIImageDocument, + public imgINotificationObserver, + public nsIDOMEventListener { public: ImageDocument(); diff --git a/dom/html/MediaError.h b/dom/html/MediaError.h index aea0b00e8d5f..f0d00a5a5116 100644 --- a/dom/html/MediaError.h +++ b/dom/html/MediaError.h @@ -17,7 +17,7 @@ namespace mozilla { namespace dom { class MediaError final : public nsIDOMMediaError, - public nsWrapperCache + public nsWrapperCache { ~MediaError() {} diff --git a/dom/html/PluginDocument.cpp b/dom/html/PluginDocument.cpp index 94dd437bbc1a..646a625cfb78 100644 --- a/dom/html/PluginDocument.cpp +++ b/dom/html/PluginDocument.cpp @@ -23,7 +23,7 @@ namespace mozilla { namespace dom { class PluginDocument final : public MediaDocument - , public nsIPluginDocument + , public nsIPluginDocument { public: PluginDocument(); diff --git a/dom/html/UndoManager.h b/dom/html/UndoManager.h index 6b9029a9b819..b56b62d0edab 100644 --- a/dom/html/UndoManager.h +++ b/dom/html/UndoManager.h @@ -26,7 +26,7 @@ class DOMTransaction; class DOMTransactionCallback; class UndoManager final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { friend class TxnScopeGuard; public: diff --git a/dom/html/ValidityState.h b/dom/html/ValidityState.h index 25effb421441..9e37df9b6936 100644 --- a/dom/html/ValidityState.h +++ b/dom/html/ValidityState.h @@ -15,7 +15,7 @@ namespace mozilla { namespace dom { class ValidityState final : public nsIDOMValidityState, - public nsWrapperCache + public nsWrapperCache { ~ValidityState() {} diff --git a/dom/html/nsHTMLDNSPrefetch.h b/dom/html/nsHTMLDNSPrefetch.h index 918836ef5c6d..e2110bed83a6 100644 --- a/dom/html/nsHTMLDNSPrefetch.h +++ b/dom/html/nsHTMLDNSPrefetch.h @@ -82,8 +82,8 @@ class nsHTMLDNSPrefetch }; class nsDeferrals final: public nsIWebProgressListener - , public nsSupportsWeakReference - , public nsIObserver + , public nsSupportsWeakReference + , public nsIObserver { public: NS_DECL_ISUPPORTS diff --git a/dom/html/nsTextEditorState.cpp b/dom/html/nsTextEditorState.cpp index f4e3f160b5ae..d35378921a93 100644 --- a/dom/html/nsTextEditorState.cpp +++ b/dom/html/nsTextEditorState.cpp @@ -199,7 +199,7 @@ class nsAnonDivObserver final : public nsStubMutationObserver }; class nsTextInputSelectionImpl final : public nsSupportsWeakReference - , public nsISelectionController + , public nsISelectionController { ~nsTextInputSelectionImpl(){} diff --git a/dom/indexedDB/IDBFileHandle.h b/dom/indexedDB/IDBFileHandle.h index c08b76498218..51f2b707e30a 100644 --- a/dom/indexedDB/IDBFileHandle.h +++ b/dom/indexedDB/IDBFileHandle.h @@ -29,9 +29,9 @@ namespace indexedDB { class IDBMutableFile; class IDBFileHandle final : public DOMEventTargetHelper, - public nsIRunnable, - public FileHandleBase, - public nsSupportsWeakReference + public nsIRunnable, + public FileHandleBase, + public nsSupportsWeakReference { public: NS_DECL_ISUPPORTS_INHERITED diff --git a/dom/indexedDB/IDBFileRequest.h b/dom/indexedDB/IDBFileRequest.h index afad5c0be6d3..8b5c6c9ed6bf 100644 --- a/dom/indexedDB/IDBFileRequest.h +++ b/dom/indexedDB/IDBFileRequest.h @@ -26,7 +26,7 @@ namespace indexedDB { class IDBFileHandle; class IDBFileRequest final : public DOMRequest, - public FileRequestBase + public FileRequestBase { public: NS_DECL_ISUPPORTS_INHERITED diff --git a/dom/ipc/ContentBridgeChild.h b/dom/ipc/ContentBridgeChild.h index 5f24c952d598..ea0c2b9687fd 100644 --- a/dom/ipc/ContentBridgeChild.h +++ b/dom/ipc/ContentBridgeChild.h @@ -14,7 +14,7 @@ namespace mozilla { namespace dom { class ContentBridgeChild final : public PContentBridgeChild - , public nsIContentChild + , public nsIContentChild { public: explicit ContentBridgeChild(Transport* aTransport); diff --git a/dom/ipc/ContentParent.cpp b/dom/ipc/ContentParent.cpp index a71cbd581174..a077d39d8c82 100755 --- a/dom/ipc/ContentParent.cpp +++ b/dom/ipc/ContentParent.cpp @@ -241,7 +241,7 @@ using namespace mozilla::widget; #ifdef ENABLE_TESTS class BackgroundTester final : public nsIIPCBackgroundChildCreateCallback, - public nsIObserver + public nsIObserver { static uint32_t sCallbackCount; diff --git a/dom/ipc/ContentParent.h b/dom/ipc/ContentParent.h index 95756dfb9174..b722a011da53 100644 --- a/dom/ipc/ContentParent.h +++ b/dom/ipc/ContentParent.h @@ -67,11 +67,11 @@ class TabContext; class ContentBridgeParent; class ContentParent final : public PContentParent - , public nsIContentParent - , public nsIObserver - , public nsIDOMGeoPositionCallback - , public nsIDOMGeoPositionErrorCallback - , public mozilla::LinkedListElement + , public nsIContentParent + , public nsIObserver + , public nsIDOMGeoPositionCallback + , public nsIDOMGeoPositionErrorCallback + , public mozilla::LinkedListElement { typedef mozilla::ipc::GeckoChildProcessHost GeckoChildProcessHost; typedef mozilla::ipc::OptionalURIParams OptionalURIParams; diff --git a/dom/ipc/TabChild.h b/dom/ipc/TabChild.h index 1ca2182d08a1..06203281ce4c 100644 --- a/dom/ipc/TabChild.h +++ b/dom/ipc/TabChild.h @@ -226,19 +226,19 @@ class TabChildBase : public nsISupports, }; class TabChild final : public TabChildBase, - public PBrowserChild, - public nsIWebBrowserChrome2, - public nsIEmbeddingSiteWindow, - public nsIWebBrowserChromeFocus, - public nsIInterfaceRequestor, - public nsIWindowProvider, - public nsIDOMEventListener, - public nsIWebProgressListener, - public nsSupportsWeakReference, - public nsITabChild, - public nsIObserver, - public TabContext, - public nsITooltipListener + public PBrowserChild, + public nsIWebBrowserChrome2, + public nsIEmbeddingSiteWindow, + public nsIWebBrowserChromeFocus, + public nsIInterfaceRequestor, + public nsIWindowProvider, + public nsIDOMEventListener, + public nsIWebProgressListener, + public nsSupportsWeakReference, + public nsITabChild, + public nsIObserver, + public TabContext, + public nsITooltipListener { typedef mozilla::dom::ClonedMessageData ClonedMessageData; typedef mozilla::layout::RenderFrameChild RenderFrameChild; diff --git a/dom/ipc/TabParent.cpp b/dom/ipc/TabParent.cpp index 574eb3799bb0..a7ad45337438 100644 --- a/dom/ipc/TabParent.cpp +++ b/dom/ipc/TabParent.cpp @@ -2796,9 +2796,9 @@ TabParent::HandleEvent(nsIDOMEvent* aEvent) } class FakeChannel final : public nsIChannel, - public nsIAuthPromptCallback, - public nsIInterfaceRequestor, - public nsILoadContext + public nsIAuthPromptCallback, + public nsIInterfaceRequestor, + public nsILoadContext { public: FakeChannel(const nsCString& aUri, uint64_t aCallbackId, Element* aElement) diff --git a/dom/mathml/nsMathMLElement.h b/dom/mathml/nsMathMLElement.h index d55f9cf3d8af..ac387c6c55eb 100644 --- a/dom/mathml/nsMathMLElement.h +++ b/dom/mathml/nsMathMLElement.h @@ -26,8 +26,8 @@ class EventChainPreVisitor; * The base class for MathML elements. */ class nsMathMLElement final : public nsMathMLElementBase, - public nsIDOMElement, - public mozilla::dom::Link + public nsIDOMElement, + public mozilla::dom::Link { public: explicit nsMathMLElement(already_AddRefed& aNodeInfo); diff --git a/dom/media/MediaCache.cpp b/dom/media/MediaCache.cpp index 065ca568d316..2499e6bb0ea5 100644 --- a/dom/media/MediaCache.cpp +++ b/dom/media/MediaCache.cpp @@ -67,7 +67,8 @@ static const uint32_t FREE_BLOCK_SCAN_LIMIT = 16; static MediaCache* gMediaCache; class MediaCacheFlusher final : public nsIObserver, - public nsSupportsWeakReference { + public nsSupportsWeakReference +{ MediaCacheFlusher() {} ~MediaCacheFlusher(); public: diff --git a/dom/media/MediaManager.h b/dom/media/MediaManager.h index 9b9ff9d220ad..e902e1e68edd 100644 --- a/dom/media/MediaManager.h +++ b/dom/media/MediaManager.h @@ -545,7 +545,7 @@ typedef void (*WindowListenerCallback)(MediaManager *aThis, void *aData); class MediaManager final : public nsIMediaManagerService, - public nsIObserver + public nsIObserver { public: static already_AddRefed GetInstance(); diff --git a/dom/media/MediaRecorder.h b/dom/media/MediaRecorder.h index 2b32687165f1..8ad14fdafa62 100644 --- a/dom/media/MediaRecorder.h +++ b/dom/media/MediaRecorder.h @@ -39,7 +39,7 @@ class AudioNode; */ class MediaRecorder final : public DOMEventTargetHelper, - public nsIDocumentActivity + public nsIDocumentActivity { class Session; diff --git a/dom/media/MediaResource.h b/dom/media/MediaResource.h index c3c5dc5e99b0..b15af5db9151 100644 --- a/dom/media/MediaResource.h +++ b/dom/media/MediaResource.h @@ -631,8 +631,8 @@ class ChannelMediaResource : public BaseMediaResource } class Listener final : public nsIStreamListener, - public nsIInterfaceRequestor, - public nsIChannelEventSink + public nsIInterfaceRequestor, + public nsIChannelEventSink { ~Listener() {} public: diff --git a/dom/media/MediaStreamError.h b/dom/media/MediaStreamError.h index 65fc9da11808..411ac0479d6e 100644 --- a/dom/media/MediaStreamError.h +++ b/dom/media/MediaStreamError.h @@ -41,7 +41,7 @@ class BaseMediaMgrError }; class MediaMgrError final : public nsISupports, - public BaseMediaMgrError + public BaseMediaMgrError { public: explicit MediaMgrError(const nsAString& aName, @@ -57,8 +57,8 @@ class MediaMgrError final : public nsISupports, namespace dom { class MediaStreamError final : public nsISupports, - public BaseMediaMgrError, - public nsWrapperCache + public BaseMediaMgrError, + public nsWrapperCache { public: MediaStreamError(nsPIDOMWindow* aParent, diff --git a/dom/media/RTCIdentityProviderRegistrar.h b/dom/media/RTCIdentityProviderRegistrar.h index 38a0de5b716f..18dca0c1713e 100644 --- a/dom/media/RTCIdentityProviderRegistrar.h +++ b/dom/media/RTCIdentityProviderRegistrar.h @@ -21,7 +21,7 @@ namespace dom { class RTCIdentityProvider; class RTCIdentityProviderRegistrar final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/dom/media/RtspMediaResource.h b/dom/media/RtspMediaResource.h index 260c2fa44213..8bebd9d49e2a 100644 --- a/dom/media/RtspMediaResource.h +++ b/dom/media/RtspMediaResource.h @@ -209,7 +209,7 @@ class RtspMediaResource : public BaseMediaResource // data arrival. The Revoke function releases the reference when // RtspMediaResource::OnDisconnected is called. class Listener final : public nsIInterfaceRequestor, - public nsIStreamingProtocolListener + public nsIStreamingProtocolListener { ~Listener() {} public: diff --git a/dom/media/TextTrackCueList.h b/dom/media/TextTrackCueList.h index 24ecd9201961..da71a8d18647 100644 --- a/dom/media/TextTrackCueList.h +++ b/dom/media/TextTrackCueList.h @@ -19,7 +19,7 @@ namespace dom { class TextTrackCue; class TextTrackCueList final : public nsISupports - , public nsWrapperCache + , public nsWrapperCache { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/dom/media/TextTrackRegion.h b/dom/media/TextTrackRegion.h index d24abe59d01d..c6f5c7cce936 100644 --- a/dom/media/TextTrackRegion.h +++ b/dom/media/TextTrackRegion.h @@ -22,7 +22,7 @@ class GlobalObject; class TextTrack; class TextTrackRegion final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { public: diff --git a/dom/media/WebVTTListener.h b/dom/media/WebVTTListener.h index 94604983d794..5be9ceae439e 100644 --- a/dom/media/WebVTTListener.h +++ b/dom/media/WebVTTListener.h @@ -21,9 +21,9 @@ namespace dom { class HTMLTrackElement; class WebVTTListener final : public nsIWebVTTListener, - public nsIStreamListener, - public nsIChannelEventSink, - public nsIInterfaceRequestor + public nsIStreamListener, + public nsIChannelEventSink, + public nsIInterfaceRequestor { NS_DECL_CYCLE_COLLECTING_ISUPPORTS NS_DECL_NSIWEBVTTLISTENER diff --git a/dom/media/eme/MediaKeyStatusMap.h b/dom/media/eme/MediaKeyStatusMap.h index db41b42836c1..b82b5958430c 100644 --- a/dom/media/eme/MediaKeyStatusMap.h +++ b/dom/media/eme/MediaKeyStatusMap.h @@ -24,7 +24,7 @@ namespace dom { class ArrayBufferViewOrArrayBuffer; class MediaKeyStatusMap final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/dom/media/eme/MediaKeySystemAccess.h b/dom/media/eme/MediaKeySystemAccess.h index 48405132df43..ba3751763ae6 100644 --- a/dom/media/eme/MediaKeySystemAccess.h +++ b/dom/media/eme/MediaKeySystemAccess.h @@ -22,7 +22,7 @@ namespace mozilla { namespace dom { class MediaKeySystemAccess final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/dom/media/gmp/GMPAudioDecoderParent.h b/dom/media/gmp/GMPAudioDecoderParent.h index 30dad915b09f..66fc4da94e5e 100644 --- a/dom/media/gmp/GMPAudioDecoderParent.h +++ b/dom/media/gmp/GMPAudioDecoderParent.h @@ -19,7 +19,7 @@ namespace gmp { class GMPParent; class GMPAudioDecoderParent final : public GMPAudioDecoderProxy - , public PGMPAudioDecoderParent + , public PGMPAudioDecoderParent { public: NS_INLINE_DECL_REFCOUNTING(GMPAudioDecoderParent) diff --git a/dom/media/gmp/GMPVideoDecoderParent.h b/dom/media/gmp/GMPVideoDecoderParent.h index 23c4d706c564..42bcac1d0de2 100644 --- a/dom/media/gmp/GMPVideoDecoderParent.h +++ b/dom/media/gmp/GMPVideoDecoderParent.h @@ -21,8 +21,8 @@ namespace gmp { class GMPParent; class GMPVideoDecoderParent final : public PGMPVideoDecoderParent - , public GMPVideoDecoderProxy - , public GMPSharedMemManager + , public GMPVideoDecoderProxy + , public GMPSharedMemManager { public: NS_INLINE_DECL_REFCOUNTING(GMPVideoDecoderParent) diff --git a/dom/media/systemservices/LoadManager.h b/dom/media/systemservices/LoadManager.h index 7df86666604a..d2e5c4e9ead5 100644 --- a/dom/media/systemservices/LoadManager.h +++ b/dom/media/systemservices/LoadManager.h @@ -73,7 +73,7 @@ class LoadManagerSingleton : public LoadNotificationCallback, }; class LoadManager final : public webrtc::CPULoadStateCallbackInvoker, - public webrtc::CpuOveruseObserver + public webrtc::CpuOveruseObserver { public: explicit LoadManager(LoadManagerSingleton* aManager) diff --git a/dom/media/webaudio/AudioContext.h b/dom/media/webaudio/AudioContext.h index f9f751f4b816..ed9a7fe55bd9 100644 --- a/dom/media/webaudio/AudioContext.h +++ b/dom/media/webaudio/AudioContext.h @@ -65,7 +65,7 @@ class PeriodicWave; class Promise; class AudioContext final : public DOMEventTargetHelper, - public nsIMemoryReporter + public nsIMemoryReporter { AudioContext(nsPIDOMWindow* aParentWindow, bool aIsOffline, diff --git a/dom/media/webaudio/AudioDestinationNode.h b/dom/media/webaudio/AudioDestinationNode.h index 58d5a7dc26d7..3aafe9ec423a 100644 --- a/dom/media/webaudio/AudioDestinationNode.h +++ b/dom/media/webaudio/AudioDestinationNode.h @@ -20,9 +20,9 @@ class AudioContext; class EventProxyHandler; class AudioDestinationNode final : public AudioNode - , public nsIDOMEventListener - , public nsIAudioChannelAgentCallback - , public MainThreadMediaStreamListener + , public nsIDOMEventListener + , public nsIAudioChannelAgentCallback + , public MainThreadMediaStreamListener { public: // This node type knows what MediaStreamGraph to use based on diff --git a/dom/media/webaudio/AudioParam.h b/dom/media/webaudio/AudioParam.h index 52f9260eee6c..2e5b6f5c1d3a 100644 --- a/dom/media/webaudio/AudioParam.h +++ b/dom/media/webaudio/AudioParam.h @@ -21,7 +21,7 @@ namespace mozilla { namespace dom { class AudioParam final : public nsWrapperCache, - public AudioParamTimeline + public AudioParamTimeline { virtual ~AudioParam(); diff --git a/dom/media/webspeech/recognition/SpeechGrammar.h b/dom/media/webspeech/recognition/SpeechGrammar.h index 75f33884a648..70453e513f79 100644 --- a/dom/media/webspeech/recognition/SpeechGrammar.h +++ b/dom/media/webspeech/recognition/SpeechGrammar.h @@ -22,7 +22,7 @@ namespace dom { class GlobalObject; class SpeechGrammar final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { public: explicit SpeechGrammar(nsISupports* aParent); diff --git a/dom/media/webspeech/recognition/SpeechGrammarList.h b/dom/media/webspeech/recognition/SpeechGrammarList.h index acfbce269c12..a821ab9817d2 100644 --- a/dom/media/webspeech/recognition/SpeechGrammarList.h +++ b/dom/media/webspeech/recognition/SpeechGrammarList.h @@ -26,7 +26,7 @@ class SpeechGrammar; template class Optional; class SpeechGrammarList final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { public: explicit SpeechGrammarList(nsISupports* aParent, nsISpeechRecognitionService* aRecognitionService); diff --git a/dom/media/webspeech/recognition/SpeechRecognition.h b/dom/media/webspeech/recognition/SpeechRecognition.h index 41d30cb0e60c..98d4f30f6a3c 100644 --- a/dom/media/webspeech/recognition/SpeechRecognition.h +++ b/dom/media/webspeech/recognition/SpeechRecognition.h @@ -56,8 +56,8 @@ PRLogModuleInfo* GetSpeechRecognitionLog(); already_AddRefed GetSpeechRecognitionService(); class SpeechRecognition final : public DOMEventTargetHelper, - public nsIObserver, - public SupportsWeakPtr + public nsIObserver, + public SupportsWeakPtr { public: MOZ_DECLARE_REFCOUNTED_TYPENAME(SpeechRecognition) diff --git a/dom/media/webspeech/recognition/SpeechRecognitionAlternative.h b/dom/media/webspeech/recognition/SpeechRecognitionAlternative.h index a788ce0c104b..b1df9e1d3055 100644 --- a/dom/media/webspeech/recognition/SpeechRecognitionAlternative.h +++ b/dom/media/webspeech/recognition/SpeechRecognitionAlternative.h @@ -21,7 +21,7 @@ namespace dom { class SpeechRecognition; class SpeechRecognitionAlternative final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { public: explicit SpeechRecognitionAlternative(SpeechRecognition* aParent); diff --git a/dom/media/webspeech/recognition/SpeechRecognitionResult.h b/dom/media/webspeech/recognition/SpeechRecognitionResult.h index 0bc93662a77a..cf1545721b2b 100644 --- a/dom/media/webspeech/recognition/SpeechRecognitionResult.h +++ b/dom/media/webspeech/recognition/SpeechRecognitionResult.h @@ -22,7 +22,7 @@ namespace mozilla { namespace dom { class SpeechRecognitionResult final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { public: explicit SpeechRecognitionResult(SpeechRecognition* aParent); diff --git a/dom/media/webspeech/recognition/SpeechRecognitionResultList.h b/dom/media/webspeech/recognition/SpeechRecognitionResultList.h index 3c1855012c2b..861974956ca7 100644 --- a/dom/media/webspeech/recognition/SpeechRecognitionResultList.h +++ b/dom/media/webspeech/recognition/SpeechRecognitionResultList.h @@ -23,7 +23,7 @@ namespace dom { class SpeechRecognition; class SpeechRecognitionResultList final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { public: explicit SpeechRecognitionResultList(SpeechRecognition* aParent); diff --git a/dom/media/webspeech/synth/SpeechSynthesis.h b/dom/media/webspeech/synth/SpeechSynthesis.h index 245f5003425e..4b779f9616eb 100644 --- a/dom/media/webspeech/synth/SpeechSynthesis.h +++ b/dom/media/webspeech/synth/SpeechSynthesis.h @@ -24,7 +24,7 @@ namespace dom { class nsSpeechTask; class SpeechSynthesis final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { public: explicit SpeechSynthesis(nsPIDOMWindow* aParent); diff --git a/dom/media/webspeech/synth/SpeechSynthesisVoice.h b/dom/media/webspeech/synth/SpeechSynthesisVoice.h index 994fba7d2f6d..f55695d55b73 100644 --- a/dom/media/webspeech/synth/SpeechSynthesisVoice.h +++ b/dom/media/webspeech/synth/SpeechSynthesisVoice.h @@ -21,7 +21,7 @@ class nsSynthVoiceRegistry; class SpeechSynthesis; class SpeechSynthesisVoice final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { friend class nsSynthVoiceRegistry; friend class SpeechSynthesis; diff --git a/dom/media/wmf/WMFByteStream.h b/dom/media/wmf/WMFByteStream.h index 45a9a119d5df..9e8a4a6f4e44 100644 --- a/dom/media/wmf/WMFByteStream.h +++ b/dom/media/wmf/WMFByteStream.h @@ -34,7 +34,7 @@ class SharedThreadPool; // For details see the test code at: // https://github.com/cpearce/IMFByteStreamBehaviour/ class WMFByteStream final : public IMFByteStream - , public IMFAttributes + , public IMFAttributes { ~WMFByteStream(); diff --git a/dom/mobileconnection/MobileCellInfo.h b/dom/mobileconnection/MobileCellInfo.h index efb0e7281806..962a9baff1b5 100644 --- a/dom/mobileconnection/MobileCellInfo.h +++ b/dom/mobileconnection/MobileCellInfo.h @@ -15,7 +15,7 @@ namespace mozilla { namespace dom { class MobileCellInfo final : public nsIMobileCellInfo - , public nsWrapperCache + , public nsWrapperCache { public: NS_DECL_NSIMOBILECELLINFO diff --git a/dom/mobileconnection/MobileConnection.cpp b/dom/mobileconnection/MobileConnection.cpp index e639cffbf8d3..5ab4120c37e6 100644 --- a/dom/mobileconnection/MobileConnection.cpp +++ b/dom/mobileconnection/MobileConnection.cpp @@ -50,7 +50,7 @@ using namespace mozilla::dom::mobileconnection; class MobileConnection::Listener final : public nsIMobileConnectionListener #ifdef MOZ_B2G_RIL - , public nsIIccListener + , public nsIIccListener #endif // MOZ_B2G_RIL { MobileConnection* mMobileConnection; diff --git a/dom/mobileconnection/MobileConnection.h b/dom/mobileconnection/MobileConnection.h index ff12e2c7a407..8a4d56c8e718 100644 --- a/dom/mobileconnection/MobileConnection.h +++ b/dom/mobileconnection/MobileConnection.h @@ -22,9 +22,9 @@ namespace mozilla { namespace dom { class MobileConnection final : public DOMEventTargetHelper - , private nsIMobileConnectionListener + , private nsIMobileConnectionListener #ifdef MOZ_B2G_RIL - , private nsIIccListener + , private nsIIccListener #endif // MOZ_B2G_RIL { /** diff --git a/dom/mobileconnection/MobileConnectionArray.h b/dom/mobileconnection/MobileConnectionArray.h index 7846d4e1f0ed..39e91d11c289 100644 --- a/dom/mobileconnection/MobileConnectionArray.h +++ b/dom/mobileconnection/MobileConnectionArray.h @@ -14,7 +14,7 @@ namespace mozilla { namespace dom { class MobileConnectionArray final : public nsISupports - , public nsWrapperCache + , public nsWrapperCache { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/dom/mobileconnection/MobileConnectionInfo.h b/dom/mobileconnection/MobileConnectionInfo.h index 4615d4e7779d..c0095bbfdef2 100644 --- a/dom/mobileconnection/MobileConnectionInfo.h +++ b/dom/mobileconnection/MobileConnectionInfo.h @@ -18,7 +18,7 @@ namespace mozilla { namespace dom { class MobileConnectionInfo final : public nsIMobileConnectionInfo - , public nsWrapperCache + , public nsWrapperCache { public: NS_DECL_NSIMOBILECONNECTIONINFO diff --git a/dom/mobileconnection/MobileNetworkInfo.h b/dom/mobileconnection/MobileNetworkInfo.h index 3f7a26fb07e1..7486fd297f20 100644 --- a/dom/mobileconnection/MobileNetworkInfo.h +++ b/dom/mobileconnection/MobileNetworkInfo.h @@ -18,7 +18,7 @@ namespace dom { class GlobalObject; class MobileNetworkInfo final : public nsIMobileNetworkInfo - , public nsWrapperCache + , public nsWrapperCache { public: NS_DECL_NSIMOBILENETWORKINFO diff --git a/dom/mobileconnection/ipc/MobileConnectionChild.h b/dom/mobileconnection/ipc/MobileConnectionChild.h index f696ac4065e3..ef7d9331f754 100644 --- a/dom/mobileconnection/ipc/MobileConnectionChild.h +++ b/dom/mobileconnection/ipc/MobileConnectionChild.h @@ -26,7 +26,7 @@ namespace mobileconnection { * be created and each instance represents a sim slot. */ class MobileConnectionChild final : public PMobileConnectionChild - , public nsIMobileConnection + , public nsIMobileConnection { public: NS_DECL_ISUPPORTS diff --git a/dom/mobilemessage/MobileMessageManager.h b/dom/mobilemessage/MobileMessageManager.h index 0bc30982df0b..5e3da5d55b04 100644 --- a/dom/mobilemessage/MobileMessageManager.h +++ b/dom/mobilemessage/MobileMessageManager.h @@ -26,7 +26,7 @@ class OwningLongOrMozSmsMessageOrMozMmsMessage; struct SmsSendParameters; class MobileMessageManager final : public DOMEventTargetHelper - , public nsIObserver + , public nsIObserver { public: NS_DECL_ISUPPORTS_INHERITED diff --git a/dom/mobilemessage/ipc/SmsIPCService.h b/dom/mobilemessage/ipc/SmsIPCService.h index 5ac84596dd5b..c8884a1ae523 100644 --- a/dom/mobilemessage/ipc/SmsIPCService.h +++ b/dom/mobilemessage/ipc/SmsIPCService.h @@ -19,9 +19,9 @@ namespace mobilemessage { class PSmsChild; class SmsIPCService final : public nsISmsService - , public nsIMmsService - , public nsIMobileMessageDatabaseService - , public nsIObserver + , public nsIMmsService + , public nsIMobileMessageDatabaseService + , public nsIObserver { public: NS_DECL_ISUPPORTS diff --git a/dom/network/Connection.h b/dom/network/Connection.h index dc761d693649..24bb566a1764 100644 --- a/dom/network/Connection.h +++ b/dom/network/Connection.h @@ -23,8 +23,8 @@ namespace dom { namespace network { class Connection final : public DOMEventTargetHelper - , public NetworkObserver - , public nsINetworkProperties + , public NetworkObserver + , public nsINetworkProperties { public: NS_DECL_ISUPPORTS_INHERITED diff --git a/dom/network/UDPSocket.h b/dom/network/UDPSocket.h index 8b157112d3c3..fd27bd6af3f1 100644 --- a/dom/network/UDPSocket.h +++ b/dom/network/UDPSocket.h @@ -25,8 +25,8 @@ struct UDPOptions; class StringOrBlobOrArrayBufferOrArrayBufferView; class UDPSocket final : public DOMEventTargetHelper - , public nsIUDPSocketListener - , public nsIUDPSocketInternal + , public nsIUDPSocketListener + , public nsIUDPSocketInternal { public: NS_DECL_ISUPPORTS_INHERITED diff --git a/dom/nfc/MozNDEFRecord.h b/dom/nfc/MozNDEFRecord.h index a12c47112f2f..bddcabb2b221 100644 --- a/dom/nfc/MozNDEFRecord.h +++ b/dom/nfc/MozNDEFRecord.h @@ -31,7 +31,7 @@ namespace dom { class MozNDEFRecordOptions; class MozNDEFRecord final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/dom/nfc/gonk/NfcService.h b/dom/nfc/gonk/NfcService.h index 4066dccf8732..56e2150f2498 100644 --- a/dom/nfc/gonk/NfcService.h +++ b/dom/nfc/gonk/NfcService.h @@ -19,7 +19,7 @@ class NfcEventOptions; } // namespace dom class NfcService final : public nsINfcService, - public mozilla::ipc::NfcSocketListener + public mozilla::ipc::NfcSocketListener { public: NS_DECL_ISUPPORTS diff --git a/dom/notification/DesktopNotification.h b/dom/notification/DesktopNotification.h index f4fffd32c33d..43ebdf9d381d 100644 --- a/dom/notification/DesktopNotification.h +++ b/dom/notification/DesktopNotification.h @@ -35,7 +35,7 @@ class DesktopNotification; * Object hangs off of the navigator object and hands out DesktopNotification objects */ class DesktopNotificationCenter final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/dom/offline/nsDOMOfflineResourceList.h b/dom/offline/nsDOMOfflineResourceList.h index 0359ecd8cb28..7c5c8cfaeef1 100644 --- a/dom/offline/nsDOMOfflineResourceList.h +++ b/dom/offline/nsDOMOfflineResourceList.h @@ -35,10 +35,10 @@ class DOMStringList; } // namespace mozilla class nsDOMOfflineResourceList final : public mozilla::DOMEventTargetHelper, - public nsIDOMOfflineResourceList, - public nsIObserver, - public nsIOfflineCacheUpdateObserver, - public nsSupportsWeakReference + public nsIDOMOfflineResourceList, + public nsIObserver, + public nsIOfflineCacheUpdateObserver, + public nsSupportsWeakReference { typedef mozilla::ErrorResult ErrorResult; diff --git a/dom/plugins/base/nsPluginHost.h b/dom/plugins/base/nsPluginHost.h index 81d388213a86..7e0727017ee0 100644 --- a/dom/plugins/base/nsPluginHost.h +++ b/dom/plugins/base/nsPluginHost.h @@ -71,9 +71,9 @@ class nsInvalidPluginTag : public nsISupports }; class nsPluginHost final : public nsIPluginHost, - public nsIObserver, - public nsITimerCallback, - public nsSupportsWeakReference + public nsIObserver, + public nsITimerCallback, + public nsSupportsWeakReference { friend class nsPluginTag; virtual ~nsPluginHost(); diff --git a/dom/plugins/base/nsPluginInstanceOwner.h b/dom/plugins/base/nsPluginInstanceOwner.h index cae18bef6447..01c71cf72ed6 100644 --- a/dom/plugins/base/nsPluginInstanceOwner.h +++ b/dom/plugins/base/nsPluginInstanceOwner.h @@ -50,9 +50,9 @@ class gfxXlibSurface; #endif class nsPluginInstanceOwner final : public nsIPluginInstanceOwner, - public nsIDOMEventListener, - public nsIPrivacyTransitionObserver, - public nsSupportsWeakReference + public nsIDOMEventListener, + public nsIPrivacyTransitionObserver, + public nsSupportsWeakReference { public: nsPluginInstanceOwner(); diff --git a/dom/plugins/ipc/PluginModuleParent.cpp b/dom/plugins/ipc/PluginModuleParent.cpp index 77965e6486bf..01f0fcf832a7 100755 --- a/dom/plugins/ipc/PluginModuleParent.cpp +++ b/dom/plugins/ipc/PluginModuleParent.cpp @@ -2901,7 +2901,7 @@ PluginModuleChromeParent::OnCrash(DWORD processID) #ifdef MOZ_ENABLE_PROFILER_SPS class PluginProfilerObserver final : public nsIObserver, - public nsSupportsWeakReference + public nsSupportsWeakReference { public: NS_DECL_ISUPPORTS diff --git a/dom/power/PowerManager.h b/dom/power/PowerManager.h index de6f8ea5be39..7fb3e81ce774 100644 --- a/dom/power/PowerManager.h +++ b/dom/power/PowerManager.h @@ -22,7 +22,7 @@ class ErrorResult; namespace dom { class PowerManager final : public nsIDOMMozWakeLockListener - , public nsWrapperCache + , public nsWrapperCache { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/dom/presentation/PresentationDeviceManager.h b/dom/presentation/PresentationDeviceManager.h index 4f4645a2675b..908bf34555ba 100644 --- a/dom/presentation/PresentationDeviceManager.h +++ b/dom/presentation/PresentationDeviceManager.h @@ -16,9 +16,9 @@ namespace mozilla { namespace dom { class PresentationDeviceManager final : public nsIPresentationDeviceManager - , public nsIPresentationDeviceListener - , public nsIPresentationDeviceEventListener - , public nsIObserver + , public nsIPresentationDeviceListener + , public nsIPresentationDeviceEventListener + , public nsIObserver { public: NS_DECL_ISUPPORTS diff --git a/dom/quota/QuotaManager.cpp b/dom/quota/QuotaManager.cpp index 2e085c918171..1183cf443d03 100644 --- a/dom/quota/QuotaManager.cpp +++ b/dom/quota/QuotaManager.cpp @@ -263,8 +263,8 @@ class OriginClearRunnable final : public nsRunnable // thread. When on the main thread the runnable will call the callback and then // notify the QuotaManager that the job has been completed. class AsyncUsageRunnable final : public UsageInfo, - public nsRunnable, - public nsIQuotaRequest + public nsRunnable, + public nsIQuotaRequest { enum CallbackState { // Not yet run. diff --git a/dom/quota/QuotaManager.h b/dom/quota/QuotaManager.h index 36059be4ae2c..34c9cd6b9aaa 100644 --- a/dom/quota/QuotaManager.h +++ b/dom/quota/QuotaManager.h @@ -69,7 +69,7 @@ struct OriginParams }; class QuotaManager final : public nsIQuotaManager, - public nsIObserver + public nsIObserver { friend class AsyncUsageRunnable; friend class CollectOriginsHelper; diff --git a/dom/quota/nsIOfflineStorage.h b/dom/quota/nsIOfflineStorage.h index d1bbabc89d2d..987528590f3e 100644 --- a/dom/quota/nsIOfflineStorage.h +++ b/dom/quota/nsIOfflineStorage.h @@ -86,19 +86,19 @@ NS_DEFINE_STATIC_IID_ACCESSOR(nsIOfflineStorage, NS_OFFLINESTORAGE_IID) #define NS_DECL_NSIOFFLINESTORAGE \ NS_IMETHOD_(const nsACString&) \ - Id() override; \ + Id() override; \ \ NS_IMETHOD_(Client*) \ - GetClient() override; \ + GetClient() override; \ \ NS_IMETHOD_(bool) \ - IsOwnedByProcess(ContentParent* aOwner) override; \ + IsOwnedByProcess(ContentParent* aOwner) override; \ \ NS_IMETHOD_(const nsACString&) \ - Origin() override; \ + Origin() override; \ \ NS_IMETHOD_(nsresult) \ - Close() override; \ + Close() override; \ \ NS_IMETHOD_(void) \ Invalidate() override; diff --git a/dom/requestsync/RequestSyncWifiService.h b/dom/requestsync/RequestSyncWifiService.h index a42f4658b709..3b93f9f45df4 100644 --- a/dom/requestsync/RequestSyncWifiService.h +++ b/dom/requestsync/RequestSyncWifiService.h @@ -15,7 +15,7 @@ namespace mozilla { namespace dom { class RequestSyncWifiService final : public nsISupports - , public NetworkObserver + , public NetworkObserver { public: NS_DECL_ISUPPORTS diff --git a/dom/security/nsCORSListenerProxy.cpp b/dom/security/nsCORSListenerProxy.cpp index 87949d882e7c..8a6b1fd21df4 100644 --- a/dom/security/nsCORSListenerProxy.cpp +++ b/dom/security/nsCORSListenerProxy.cpp @@ -917,8 +917,8 @@ nsCORSListenerProxy::UpdateChannel(nsIChannel* aChannel, bool aAllowDataURI) // Class used as streamlistener and notification callback when // doing the initial OPTIONS request for a CORS check class nsCORSPreflightListener final : public nsIStreamListener, - public nsIInterfaceRequestor, - public nsIChannelEventSink + public nsIInterfaceRequestor, + public nsIChannelEventSink { public: nsCORSPreflightListener(nsIChannel* aOuterChannel, diff --git a/dom/security/nsCORSListenerProxy.h b/dom/security/nsCORSListenerProxy.h index c7aa804b9ce3..214c144883bb 100644 --- a/dom/security/nsCORSListenerProxy.h +++ b/dom/security/nsCORSListenerProxy.h @@ -30,9 +30,9 @@ NS_StartCORSPreflight(nsIChannel* aRequestChannel, nsIChannel** aPreflightChannel); class nsCORSListenerProxy final : public nsIStreamListener, - public nsIInterfaceRequestor, - public nsIChannelEventSink, - public nsIAsyncVerifyRedirectCallback + public nsIInterfaceRequestor, + public nsIChannelEventSink, + public nsIAsyncVerifyRedirectCallback { public: nsCORSListenerProxy(nsIStreamListener* aOuter, diff --git a/dom/security/nsCSPContext.h b/dom/security/nsCSPContext.h index fabc486c4919..9f38b1abe329 100644 --- a/dom/security/nsCSPContext.h +++ b/dom/security/nsCSPContext.h @@ -99,7 +99,7 @@ class CSPViolationReportListener : public nsIStreamListener // redirects, per the spec. hence, we implement an nsIChannelEventSink // with an object so we can tell XHR to abort if a redirect happens. class CSPReportRedirectSink final : public nsIChannelEventSink, - public nsIInterfaceRequestor + public nsIInterfaceRequestor { public: NS_DECL_NSICHANNELEVENTSINK diff --git a/dom/smil/TimeEvent.h b/dom/smil/TimeEvent.h index 040c8d973611..647931c48693 100644 --- a/dom/smil/TimeEvent.h +++ b/dom/smil/TimeEvent.h @@ -14,7 +14,7 @@ namespace mozilla { namespace dom { class TimeEvent final : public Event, - public nsIDOMTimeEvent + public nsIDOMTimeEvent { public: TimeEvent(EventTarget* aOwner, diff --git a/dom/smil/nsSMILAnimationController.h b/dom/smil/nsSMILAnimationController.h index c7041322f7ae..2c13e4074560 100644 --- a/dom/smil/nsSMILAnimationController.h +++ b/dom/smil/nsSMILAnimationController.h @@ -42,7 +42,7 @@ class SVGAnimationElement; // here, at the document level. // class nsSMILAnimationController final : public nsSMILTimeContainer, - public nsARefreshObserver + public nsARefreshObserver { public: explicit nsSMILAnimationController(nsIDocument* aDoc); diff --git a/dom/storage/DOMStorageIPC.h b/dom/storage/DOMStorageIPC.h index 004ca1d85ee2..ad17e80201bc 100644 --- a/dom/storage/DOMStorageIPC.h +++ b/dom/storage/DOMStorageIPC.h @@ -23,7 +23,7 @@ class DOMLocalStorageManager; // and expects asynchronous answers. Those are then transparently // forwarded back to consumers on the child process. class DOMStorageDBChild final : public DOMStorageDBBridge - , public PStorageChild + , public PStorageChild { virtual ~DOMStorageDBChild(); @@ -107,7 +107,7 @@ class DOMStorageDBChild final : public DOMStorageDBBridge // Also responsible for forwardning all chrome operation notifications // such as cookie cleaning etc to the child process. class DOMStorageDBParent final : public PStorageParent - , public DOMStorageObserverSink + , public DOMStorageObserverSink { virtual ~DOMStorageDBParent(); diff --git a/dom/svg/DOMSVGAnimatedNumberList.h b/dom/svg/DOMSVGAnimatedNumberList.h index 966c8ef919bd..a8197ece3bf9 100644 --- a/dom/svg/DOMSVGAnimatedNumberList.h +++ b/dom/svg/DOMSVGAnimatedNumberList.h @@ -35,7 +35,7 @@ class SVGNumberList; * weak refs). */ class DOMSVGAnimatedNumberList final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { friend class DOMSVGNumberList; diff --git a/dom/svg/DOMSVGLength.h b/dom/svg/DOMSVGLength.h index 3c99e3c8eae8..3567a57420ae 100644 --- a/dom/svg/DOMSVGLength.h +++ b/dom/svg/DOMSVGLength.h @@ -75,7 +75,7 @@ class ErrorResult; * https://bugzilla.mozilla.org/show_bug.cgi?id=571734 */ class DOMSVGLength final : public nsIDOMSVGLength, - public nsWrapperCache + public nsWrapperCache { friend class AutoChangeLengthNotifier; diff --git a/dom/svg/DOMSVGLengthList.h b/dom/svg/DOMSVGLengthList.h index 088a7b9ea528..2baf54c022a7 100644 --- a/dom/svg/DOMSVGLengthList.h +++ b/dom/svg/DOMSVGLengthList.h @@ -39,7 +39,7 @@ class DOMSVGLength; * Our DOM items are created lazily on demand as and when script requests them. */ class DOMSVGLengthList final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { friend class AutoChangeLengthListNotifier; friend class DOMSVGLength; diff --git a/dom/svg/DOMSVGNumber.h b/dom/svg/DOMSVGNumber.h index f32395052786..0663972a9838 100644 --- a/dom/svg/DOMSVGNumber.h +++ b/dom/svg/DOMSVGNumber.h @@ -34,7 +34,7 @@ namespace mozilla { * See the comment in DOMSVGLength.h (yes, LENGTH), which applies here too. */ class DOMSVGNumber final : public nsISupports - , public nsWrapperCache + , public nsWrapperCache { friend class AutoChangeNumberNotifier; diff --git a/dom/svg/DOMSVGNumberList.h b/dom/svg/DOMSVGNumberList.h index 75adc31b5938..d271cabfc109 100644 --- a/dom/svg/DOMSVGNumberList.h +++ b/dom/svg/DOMSVGNumberList.h @@ -39,7 +39,7 @@ class DOMSVGNumber; * Our DOM items are created lazily on demand as and when script requests them. */ class DOMSVGNumberList final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { friend class AutoChangeNumberListNotifier; friend class DOMSVGNumber; diff --git a/dom/svg/DOMSVGPathSeg.h b/dom/svg/DOMSVGPathSeg.h index 1a499e562dc3..77543169778e 100644 --- a/dom/svg/DOMSVGPathSeg.h +++ b/dom/svg/DOMSVGPathSeg.h @@ -42,25 +42,25 @@ namespace mozilla { } \ /* From DOMSVGPathSeg: */ \ virtual uint32_t \ - Type() const override \ + Type() const override \ { \ return segType; \ } \ virtual DOMSVGPathSeg* \ - Clone() override \ + Clone() override \ { \ /* InternalItem() + 1, because we're skipping the encoded seg type */ \ float *args = IsInList() ? InternalItem() + 1 : mArgs; \ return new DOMSVGPathSeg##segName(args); \ } \ virtual float* \ - PtrToMemberArgs() override \ + PtrToMemberArgs() override \ { \ return mArgs; \ } \ \ virtual JSObject* \ - WrapObject(JSContext* aCx, JS::Handle aGivenProto) override \ + WrapObject(JSContext* aCx, JS::Handle aGivenProto) override \ { \ return dom::SVGPathSeg##segName##Binding::Wrap(aCx, this, aGivenProto); \ } diff --git a/dom/svg/DOMSVGPathSegList.h b/dom/svg/DOMSVGPathSegList.h index a50338afdf23..e7c40c47e77f 100644 --- a/dom/svg/DOMSVGPathSegList.h +++ b/dom/svg/DOMSVGPathSegList.h @@ -47,7 +47,7 @@ class SVGAnimatedPathSegList; * Our DOM items are created lazily on demand as and when script requests them. */ class DOMSVGPathSegList final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { friend class AutoChangePathSegListNotifier; friend class DOMSVGPathSeg; diff --git a/dom/svg/DOMSVGPointList.h b/dom/svg/DOMSVGPointList.h index 511b17a2f981..27aea1e6f4c3 100644 --- a/dom/svg/DOMSVGPointList.h +++ b/dom/svg/DOMSVGPointList.h @@ -48,7 +48,7 @@ class SVGAnimatedPointList; * Our DOM items are created lazily on demand as and when script requests them. */ class DOMSVGPointList final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { friend class AutoChangePointListNotifier; friend class nsISVGPoint; diff --git a/dom/svg/DOMSVGStringList.h b/dom/svg/DOMSVGStringList.h index f6b82c25b822..3793470bd8ab 100644 --- a/dom/svg/DOMSVGStringList.h +++ b/dom/svg/DOMSVGStringList.h @@ -44,7 +44,7 @@ class SVGStringList; * string each time any given item is requested. */ class DOMSVGStringList final : public nsISupports - , public nsWrapperCache + , public nsWrapperCache { friend class AutoChangeStringListNotifier; diff --git a/dom/svg/DOMSVGTransformList.h b/dom/svg/DOMSVGTransformList.h index f493e8c51aa6..8ffa7b64034b 100644 --- a/dom/svg/DOMSVGTransformList.h +++ b/dom/svg/DOMSVGTransformList.h @@ -34,7 +34,7 @@ class SVGTransform; * See the architecture comment in SVGAnimatedTransformList.h. */ class DOMSVGTransformList final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { friend class AutoChangeTransformListNotifier; friend class dom::SVGTransform; diff --git a/dom/svg/SVGAElement.h b/dom/svg/SVGAElement.h index 1c7bf379756c..00b0ccea3b84 100644 --- a/dom/svg/SVGAElement.h +++ b/dom/svg/SVGAElement.h @@ -23,7 +23,7 @@ namespace dom { typedef SVGGraphicsElement SVGAElementBase; class SVGAElement final : public SVGAElementBase, - public Link + public Link { protected: explicit SVGAElement(already_AddRefed& aNodeInfo); diff --git a/dom/svg/SVGAnimatedPreserveAspectRatio.h b/dom/svg/SVGAnimatedPreserveAspectRatio.h index 5536a93bd234..b096d7fb3d34 100644 --- a/dom/svg/SVGAnimatedPreserveAspectRatio.h +++ b/dom/svg/SVGAnimatedPreserveAspectRatio.h @@ -112,7 +112,7 @@ class SVGAnimatedPreserveAspectRatio final namespace dom { class DOMSVGAnimatedPreserveAspectRatio final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { ~DOMSVGAnimatedPreserveAspectRatio(); diff --git a/dom/svg/SVGMPathElement.h b/dom/svg/SVGMPathElement.h index b36d4c279d16..310f383b8815 100644 --- a/dom/svg/SVGMPathElement.h +++ b/dom/svg/SVGMPathElement.h @@ -21,7 +21,7 @@ namespace dom { class SVGPathElement; class SVGMPathElement final : public SVGMPathElementBase, - public nsStubMutationObserver + public nsStubMutationObserver { protected: friend nsresult (::NS_NewSVGMPathElement(nsIContent **aResult, diff --git a/dom/svg/SVGPreserveAspectRatio.h b/dom/svg/SVGPreserveAspectRatio.h index 7dc3bc1b6cc6..3305b397299b 100644 --- a/dom/svg/SVGPreserveAspectRatio.h +++ b/dom/svg/SVGPreserveAspectRatio.h @@ -113,7 +113,7 @@ class SVGPreserveAspectRatio final namespace dom { class DOMSVGPreserveAspectRatio final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/dom/svg/SVGScriptElement.h b/dom/svg/SVGScriptElement.h index 9f40bec07b39..4e40e7cf5ae5 100644 --- a/dom/svg/SVGScriptElement.h +++ b/dom/svg/SVGScriptElement.h @@ -24,7 +24,7 @@ namespace dom { typedef nsSVGElement SVGScriptElementBase; class SVGScriptElement final : public SVGScriptElementBase, - public nsScriptElement + public nsScriptElement { protected: friend nsresult (::NS_NewSVGScriptElement(nsIContent **aResult, diff --git a/dom/svg/SVGStyleElement.h b/dom/svg/SVGStyleElement.h index c1b5c2038955..e495dd114d00 100644 --- a/dom/svg/SVGStyleElement.h +++ b/dom/svg/SVGStyleElement.h @@ -20,8 +20,8 @@ namespace mozilla { namespace dom { class SVGStyleElement final : public SVGStyleElementBase, - public nsStyleLinkElement, - public nsStubMutationObserver + public nsStyleLinkElement, + public nsStubMutationObserver { protected: friend nsresult (::NS_NewSVGStyleElement(nsIContent **aResult, diff --git a/dom/svg/SVGSymbolElement.h b/dom/svg/SVGSymbolElement.h index 7a45aa25d011..187b629dd759 100644 --- a/dom/svg/SVGSymbolElement.h +++ b/dom/svg/SVGSymbolElement.h @@ -20,7 +20,7 @@ namespace dom { typedef nsSVGElement SVGSymbolElementBase; class SVGSymbolElement final : public SVGSymbolElementBase, - public SVGTests + public SVGTests { protected: friend nsresult (::NS_NewSVGSymbolElement(nsIContent **aResult, diff --git a/dom/svg/SVGTitleElement.h b/dom/svg/SVGTitleElement.h index 3153cb608c9b..5ee6bfcc29a4 100644 --- a/dom/svg/SVGTitleElement.h +++ b/dom/svg/SVGTitleElement.h @@ -18,7 +18,7 @@ namespace mozilla { namespace dom { class SVGTitleElement final : public SVGTitleElementBase, - public nsStubMutationObserver + public nsStubMutationObserver { protected: friend nsresult (::NS_NewSVGTitleElement(nsIContent **aResult, diff --git a/dom/svg/SVGUseElement.h b/dom/svg/SVGUseElement.h index 4eef3e665d70..a1029372dabf 100644 --- a/dom/svg/SVGUseElement.h +++ b/dom/svg/SVGUseElement.h @@ -30,7 +30,7 @@ namespace dom { typedef SVGGraphicsElement SVGUseElementBase; class SVGUseElement final : public SVGUseElementBase, - public nsStubMutationObserver + public nsStubMutationObserver { friend class ::nsSVGUseFrame; protected: diff --git a/dom/system/gonk/AudioManager.h b/dom/system/gonk/AudioManager.h index e3381adaec28..02fc94ea8f24 100644 --- a/dom/system/gonk/AudioManager.h +++ b/dom/system/gonk/AudioManager.h @@ -39,7 +39,7 @@ namespace gonk { class RecoverTask; class AudioChannelVolInitCallback; class AudioManager final : public nsIAudioManager - , public nsIObserver + , public nsIObserver { public: static already_AddRefed GetInstance(); diff --git a/dom/system/gonk/SystemWorkerManager.h b/dom/system/gonk/SystemWorkerManager.h index 46177f892fb5..d5b4a33a8156 100644 --- a/dom/system/gonk/SystemWorkerManager.h +++ b/dom/system/gonk/SystemWorkerManager.h @@ -37,8 +37,8 @@ namespace dom { namespace gonk { class SystemWorkerManager final : public nsIObserver, - public nsIInterfaceRequestor, - public nsISystemWorkerManager + public nsIInterfaceRequestor, + public nsISystemWorkerManager { public: NS_DECL_ISUPPORTS diff --git a/dom/system/gonk/nsVolumeMountLock.h b/dom/system/gonk/nsVolumeMountLock.h index c61183b37aac..40be57800582 100644 --- a/dom/system/gonk/nsVolumeMountLock.h +++ b/dom/system/gonk/nsVolumeMountLock.h @@ -26,8 +26,8 @@ namespace system { */ class nsVolumeMountLock final : public nsIVolumeMountLock, - public nsIObserver, - public nsSupportsWeakReference + public nsIObserver, + public nsSupportsWeakReference { public: NS_DECL_ISUPPORTS diff --git a/dom/system/gonk/nsVolumeService.h b/dom/system/gonk/nsVolumeService.h index e5fe6ec181bf..c393cec74af4 100644 --- a/dom/system/gonk/nsVolumeService.h +++ b/dom/system/gonk/nsVolumeService.h @@ -32,7 +32,7 @@ class Volume; */ class nsVolumeService final : public nsIVolumeService, - public nsIDOMMozWakeLockListener + public nsIDOMMozWakeLockListener { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/dom/telephony/CallsList.h b/dom/telephony/CallsList.h index 0c158065d1c2..81f40751298e 100644 --- a/dom/telephony/CallsList.h +++ b/dom/telephony/CallsList.h @@ -15,7 +15,7 @@ namespace mozilla { namespace dom { class CallsList final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { nsRefPtr mTelephony; nsRefPtr mGroup; diff --git a/dom/telephony/MMICall.h b/dom/telephony/MMICall.h index f263448f80c9..d7b5b1989b21 100644 --- a/dom/telephony/MMICall.h +++ b/dom/telephony/MMICall.h @@ -25,7 +25,7 @@ namespace mozilla { namespace dom { class MMICall final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/dom/telephony/Telephony.h b/dom/telephony/Telephony.h index c8dce339fc8c..db1d09333417 100644 --- a/dom/telephony/Telephony.h +++ b/dom/telephony/Telephony.h @@ -31,7 +31,7 @@ class TelephonyDialCallback; class OwningTelephonyCallOrTelephonyCallGroup; class Telephony final : public DOMEventTargetHelper, - private nsITelephonyListener + private nsITelephonyListener { /** * Class Telephony doesn't actually expose nsITelephonyListener. diff --git a/dom/telephony/TelephonyCallId.h b/dom/telephony/TelephonyCallId.h index c54c8f6ffc25..bd8d020d1c10 100644 --- a/dom/telephony/TelephonyCallId.h +++ b/dom/telephony/TelephonyCallId.h @@ -18,7 +18,7 @@ namespace mozilla { namespace dom { class TelephonyCallId final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/dom/telephony/TelephonyDialCallback.h b/dom/telephony/TelephonyDialCallback.h index aa0559bf49ef..721364d76b6d 100644 --- a/dom/telephony/TelephonyDialCallback.h +++ b/dom/telephony/TelephonyDialCallback.h @@ -24,7 +24,7 @@ namespace dom { namespace telephony { class TelephonyDialCallback final : public TelephonyCallback, - public nsITelephonyDialCallback + public nsITelephonyDialCallback { public: NS_DECL_ISUPPORTS_INHERITED diff --git a/dom/telephony/USSDSession.h b/dom/telephony/USSDSession.h index 6e1f15685e78..c8ba998dff1e 100644 --- a/dom/telephony/USSDSession.h +++ b/dom/telephony/USSDSession.h @@ -24,7 +24,7 @@ namespace mozilla { namespace dom { class USSDSession final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/dom/telephony/ipc/TelephonyIPCService.h b/dom/telephony/ipc/TelephonyIPCService.h index 84bddd313e8e..72d26d311eab 100644 --- a/dom/telephony/ipc/TelephonyIPCService.h +++ b/dom/telephony/ipc/TelephonyIPCService.h @@ -17,8 +17,8 @@ class IPCTelephonyRequest; class PTelephonyChild; class TelephonyIPCService final : public nsITelephonyService - , public nsITelephonyListener - , public nsIObserver + , public nsITelephonyListener + , public nsIObserver { public: NS_DECL_ISUPPORTS diff --git a/dom/time/TimeManager.h b/dom/time/TimeManager.h index b7bc189b7600..a1879ec5cd5c 100644 --- a/dom/time/TimeManager.h +++ b/dom/time/TimeManager.h @@ -18,7 +18,7 @@ class Date; namespace time { class TimeManager final : public nsISupports - , public nsWrapperCache + , public nsWrapperCache { public: static bool PrefEnabled(JSContext* aCx, JSObject* aGlobal) diff --git a/dom/tv/TVProgram.h b/dom/tv/TVProgram.h index c66c940bce51..be834c22c145 100644 --- a/dom/tv/TVProgram.h +++ b/dom/tv/TVProgram.h @@ -17,7 +17,7 @@ namespace dom { class TVChannel; class TVProgram final : public nsISupports - , public nsWrapperCache + , public nsWrapperCache { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/dom/voicemail/Voicemail.h b/dom/voicemail/Voicemail.h index a3a61a9b40f2..045528fa4e27 100644 --- a/dom/voicemail/Voicemail.h +++ b/dom/voicemail/Voicemail.h @@ -23,7 +23,7 @@ namespace dom { class VoicemailStatus; class Voicemail final : public DOMEventTargetHelper, - private nsIVoicemailListener + private nsIVoicemailListener { /** * Class Voicemail doesn't actually expose nsIVoicemailListener. Instead, it diff --git a/dom/voicemail/VoicemailStatus.h b/dom/voicemail/VoicemailStatus.h index 9b31f3c1e818..b423adc59587 100644 --- a/dom/voicemail/VoicemailStatus.h +++ b/dom/voicemail/VoicemailStatus.h @@ -17,7 +17,7 @@ namespace mozilla { namespace dom { class VoicemailStatus final : public nsISupports - , public nsWrapperCache + , public nsWrapperCache { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/dom/voicemail/ipc/VoicemailIPCService.h b/dom/voicemail/ipc/VoicemailIPCService.h index 350cfba212e2..7cf5f704187a 100644 --- a/dom/voicemail/ipc/VoicemailIPCService.h +++ b/dom/voicemail/ipc/VoicemailIPCService.h @@ -17,7 +17,7 @@ namespace dom { namespace voicemail { class VoicemailIPCService final : public PVoicemailChild - , public nsIVoicemailService + , public nsIVoicemailService { public: NS_DECL_ISUPPORTS diff --git a/dom/voicemail/ipc/VoicemailParent.h b/dom/voicemail/ipc/VoicemailParent.h index 16eeb2021138..c980665580a7 100644 --- a/dom/voicemail/ipc/VoicemailParent.h +++ b/dom/voicemail/ipc/VoicemailParent.h @@ -19,7 +19,7 @@ namespace dom { namespace voicemail { class VoicemailParent final : public PVoicemailParent - , public nsIVoicemailListener + , public nsIVoicemailListener { public: NS_DECL_ISUPPORTS diff --git a/dom/wifi/WifiCertService.h b/dom/wifi/WifiCertService.h index 8ef1347266c6..8621b93d0eca 100644 --- a/dom/wifi/WifiCertService.h +++ b/dom/wifi/WifiCertService.h @@ -16,7 +16,7 @@ namespace mozilla { namespace dom { class WifiCertService final : public nsIWifiCertService, - public nsNSSShutDownObject + public nsNSSShutDownObject { public: NS_DECL_ISUPPORTS diff --git a/dom/workers/DataStore.h b/dom/workers/DataStore.h index a9fff64ed111..d18414cb2f97 100644 --- a/dom/workers/DataStore.h +++ b/dom/workers/DataStore.h @@ -99,7 +99,7 @@ class WorkerDataStore final : public DOMEventTargetHelper }; class DataStoreChangeEventProxy final : public nsIDOMEventListener - , public WorkerFeature + , public WorkerFeature { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/dom/workers/ScriptLoader.cpp b/dom/workers/ScriptLoader.cpp index 8b51466a662f..a48294d0e6ea 100644 --- a/dom/workers/ScriptLoader.cpp +++ b/dom/workers/ScriptLoader.cpp @@ -222,8 +222,8 @@ class ScriptExecutorRunnable final : public MainThreadWorkerSyncRunnable }; class ScriptLoaderRunnable final : public WorkerFeature, - public nsIRunnable, - public nsIStreamLoaderObserver + public nsIRunnable, + public nsIStreamLoaderObserver { friend class ScriptExecutorRunnable; diff --git a/dom/workers/ServiceWorkerClients.h b/dom/workers/ServiceWorkerClients.h index 203fd1898d5f..08c4bba94a9c 100644 --- a/dom/workers/ServiceWorkerClients.h +++ b/dom/workers/ServiceWorkerClients.h @@ -20,7 +20,7 @@ namespace dom { namespace workers { class ServiceWorkerClients final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/dom/workers/ServiceWorkerManager.cpp b/dom/workers/ServiceWorkerManager.cpp index 96ab04a5787e..1aa7db37579b 100644 --- a/dom/workers/ServiceWorkerManager.cpp +++ b/dom/workers/ServiceWorkerManager.cpp @@ -484,7 +484,7 @@ GetRequiredScopeStringPrefix(const nsACString& aScriptSpec, nsACString& aPrefix) } // anonymous namespace class ServiceWorkerRegisterJob final : public ServiceWorkerJob, - public nsIStreamLoaderObserver + public nsIStreamLoaderObserver { friend class ContinueInstallTask; diff --git a/dom/workers/WorkerScope.cpp b/dom/workers/WorkerScope.cpp index 2958eaaca2c4..506e41b058fa 100644 --- a/dom/workers/WorkerScope.cpp +++ b/dom/workers/WorkerScope.cpp @@ -613,8 +613,8 @@ class UnregisterResultRunnable final : public WorkerRunnable }; class WorkerScopeUnregisterRunnable final : public nsRunnable - , public nsIServiceWorkerUnregisterCallback - , public WorkerFeature + , public nsIServiceWorkerUnregisterCallback + , public WorkerFeature { WorkerPrivate* mWorkerPrivate; nsString mScope; diff --git a/dom/workers/WorkerScope.h b/dom/workers/WorkerScope.h index 17450132701b..ab165e197ebb 100644 --- a/dom/workers/WorkerScope.h +++ b/dom/workers/WorkerScope.h @@ -236,7 +236,7 @@ class ServiceWorkerGlobalScope final : public WorkerGlobalScope }; class WorkerDebuggerGlobalScope final : public DOMEventTargetHelper, - public nsIGlobalObject + public nsIGlobalObject { WorkerPrivate* mWorkerPrivate; diff --git a/dom/workers/XMLHttpRequest.cpp b/dom/workers/XMLHttpRequest.cpp index 481e7ef40f7a..8e7a836c66ac 100644 --- a/dom/workers/XMLHttpRequest.cpp +++ b/dom/workers/XMLHttpRequest.cpp @@ -315,7 +315,7 @@ class AsyncTeardownRunnable final : public nsRunnable }; class LoadStartDetectionRunnable final : public nsRunnable, - public nsIDOMEventListener + public nsIDOMEventListener { WorkerPrivate* mWorkerPrivate; nsRefPtr mProxy; diff --git a/dom/workers/XMLHttpRequest.h b/dom/workers/XMLHttpRequest.h index 07dfcec78915..a12dc19caf1f 100644 --- a/dom/workers/XMLHttpRequest.h +++ b/dom/workers/XMLHttpRequest.h @@ -29,7 +29,7 @@ class XMLHttpRequestUpload; class WorkerPrivate; class XMLHttpRequest final: public nsXHREventTarget, - public WorkerFeature + public WorkerFeature { public: struct StateData diff --git a/dom/xbl/nsXBLService.cpp b/dom/xbl/nsXBLService.cpp index ea2301601643..a4ee79bc160c 100644 --- a/dom/xbl/nsXBLService.cpp +++ b/dom/xbl/nsXBLService.cpp @@ -168,7 +168,7 @@ class nsXBLBindingRequest // asynchronous parsing of URLs /* Header file */ class nsXBLStreamListener final : public nsIStreamListener, - public nsIDOMEventListener + public nsIDOMEventListener { public: NS_DECL_ISUPPORTS diff --git a/dom/xml/CDATASection.h b/dom/xml/CDATASection.h index cd19fdfb4459..4f45aebbca9d 100644 --- a/dom/xml/CDATASection.h +++ b/dom/xml/CDATASection.h @@ -14,7 +14,7 @@ namespace mozilla { namespace dom { class CDATASection final : public Text, - public nsIDOMCDATASection + public nsIDOMCDATASection { private: void Init() diff --git a/dom/xslt/xpath/XPathResult.h b/dom/xslt/xpath/XPathResult.h index b74380eacd4a..268e21df9828 100644 --- a/dom/xslt/xpath/XPathResult.h +++ b/dom/xslt/xpath/XPathResult.h @@ -45,8 +45,8 @@ namespace dom { * A class for evaluating an XPath expression string */ class XPathResult final : public nsIXPathResult, - public nsStubMutationObserver, - public nsWrapperCache + public nsStubMutationObserver, + public nsWrapperCache { ~XPathResult(); diff --git a/dom/xslt/xslt/txMozillaStylesheetCompiler.cpp b/dom/xslt/xslt/txMozillaStylesheetCompiler.cpp index 3ef40f9fb158..3753aa11b77f 100644 --- a/dom/xslt/xslt/txMozillaStylesheetCompiler.cpp +++ b/dom/xslt/xslt/txMozillaStylesheetCompiler.cpp @@ -65,9 +65,9 @@ getSpec(nsIChannel* aChannel, nsAString& aSpec) } class txStylesheetSink final : public nsIXMLContentSink, - public nsIExpatSink, - public nsIStreamListener, - public nsIInterfaceRequestor + public nsIExpatSink, + public nsIStreamListener, + public nsIInterfaceRequestor { public: txStylesheetSink(txStylesheetCompiler* aCompiler, nsIParser* aParser); diff --git a/dom/xslt/xslt/txMozillaXMLOutput.h b/dom/xslt/xslt/txMozillaXMLOutput.h index e2dc6dd9af30..75732d596f31 100644 --- a/dom/xslt/xslt/txMozillaXMLOutput.h +++ b/dom/xslt/xslt/txMozillaXMLOutput.h @@ -29,7 +29,7 @@ class nsIDocument; class nsINode; class txTransformNotifier final : public nsIScriptLoaderObserver, - public nsICSSLoaderObserver + public nsICSSLoaderObserver { public: txTransformNotifier(); diff --git a/dom/xslt/xslt/txMozillaXSLTProcessor.h b/dom/xslt/xslt/txMozillaXSLTProcessor.h index febca578df13..11ab8b2c3d59 100644 --- a/dom/xslt/xslt/txMozillaXSLTProcessor.h +++ b/dom/xslt/xslt/txMozillaXSLTProcessor.h @@ -50,10 +50,10 @@ class GlobalObject; * txMozillaXSLTProcessor is a front-end to the XSLT Processor. */ class txMozillaXSLTProcessor final : public nsIXSLTProcessor, - public nsIXSLTProcessorPrivate, - public nsIDocumentTransformer, - public nsStubMutationObserver, - public nsWrapperCache + public nsIXSLTProcessorPrivate, + public nsIDocumentTransformer, + public nsStubMutationObserver, + public nsWrapperCache { public: /** diff --git a/dom/xslt/xslt/txStylesheetCompiler.h b/dom/xslt/xslt/txStylesheetCompiler.h index 7416f7e6d052..8bbd45dc91f3 100644 --- a/dom/xslt/xslt/txStylesheetCompiler.h +++ b/dom/xslt/xslt/txStylesheetCompiler.h @@ -187,7 +187,7 @@ struct txStylesheetAttr }; class txStylesheetCompiler final : private txStylesheetCompilerState, - public txACompileObserver + public txACompileObserver { public: friend class txStylesheetCompilerState; diff --git a/dom/xul/XULDocument.h b/dom/xul/XULDocument.h index d411168d7010..ef7100259da3 100644 --- a/dom/xul/XULDocument.h +++ b/dom/xul/XULDocument.h @@ -87,11 +87,11 @@ namespace mozilla { namespace dom { class XULDocument final : public XMLDocument, - public nsIXULDocument, - public nsIDOMXULDocument, - public nsIStreamLoaderObserver, - public nsICSSLoaderObserver, - public nsIOffThreadScriptReceiver + public nsIXULDocument, + public nsIDOMXULDocument, + public nsIStreamLoaderObserver, + public nsICSSLoaderObserver, + public nsIOffThreadScriptReceiver { public: XULDocument(); diff --git a/dom/xul/nsXULContentSink.h b/dom/xul/nsXULContentSink.h index 2d61cd10d9b9..793685ddd4fa 100644 --- a/dom/xul/nsXULContentSink.h +++ b/dom/xul/nsXULContentSink.h @@ -23,7 +23,7 @@ class nsXULPrototypeElement; class nsXULPrototypeNode; class XULContentSinkImpl final : public nsIXMLContentSink, - public nsIExpatSink + public nsIExpatSink { public: XULContentSinkImpl(); diff --git a/dom/xul/nsXULElement.cpp b/dom/xul/nsXULElement.cpp index bba1854cf786..dee3cd51f8e9 100644 --- a/dom/xul/nsXULElement.cpp +++ b/dom/xul/nsXULElement.cpp @@ -124,7 +124,7 @@ uint32_t nsXULPrototypeAttribute::gNumCacheFills; #endif class nsXULElementTearoff final : public nsIDOMElementCSSInlineStyle, - public nsIFrameLoaderOwner + public nsIFrameLoaderOwner { ~nsXULElementTearoff() {} diff --git a/dom/xul/nsXULElement.h b/dom/xul/nsXULElement.h index d6e6c3b1bbda..66b3a3849bad 100644 --- a/dom/xul/nsXULElement.h +++ b/dom/xul/nsXULElement.h @@ -368,7 +368,7 @@ ASSERT_NODE_FLAGS_SPACE(ELEMENT_TYPE_SPECIFIC_BITS_OFFSET + 3); class nsScriptEventHandlerOwnerTearoff; class nsXULElement final : public nsStyledElement, - public nsIDOMXULElement + public nsIDOMXULElement { public: explicit nsXULElement(already_AddRefed aNodeInfo); diff --git a/dom/xul/templates/nsXULTemplateQueryProcessorRDF.h b/dom/xul/templates/nsXULTemplateQueryProcessorRDF.h index 7040ed462576..aaa4691e5718 100644 --- a/dom/xul/templates/nsXULTemplateQueryProcessorRDF.h +++ b/dom/xul/templates/nsXULTemplateQueryProcessorRDF.h @@ -41,7 +41,7 @@ class nsXULTemplateResultRDF; * An object that generates results from a query on an RDF graph */ class nsXULTemplateQueryProcessorRDF final : public nsIXULTemplateQueryProcessor, - public nsIRDFObserver + public nsIRDFObserver { public: typedef nsTArray > ResultArray; diff --git a/dom/xul/templates/nsXULTemplateQueryProcessorXML.h b/dom/xul/templates/nsXULTemplateQueryProcessorXML.h index 0d79914bfd3f..8d2d6bd8e03d 100644 --- a/dom/xul/templates/nsXULTemplateQueryProcessorXML.h +++ b/dom/xul/templates/nsXULTemplateQueryProcessorXML.h @@ -119,7 +119,7 @@ class nsXULTemplateResultSetXML final : public nsISimpleEnumerator }; class nsXULTemplateQueryProcessorXML final : public nsIXULTemplateQueryProcessor, - public nsIDOMEventListener + public nsIDOMEventListener { public: diff --git a/editor/composer/nsEditingSession.h b/editor/composer/nsEditingSession.h index a6f17f184bfd..2351ad4ea850 100644 --- a/editor/composer/nsEditingSession.h +++ b/editor/composer/nsEditingSession.h @@ -44,8 +44,8 @@ class nsIEditor; class nsIWebProgress; class nsEditingSession final : public nsIEditingSession, - public nsIWebProgressListener, - public nsSupportsWeakReference + public nsIWebProgressListener, + public nsSupportsWeakReference { public: diff --git a/editor/libeditor/nsHTMLEditor.h b/editor/libeditor/nsHTMLEditor.h index e582cc1969b9..206a5424d19e 100644 --- a/editor/libeditor/nsHTMLEditor.h +++ b/editor/libeditor/nsHTMLEditor.h @@ -65,14 +65,14 @@ struct IMEState; * Use to edit HTML document represented as a DOM tree. */ class nsHTMLEditor final : public nsPlaintextEditor, - public nsIHTMLEditor, - public nsIHTMLObjectResizer, - public nsIHTMLAbsPosEditor, - public nsITableEditor, - public nsIHTMLInlineTableEditor, - public nsIEditorStyleSheets, - public nsICSSLoaderObserver, - public nsStubMutationObserver + public nsIHTMLEditor, + public nsIHTMLObjectResizer, + public nsIHTMLAbsPosEditor, + public nsITableEditor, + public nsIHTMLInlineTableEditor, + public nsIEditorStyleSheets, + public nsICSSLoaderObserver, + public nsStubMutationObserver { typedef enum {eNoOp, eReplaceParent=1, eInsertParent=2} BlockTransformationType; diff --git a/editor/txmgr/nsTransactionManager.h b/editor/txmgr/nsTransactionManager.h index d1fb164be9b6..2b244f482719 100644 --- a/editor/txmgr/nsTransactionManager.h +++ b/editor/txmgr/nsTransactionManager.h @@ -24,7 +24,7 @@ class nsTransactionItem; * */ class nsTransactionManager final : public nsITransactionManager - , public nsSupportsWeakReference + , public nsSupportsWeakReference { private: diff --git a/editor/txtsvc/nsTextServicesDocument.h b/editor/txtsvc/nsTextServicesDocument.h index 782592ba89a8..b41941f18ba1 100644 --- a/editor/txtsvc/nsTextServicesDocument.h +++ b/editor/txtsvc/nsTextServicesDocument.h @@ -33,7 +33,7 @@ class nsString; * */ class nsTextServicesDocument final : public nsITextServicesDocument, - public nsIEditActionListener + public nsIEditActionListener { private: static nsIAtom *sAAtom; diff --git a/embedding/browser/nsDocShellTreeOwner.h b/embedding/browser/nsDocShellTreeOwner.h index e1666ad1c733..fc87bd8e92d9 100644 --- a/embedding/browser/nsDocShellTreeOwner.h +++ b/embedding/browser/nsDocShellTreeOwner.h @@ -61,12 +61,12 @@ NS_DEFINE_STATIC_IID_ACCESSOR(nsICDocShellTreeOwner, NS_ICDOCSHELLTREEOWNER_IID) class nsDocShellTreeOwner final : public nsIDocShellTreeOwner, - public nsIBaseWindow, - public nsIInterfaceRequestor, - public nsIWebProgressListener, - public nsIDOMEventListener, - public nsICDocShellTreeOwner, - public nsSupportsWeakReference + public nsIBaseWindow, + public nsIInterfaceRequestor, + public nsIWebProgressListener, + public nsIDOMEventListener, + public nsICDocShellTreeOwner, + public nsSupportsWeakReference { friend class nsWebBrowser; friend class nsCommandHandler; diff --git a/embedding/browser/nsWebBrowser.h b/embedding/browser/nsWebBrowser.h index a9efbd1841a6..88eeb413faf2 100644 --- a/embedding/browser/nsWebBrowser.h +++ b/embedding/browser/nsWebBrowser.h @@ -73,19 +73,19 @@ class nsWebBrowserListenerState class nsWebBrowser final : public nsIWebBrowser, - public nsIWebNavigation, - public nsIWebBrowserSetup, - public nsIDocShellTreeItem, - public nsIBaseWindow, - public nsIScrollable, - public nsITextScroll, - public nsIInterfaceRequestor, - public nsIWebBrowserPersist, - public nsIWebBrowserFocus, - public nsIWebProgressListener, - public nsIWebBrowserStream, - public nsIWidgetListener, - public nsSupportsWeakReference + public nsIWebNavigation, + public nsIWebBrowserSetup, + public nsIDocShellTreeItem, + public nsIBaseWindow, + public nsIScrollable, + public nsITextScroll, + public nsIInterfaceRequestor, + public nsIWebBrowserPersist, + public nsIWebBrowserFocus, + public nsIWebProgressListener, + public nsIWebBrowserStream, + public nsIWidgetListener, + public nsSupportsWeakReference { friend class nsDocShellTreeOwner; public: diff --git a/embedding/components/printingui/ipc/PrintProgressDialogChild.h b/embedding/components/printingui/ipc/PrintProgressDialogChild.h index c431f89e711c..b0a7105d7ab0 100644 --- a/embedding/components/printingui/ipc/PrintProgressDialogChild.h +++ b/embedding/components/printingui/ipc/PrintProgressDialogChild.h @@ -15,8 +15,8 @@ namespace mozilla { namespace embedding { class PrintProgressDialogChild final : public PPrintProgressDialogChild, - public nsIWebProgressListener, - public nsIPrintProgressParams + public nsIWebProgressListener, + public nsIPrintProgressParams { NS_DECL_ISUPPORTS NS_DECL_NSIWEBPROGRESSLISTENER diff --git a/embedding/components/printingui/ipc/PrintProgressDialogParent.h b/embedding/components/printingui/ipc/PrintProgressDialogParent.h index 1c1bb5e5b9a2..540609162a8a 100644 --- a/embedding/components/printingui/ipc/PrintProgressDialogParent.h +++ b/embedding/components/printingui/ipc/PrintProgressDialogParent.h @@ -14,7 +14,7 @@ class nsIWebProgressListener; namespace mozilla { namespace embedding { class PrintProgressDialogParent final : public PPrintProgressDialogParent, - public nsIObserver + public nsIObserver { public: NS_DECL_ISUPPORTS diff --git a/extensions/cookie/nsPermissionManager.h b/extensions/cookie/nsPermissionManager.h index 5a2eb6936b44..3b4252015ef2 100644 --- a/extensions/cookie/nsPermissionManager.h +++ b/extensions/cookie/nsPermissionManager.h @@ -29,8 +29,8 @@ class mozIStorageAsyncStatement; //////////////////////////////////////////////////////////////////////////////// class nsPermissionManager final : public nsIPermissionManager, - public nsIObserver, - public nsSupportsWeakReference + public nsIObserver, + public nsSupportsWeakReference { public: class PermissionEntry diff --git a/extensions/gio/nsGIOProtocolHandler.cpp b/extensions/gio/nsGIOProtocolHandler.cpp index 26e961ca1e16..83a8d150ddce 100644 --- a/extensions/gio/nsGIOProtocolHandler.cpp +++ b/extensions/gio/nsGIOProtocolHandler.cpp @@ -883,7 +883,7 @@ mount_operation_ask_password (GMountOperation *mount_op, //----------------------------------------------------------------------------- class nsGIOProtocolHandler final : public nsIProtocolHandler - , public nsIObserver + , public nsIObserver { public: NS_DECL_ISUPPORTS diff --git a/extensions/permissions/nsContentBlocker.h b/extensions/permissions/nsContentBlocker.h index 40a355cc6134..88030095209f 100644 --- a/extensions/permissions/nsContentBlocker.h +++ b/extensions/permissions/nsContentBlocker.h @@ -16,8 +16,8 @@ class nsIPrefBranch; //////////////////////////////////////////////////////////////////////////////// class nsContentBlocker final : public nsIContentPolicy, - public nsIObserver, - public nsSupportsWeakReference + public nsIObserver, + public nsSupportsWeakReference { public: diff --git a/extensions/spellcheck/hunspell/src/mozHunspell.h b/extensions/spellcheck/hunspell/src/mozHunspell.h index bfe9c25b7f7e..203766d8997d 100644 --- a/extensions/spellcheck/hunspell/src/mozHunspell.h +++ b/extensions/spellcheck/hunspell/src/mozHunspell.h @@ -82,9 +82,9 @@ { 0xa6, 0x89, 0x88, 0x66, 0x92, 0xa9, 0x7f, 0xe7 } } class mozHunspell final : public mozISpellCheckingEngine, - public nsIObserver, - public nsSupportsWeakReference, - public nsIMemoryReporter + public nsIObserver, + public nsSupportsWeakReference, + public nsIMemoryReporter { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/extensions/spellcheck/src/mozInlineSpellChecker.h b/extensions/spellcheck/src/mozInlineSpellChecker.h index 000ee1bfda15..ad4317cf6ead 100644 --- a/extensions/spellcheck/src/mozInlineSpellChecker.h +++ b/extensions/spellcheck/src/mozInlineSpellChecker.h @@ -117,9 +117,9 @@ class mozInlineSpellStatus }; class mozInlineSpellChecker final : public nsIInlineSpellChecker, - public nsIEditActionListener, - public nsIDOMEventListener, - public nsSupportsWeakReference + public nsIEditActionListener, + public nsIDOMEventListener, + public nsSupportsWeakReference { private: friend class mozInlineSpellStatus; diff --git a/extensions/spellcheck/src/mozPersonalDictionary.h b/extensions/spellcheck/src/mozPersonalDictionary.h index 6dde16205924..b169ebe96ca2 100644 --- a/extensions/spellcheck/src/mozPersonalDictionary.h +++ b/extensions/spellcheck/src/mozPersonalDictionary.h @@ -27,8 +27,8 @@ class mozPersonalDictionaryLoader; class mozPersonalDictionary final : public mozIPersonalDictionary, - public nsIObserver, - public nsSupportsWeakReference + public nsIObserver, + public nsSupportsWeakReference { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/gfx/2d/ExtendInputEffectD2D1.h b/gfx/2d/ExtendInputEffectD2D1.h index 093063897994..724c6a71e3cc 100644 --- a/gfx/2d/ExtendInputEffectD2D1.h +++ b/gfx/2d/ExtendInputEffectD2D1.h @@ -34,7 +34,7 @@ enum { // (which can transform transparent pixels into non-transparent ones, but only // inside their input effect's output rect). class ExtendInputEffectD2D1 final : public ID2D1EffectImpl - , public ID2D1DrawTransform + , public ID2D1DrawTransform { public: // ID2D1EffectImpl diff --git a/gfx/2d/RadialGradientEffectD2D1.h b/gfx/2d/RadialGradientEffectD2D1.h index ac8d433dcd09..a902588d1106 100644 --- a/gfx/2d/RadialGradientEffectD2D1.h +++ b/gfx/2d/RadialGradientEffectD2D1.h @@ -39,7 +39,7 @@ enum { }; class RadialGradientEffectD2D1 final : public ID2D1EffectImpl - , public ID2D1DrawTransform + , public ID2D1DrawTransform { public: // ID2D1EffectImpl diff --git a/gfx/layers/client/ClientPaintedLayer.h b/gfx/layers/client/ClientPaintedLayer.h index 5b8e4de0b1c6..b8f2b7496160 100644 --- a/gfx/layers/client/ClientPaintedLayer.h +++ b/gfx/layers/client/ClientPaintedLayer.h @@ -28,7 +28,7 @@ class ShadowableLayer; class SpecificLayerAttributes; class ClientPaintedLayer : public PaintedLayer, - public ClientLayer { + public ClientLayer { public: typedef RotatedContentBuffer::PaintState PaintState; typedef RotatedContentBuffer::ContentType ContentType; diff --git a/gfx/layers/client/ClientTiledPaintedLayer.h b/gfx/layers/client/ClientTiledPaintedLayer.h index 1492d1286093..57999a2baddd 100644 --- a/gfx/layers/client/ClientTiledPaintedLayer.h +++ b/gfx/layers/client/ClientTiledPaintedLayer.h @@ -36,7 +36,7 @@ class SpecificLayerAttributes; * There is no ContentClient for tiled layers. There is a ContentHost, however. */ class ClientTiledPaintedLayer : public PaintedLayer, - public ClientLayer + public ClientLayer { typedef PaintedLayer Base; diff --git a/gfx/layers/client/ContentClient.h b/gfx/layers/client/ContentClient.h index a8a28ebc2d06..5778ec98dd92 100644 --- a/gfx/layers/client/ContentClient.h +++ b/gfx/layers/client/ContentClient.h @@ -129,7 +129,7 @@ class ContentClientRemote : public ContentClient // thin wrapper around RotatedContentBuffer, for on-mtc class ContentClientBasic final : public ContentClient - , protected RotatedContentBuffer + , protected RotatedContentBuffer { public: ContentClientBasic(); diff --git a/gfx/layers/composite/PaintedLayerComposite.h b/gfx/layers/composite/PaintedLayerComposite.h index 9761872cc348..564ea4e8fc6c 100644 --- a/gfx/layers/composite/PaintedLayerComposite.h +++ b/gfx/layers/composite/PaintedLayerComposite.h @@ -34,7 +34,7 @@ class ContentHost; class TiledLayerComposer; class PaintedLayerComposite : public PaintedLayer, - public LayerComposite + public LayerComposite { public: explicit PaintedLayerComposite(LayerManagerComposite *aManager); diff --git a/gfx/layers/ipc/CompositorParent.cpp b/gfx/layers/ipc/CompositorParent.cpp index f901a91dae0e..2015d8728747 100644 --- a/gfx/layers/ipc/CompositorParent.cpp +++ b/gfx/layers/ipc/CompositorParent.cpp @@ -1506,7 +1506,7 @@ CompositorParent::RequestNotifyLayerTreeCleared(uint64_t aLayersId, CompositorUp * CompositorParent it's associated with. */ class CrossProcessCompositorParent final : public PCompositorParent, - public ShadowLayersManager + public ShadowLayersManager { friend class CompositorParent; diff --git a/gfx/layers/ipc/CompositorParent.h b/gfx/layers/ipc/CompositorParent.h index 411ebc5ac24f..0011a479cc5a 100644 --- a/gfx/layers/ipc/CompositorParent.h +++ b/gfx/layers/ipc/CompositorParent.h @@ -143,7 +143,7 @@ class CompositorUpdateObserver }; class CompositorParent final : public PCompositorParent, - public ShadowLayersManager + public ShadowLayersManager { NS_INLINE_DECL_THREADSAFE_REFCOUNTING_WITH_MAIN_THREAD_DESTRUCTION(CompositorParent) friend class CompositorVsyncObserver; diff --git a/gfx/layers/ipc/ImageBridgeChild.h b/gfx/layers/ipc/ImageBridgeChild.h index 7042c0466634..0815438f2a64 100644 --- a/gfx/layers/ipc/ImageBridgeChild.h +++ b/gfx/layers/ipc/ImageBridgeChild.h @@ -102,8 +102,8 @@ bool InImageBridgeChildThread(); * CompositableHost with an AsyncID). */ class ImageBridgeChild final : public PImageBridgeChild - , public CompositableForwarder - , public AsyncTransactionTrackersHolder + , public CompositableForwarder + , public AsyncTransactionTrackersHolder { friend class ImageContainer; typedef InfallibleTArray AsyncParentMessageArray; diff --git a/gfx/layers/ipc/ImageBridgeParent.h b/gfx/layers/ipc/ImageBridgeParent.h index e504481960fd..21c250e5fb9c 100644 --- a/gfx/layers/ipc/ImageBridgeParent.h +++ b/gfx/layers/ipc/ImageBridgeParent.h @@ -38,7 +38,7 @@ namespace layers { * interesting stuff is in ImageContainerParent. */ class ImageBridgeParent final : public PImageBridgeParent, - public CompositableParentManager + public CompositableParentManager { public: typedef InfallibleTArray EditArray; diff --git a/gfx/layers/opengl/TextureHostOGL.h b/gfx/layers/opengl/TextureHostOGL.h index db41be690fac..01129fa841ed 100644 --- a/gfx/layers/opengl/TextureHostOGL.h +++ b/gfx/layers/opengl/TextureHostOGL.h @@ -185,8 +185,8 @@ class TextureHostOGL * GL texture(s). */ class TextureImageTextureSourceOGL final : public DataTextureSource - , public TextureSourceOGL - , public BigImageIterator + , public TextureSourceOGL + , public BigImageIterator { public: explicit TextureImageTextureSourceOGL(CompositorOGL *aCompositor, diff --git a/gfx/thebes/gfxAndroidPlatform.cpp b/gfx/thebes/gfxAndroidPlatform.cpp index e85fcdf8c99d..df0d60d1980f 100644 --- a/gfx/thebes/gfxAndroidPlatform.cpp +++ b/gfx/thebes/gfxAndroidPlatform.cpp @@ -46,7 +46,7 @@ using namespace mozilla::gfx; static FT_Library gPlatformFTLibrary = nullptr; class FreetypeReporter final : public nsIMemoryReporter, - public CountingAllocatorBase + public CountingAllocatorBase { private: ~FreetypeReporter() {} diff --git a/gfx/thebes/gfxPlatform.cpp b/gfx/thebes/gfxPlatform.cpp index 6e8f05a930e8..1d3a4f0f2330 100644 --- a/gfx/thebes/gfxPlatform.cpp +++ b/gfx/thebes/gfxPlatform.cpp @@ -144,7 +144,7 @@ using namespace mozilla::gfx; /* Class to listen for pref changes so that chrome code can dynamically force sRGB as an output profile. See Bug #452125. */ class SRGBOverrideObserver final : public nsIObserver, - public nsSupportsWeakReference + public nsSupportsWeakReference { ~SRGBOverrideObserver() {} public: diff --git a/image/decoders/icon/nsIconURI.h b/image/decoders/icon/nsIconURI.h index 94e20baf33a5..dc4820dcb3f6 100644 --- a/image/decoders/icon/nsIconURI.h +++ b/image/decoders/icon/nsIconURI.h @@ -13,7 +13,7 @@ #include "nsIIPCSerializableURI.h" class nsMozIconURI final : public nsIMozIconURI - , public nsIIPCSerializableURI + , public nsIIPCSerializableURI { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/image/src/RasterImage.h b/image/src/RasterImage.h index d1d75719119c..2c831b594638 100644 --- a/image/src/RasterImage.h +++ b/image/src/RasterImage.h @@ -146,10 +146,10 @@ DecodeFlags(uint32_t aFlags) } class RasterImage final : public ImageResource - , public nsIProperties - , public SupportsWeakPtr + , public nsIProperties + , public SupportsWeakPtr #ifdef DEBUG - , public imgIContainerDebug + , public imgIContainerDebug #endif { // (no public constructor - use ImageFactory) diff --git a/image/src/SVGDocumentWrapper.h b/image/src/SVGDocumentWrapper.h index 2929e25e2d93..d8e571d2d486 100644 --- a/image/src/SVGDocumentWrapper.h +++ b/image/src/SVGDocumentWrapper.h @@ -36,8 +36,8 @@ class SVGSVGElement; namespace image { class SVGDocumentWrapper final : public nsIStreamListener, - public nsIObserver, - nsSupportsWeakReference + public nsIObserver, + nsSupportsWeakReference { public: SVGDocumentWrapper(); diff --git a/image/src/VectorImage.h b/image/src/VectorImage.h index 81efd58cb0dc..249ce3be6395 100644 --- a/image/src/VectorImage.h +++ b/image/src/VectorImage.h @@ -27,7 +27,7 @@ class SVGLoadEventListener; class SVGParseCompleteListener; class VectorImage final : public ImageResource, - public nsIStreamListener + public nsIStreamListener { public: NS_DECL_ISUPPORTS diff --git a/image/src/imgLoader.h b/image/src/imgLoader.h index 66d1d8b90dd5..079dbdd4baea 100644 --- a/image/src/imgLoader.h +++ b/image/src/imgLoader.h @@ -212,10 +212,10 @@ enum class AcceptedMimeTypes : uint8_t { }; class imgLoader final : public imgILoader, - public nsIContentSniffer, - public imgICache, - public nsSupportsWeakReference, - public nsIObserver + public nsIContentSniffer, + public imgICache, + public nsSupportsWeakReference, + public nsIObserver { virtual ~imgLoader(); diff --git a/image/src/imgRequest.h b/image/src/imgRequest.h index c3bf3a155b80..19a4073f227b 100644 --- a/image/src/imgRequest.h +++ b/image/src/imgRequest.h @@ -43,10 +43,10 @@ class ProgressTracker; struct NewPartResult; class imgRequest final : public nsIStreamListener, - public nsIThreadRetargetableStreamListener, - public nsIChannelEventSink, - public nsIInterfaceRequestor, - public nsIAsyncVerifyRedirectCallback + public nsIThreadRetargetableStreamListener, + public nsIChannelEventSink, + public nsIInterfaceRequestor, + public nsIAsyncVerifyRedirectCallback { typedef mozilla::image::Image Image; typedef mozilla::image::ImageURL ImageURL; diff --git a/ipc/bluetooth/BluetoothDaemonConnection.cpp b/ipc/bluetooth/BluetoothDaemonConnection.cpp index ecc6c4546a39..68406a3a0c86 100644 --- a/ipc/bluetooth/BluetoothDaemonConnection.cpp +++ b/ipc/bluetooth/BluetoothDaemonConnection.cpp @@ -191,7 +191,7 @@ BluetoothDaemonPDUConsumer::~BluetoothDaemonPDUConsumer() // class BluetoothDaemonConnectionIO final : public UnixSocketWatcher - , public ConnectionOrientedSocketIO + , public ConnectionOrientedSocketIO { public: BluetoothDaemonConnectionIO(MessageLoop* aIOLoop, int aFd, diff --git a/ipc/glue/MessagePump.cpp b/ipc/glue/MessagePump.cpp index 7d52e9a4dce4..48d9398c1756 100644 --- a/ipc/glue/MessagePump.cpp +++ b/ipc/glue/MessagePump.cpp @@ -42,7 +42,7 @@ namespace mozilla { namespace ipc { class DoWorkRunnable final : public nsICancelableRunnable, - public nsITimerCallback + public nsITimerCallback { public: explicit DoWorkRunnable(MessagePump* aPump) diff --git a/ipc/glue/nsIIPCBackgroundChildCreateCallback.h b/ipc/glue/nsIIPCBackgroundChildCreateCallback.h index ca85a20ed219..8050cc5d38b7 100644 --- a/ipc/glue/nsIIPCBackgroundChildCreateCallback.h +++ b/ipc/glue/nsIIPCBackgroundChildCreateCallback.h @@ -47,24 +47,24 @@ NS_DEFINE_STATIC_IID_ACCESSOR(nsIIPCBackgroundChildCreateCallback, #define NS_DECL_NSIIPCBACKGROUNDCHILDCREATECALLBACK \ virtual void \ - ActorCreated(mozilla::ipc::PBackgroundChild*) override; \ + ActorCreated(mozilla::ipc::PBackgroundChild*) override; \ virtual void \ ActorFailed() override; #define NS_FORWARD_NSIIPCBACKGROUNDCHILDCREATECALLBACK(_to) \ virtual void \ - ActorCreated(mozilla::ipc::PBackgroundChild* aActor) override \ + ActorCreated(mozilla::ipc::PBackgroundChild* aActor) override \ { _to ActorCreated(aActor); } \ virtual void \ - ActorFailed() override \ + ActorFailed() override \ { _to ActorFailed(); } #define NS_FORWARD_SAFE_NSIIPCBACKGROUNDCHILDCREATECALLBACK(_to) \ virtual void \ - ActorCreated(mozilla::ipc::PBackgroundChild* aActor) override \ + ActorCreated(mozilla::ipc::PBackgroundChild* aActor) override \ { if (_to) { _to->ActorCreated(aActor); } } \ virtual void \ - ActorFailed() override \ + ActorFailed() override \ { if (_to) { _to->ActorFailed(); } } #endif // mozilla_ipc_nsiipcbackgroundchildcreatecallback_h diff --git a/ipc/glue/nsIIPCSerializableInputStream.h b/ipc/glue/nsIIPCSerializableInputStream.h index 88f296b7e378..0c4b48162caf 100644 --- a/ipc/glue/nsIIPCSerializableInputStream.h +++ b/ipc/glue/nsIIPCSerializableInputStream.h @@ -46,7 +46,7 @@ NS_DEFINE_STATIC_IID_ACCESSOR(nsIIPCSerializableInputStream, #define NS_DECL_NSIIPCSERIALIZABLEINPUTSTREAM \ virtual void \ Serialize(mozilla::ipc::InputStreamParams&, \ - FileDescriptorArray&) override; \ + FileDescriptorArray&) override; \ \ virtual bool \ Deserialize(const mozilla::ipc::InputStreamParams&, \ @@ -55,14 +55,14 @@ NS_DEFINE_STATIC_IID_ACCESSOR(nsIIPCSerializableInputStream, #define NS_FORWARD_NSIIPCSERIALIZABLEINPUTSTREAM(_to) \ virtual void \ Serialize(mozilla::ipc::InputStreamParams& aParams, \ - FileDescriptorArray& aFileDescriptors) override \ + FileDescriptorArray& aFileDescriptors) override \ { \ _to Serialize(aParams, aFileDescriptors); \ } \ \ virtual bool \ Deserialize(const mozilla::ipc::InputStreamParams& aParams, \ - const FileDescriptorArray& aFileDescriptors) override \ + const FileDescriptorArray& aFileDescriptors) override \ { \ return _to Deserialize(aParams, aFileDescriptors); \ } @@ -70,7 +70,7 @@ NS_DEFINE_STATIC_IID_ACCESSOR(nsIIPCSerializableInputStream, #define NS_FORWARD_SAFE_NSIIPCSERIALIZABLEINPUTSTREAM(_to) \ virtual void \ Serialize(mozilla::ipc::InputStreamParams& aParams, \ - FileDescriptorArray& aFileDescriptors) override \ + FileDescriptorArray& aFileDescriptors) override \ { \ if (_to) { \ _to->Serialize(aParams, aFileDescriptors); \ @@ -79,7 +79,7 @@ NS_DEFINE_STATIC_IID_ACCESSOR(nsIIPCSerializableInputStream, \ virtual bool \ Deserialize(const mozilla::ipc::InputStreamParams& aParams, \ - const FileDescriptorArray& aFileDescriptors) override \ + const FileDescriptorArray& aFileDescriptors) override \ { \ return _to ? _to->Deserialize(aParams, aFileDescriptors) : false; \ } diff --git a/ipc/unixsocket/ListenSocket.cpp b/ipc/unixsocket/ListenSocket.cpp index 4e96a34bec21..2257e36af2d2 100644 --- a/ipc/unixsocket/ListenSocket.cpp +++ b/ipc/unixsocket/ListenSocket.cpp @@ -21,7 +21,7 @@ namespace ipc { // class ListenSocketIO final : public UnixSocketWatcher - , protected SocketIOBase + , protected SocketIOBase { public: class ListenTask; diff --git a/ipc/unixsocket/StreamSocket.cpp b/ipc/unixsocket/StreamSocket.cpp index 8c3f8c6f17e6..22e9f9e38a75 100644 --- a/ipc/unixsocket/StreamSocket.cpp +++ b/ipc/unixsocket/StreamSocket.cpp @@ -21,8 +21,8 @@ namespace ipc { // class StreamSocketIO final : public UnixSocketWatcher - , protected SocketIOBase - , public ConnectionOrientedSocketIO + , protected SocketIOBase + , public ConnectionOrientedSocketIO { public: class ConnectTask; diff --git a/ipc/unixsocket/UnixSocket.cpp b/ipc/unixsocket/UnixSocket.cpp index cabda175044c..1e0df9284ddf 100644 --- a/ipc/unixsocket/UnixSocket.cpp +++ b/ipc/unixsocket/UnixSocket.cpp @@ -20,7 +20,7 @@ namespace ipc { // class UnixSocketConsumerIO final : public UnixSocketWatcher - , protected SocketIOBase + , protected SocketIOBase { public: UnixSocketConsumerIO(MessageLoop* mIOLoop, diff --git a/js/src/jit/MIR.h b/js/src/jit/MIR.h index 078b23abc0db..bfaafd76fd18 100644 --- a/js/src/jit/MIR.h +++ b/js/src/jit/MIR.h @@ -948,27 +948,27 @@ class MInstruction #define INSTRUCTION_HEADER_WITHOUT_TYPEPOLICY(opcode) \ static const Opcode classOpcode = MDefinition::Op_##opcode; \ - Opcode op() const override { \ + Opcode op() const override { \ return classOpcode; \ } \ - const char *opName() const override { \ + const char *opName() const override { \ return #opcode; \ } \ - void accept(MDefinitionVisitor *visitor) override { \ + void accept(MDefinitionVisitor *visitor) override { \ visitor->visit##opcode(this); \ } #define INSTRUCTION_HEADER(opcode) \ INSTRUCTION_HEADER_WITHOUT_TYPEPOLICY(opcode) \ - virtual TypePolicy *typePolicy() override; \ + virtual TypePolicy *typePolicy() override; \ virtual MIRType typePolicySpecialization() override; #define ALLOW_CLONE(typename) \ - bool canClone() const override { \ + bool canClone() const override { \ return true; \ } \ MInstruction *clone(TempAllocator &alloc, \ - const MDefinitionVector &inputs) const override { \ + const MDefinitionVector &inputs) const override { \ MInstruction *res = new(alloc) typename(*this); \ for (size_t i = 0; i < numOperands(); i++) \ res->replaceOperand(i, inputs[i]); \ diff --git a/js/src/jsapi-tests/tests.h b/js/src/jsapi-tests/tests.h index 483d0f261039..d488689ca27b 100644 --- a/js/src/jsapi-tests/tests.h +++ b/js/src/jsapi-tests/tests.h @@ -316,7 +316,7 @@ class JSAPITest #define BEGIN_TEST(testname) \ class cls_##testname : public JSAPITest { \ public: \ - virtual const char * name() override { return #testname; } \ + virtual const char * name() override { return #testname; } \ virtual bool run(JS::HandleObject global) override #define END_TEST(testname) \ @@ -334,7 +334,7 @@ class JSAPITest #define BEGIN_FIXTURE_TEST(fixture, testname) \ class cls_##testname : public fixture { \ public: \ - virtual const char * name() override { return #testname; } \ + virtual const char * name() override { return #testname; } \ virtual bool run(JS::HandleObject global) override #define END_FIXTURE_TEST(fixture, testname) \ diff --git a/js/xpconnect/src/xpcprivate.h b/js/xpconnect/src/xpcprivate.h index 72ee5aecf4e8..29e836e1b1b0 100644 --- a/js/xpconnect/src/xpcprivate.h +++ b/js/xpconnect/src/xpcprivate.h @@ -2409,10 +2409,10 @@ class nsXPCWrappedJSClass : public nsIXPCWrappedJSClass // interface on the single underlying (possibly aggregate) JSObject. class nsXPCWrappedJS final : protected nsAutoXPTCStub, - public nsIXPConnectWrappedJS, - public nsSupportsWeakReference, - public nsIPropertyBag, - public XPCRootSetElem + public nsIXPConnectWrappedJS, + public nsSupportsWeakReference, + public nsIPropertyBag, + public XPCRootSetElem { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/layout/base/SelectionCarets.h b/layout/base/SelectionCarets.h index ec5d851eafdf..342b39c36de9 100644 --- a/layout/base/SelectionCarets.h +++ b/layout/base/SelectionCarets.h @@ -57,9 +57,9 @@ class Selection; * caret becomes tilt. */ class SelectionCarets final : public nsIReflowObserver, - public nsISelectionListener, - public nsIScrollObserver, - public nsSupportsWeakReference + public nsISelectionListener, + public nsIScrollObserver, + public nsSupportsWeakReference { public: /** diff --git a/layout/base/nsDocumentViewer.cpp b/layout/base/nsDocumentViewer.cpp index 69e5c6deb982..fcc16359f750 100644 --- a/layout/base/nsDocumentViewer.cpp +++ b/layout/base/nsDocumentViewer.cpp @@ -214,12 +214,12 @@ class nsDocViewerFocusListener : public nsIDOMEventListener //------------------------------------------------------------- class nsDocumentViewer final : public nsIContentViewer, - public nsIContentViewerEdit, - public nsIContentViewerFile, - public nsIDocumentViewerPrint + public nsIContentViewerEdit, + public nsIContentViewerFile, + public nsIDocumentViewerPrint #ifdef NS_PRINTING - , public nsIWebBrowserPrint + , public nsIWebBrowserPrint #endif { diff --git a/layout/base/nsLayoutHistoryState.cpp b/layout/base/nsLayoutHistoryState.cpp index 9fa0c3a3faa1..686b2434b6d9 100644 --- a/layout/base/nsLayoutHistoryState.cpp +++ b/layout/base/nsLayoutHistoryState.cpp @@ -15,7 +15,7 @@ #include "mozilla/Attributes.h" class nsLayoutHistoryState final : public nsILayoutHistoryState, - public nsSupportsWeakReference + public nsSupportsWeakReference { public: nsLayoutHistoryState() diff --git a/layout/base/nsPresShell.h b/layout/base/nsPresShell.h index 471557c39f38..8cddd190641c 100644 --- a/layout/base/nsPresShell.h +++ b/layout/base/nsPresShell.h @@ -59,9 +59,10 @@ class EventDispatchingCallback; #define PAINTLOCK_EVENT_DELAY 250 class PresShell final : public nsIPresShell, - public nsStubDocumentObserver, - public nsISelectionController, public nsIObserver, - public nsSupportsWeakReference + public nsStubDocumentObserver, + public nsISelectionController, + public nsIObserver, + public nsSupportsWeakReference { public: PresShell(); diff --git a/layout/base/nsRefreshDriver.h b/layout/base/nsRefreshDriver.h index e7e08d52bbac..e001e7fa381e 100644 --- a/layout/base/nsRefreshDriver.h +++ b/layout/base/nsRefreshDriver.h @@ -67,7 +67,8 @@ class nsAPostRefreshObserver { }; class nsRefreshDriver final : public mozilla::layers::TransactionIdAllocator, - public nsARefreshObserver { + public nsARefreshObserver +{ public: explicit nsRefreshDriver(nsPresContext *aPresContext); ~nsRefreshDriver(); diff --git a/layout/forms/nsColorControlFrame.h b/layout/forms/nsColorControlFrame.h index 6d9e6c75512c..584491e56c66 100644 --- a/layout/forms/nsColorControlFrame.h +++ b/layout/forms/nsColorControlFrame.h @@ -15,7 +15,7 @@ typedef nsHTMLButtonControlFrame nsColorControlFrameSuper; // Class which implements the input type=color class nsColorControlFrame final : public nsColorControlFrameSuper, - public nsIAnonymousContentCreator + public nsIAnonymousContentCreator { typedef mozilla::dom::Element Element; diff --git a/layout/forms/nsComboboxControlFrame.h b/layout/forms/nsComboboxControlFrame.h index 2fd92a70b471..e459c1783513 100644 --- a/layout/forms/nsComboboxControlFrame.h +++ b/layout/forms/nsComboboxControlFrame.h @@ -44,12 +44,12 @@ class DrawTarget; } class nsComboboxControlFrame final : public nsBlockFrame, - public nsIFormControlFrame, - public nsIComboboxControlFrame, - public nsIAnonymousContentCreator, - public nsISelectControlFrame, - public nsIRollupListener, - public nsIStatefulFrame + public nsIFormControlFrame, + public nsIComboboxControlFrame, + public nsIAnonymousContentCreator, + public nsISelectControlFrame, + public nsIRollupListener, + public nsIStatefulFrame { typedef mozilla::gfx::DrawTarget DrawTarget; diff --git a/layout/forms/nsListControlFrame.h b/layout/forms/nsListControlFrame.h index 93fd0126a187..e83e92a82c08 100644 --- a/layout/forms/nsListControlFrame.h +++ b/layout/forms/nsListControlFrame.h @@ -47,9 +47,9 @@ class HTMLOptionsCollection; */ class nsListControlFrame final : public nsHTMLScrollFrame, - public nsIFormControlFrame, - public nsIListControlFrame, - public nsISelectControlFrame + public nsIFormControlFrame, + public nsIListControlFrame, + public nsISelectControlFrame { public: friend nsContainerFrame* NS_NewListControlFrame(nsIPresShell* aPresShell, diff --git a/layout/forms/nsNumberControlFrame.h b/layout/forms/nsNumberControlFrame.h index 698890a34e34..c07b2ee9ddfb 100644 --- a/layout/forms/nsNumberControlFrame.h +++ b/layout/forms/nsNumberControlFrame.h @@ -27,8 +27,8 @@ class HTMLInputElement; * This frame type is used for . */ class nsNumberControlFrame final : public nsContainerFrame - , public nsIAnonymousContentCreator - , public nsITextControlFrame + , public nsIAnonymousContentCreator + , public nsITextControlFrame { friend nsIFrame* NS_NewNumberControlFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); diff --git a/layout/forms/nsTextControlFrame.h b/layout/forms/nsTextControlFrame.h index 169d17b746ba..5f85b149c1ac 100644 --- a/layout/forms/nsTextControlFrame.h +++ b/layout/forms/nsTextControlFrame.h @@ -25,9 +25,9 @@ class Element; } class nsTextControlFrame final : public nsContainerFrame, - public nsIAnonymousContentCreator, - public nsITextControlFrame, - public nsIStatefulFrame + public nsIAnonymousContentCreator, + public nsITextControlFrame, + public nsIStatefulFrame { public: NS_DECL_FRAMEARENA_HELPERS diff --git a/layout/generic/ScrollbarActivity.h b/layout/generic/ScrollbarActivity.h index cc8c55bdbf23..b390fefbfcd5 100644 --- a/layout/generic/ScrollbarActivity.h +++ b/layout/generic/ScrollbarActivity.h @@ -56,7 +56,8 @@ namespace layout { */ class ScrollbarActivity final : public nsIDOMEventListener, - public nsARefreshObserver { + public nsARefreshObserver +{ public: explicit ScrollbarActivity(nsIScrollbarMediator* aScrollableFrame) : mScrollableFrame(aScrollableFrame) diff --git a/layout/generic/Selection.h b/layout/generic/Selection.h index 5ccbe89e8348..e5b1af2eada7 100644 --- a/layout/generic/Selection.h +++ b/layout/generic/Selection.h @@ -49,8 +49,8 @@ namespace mozilla { namespace dom { class Selection final : public nsISelectionPrivate, - public nsWrapperCache, - public nsSupportsWeakReference + public nsWrapperCache, + public nsSupportsWeakReference { protected: virtual ~Selection(); diff --git a/layout/generic/nsBulletFrame.h b/layout/generic/nsBulletFrame.h index 135d39a3d95f..b050859b8381 100644 --- a/layout/generic/nsBulletFrame.h +++ b/layout/generic/nsBulletFrame.h @@ -21,7 +21,7 @@ class imgRequestProxy; class nsBulletFrame; class nsBulletListener final : public imgINotificationObserver, - public imgIOnloadBlocker + public imgIOnloadBlocker { public: nsBulletListener(); diff --git a/layout/generic/nsCanvasFrame.h b/layout/generic/nsCanvasFrame.h index f5edc71022ab..96b26e4777ae 100644 --- a/layout/generic/nsCanvasFrame.h +++ b/layout/generic/nsCanvasFrame.h @@ -27,8 +27,8 @@ class nsRenderingContext; * frame */ class nsCanvasFrame final : public nsContainerFrame, - public nsIScrollPositionListener, - public nsIAnonymousContentCreator + public nsIScrollPositionListener, + public nsIAnonymousContentCreator { public: explicit nsCanvasFrame(nsStyleContext* aContext) diff --git a/layout/generic/nsGfxScrollFrame.h b/layout/generic/nsGfxScrollFrame.h index 0506cb3c2dfe..26ce5b8b2b73 100644 --- a/layout/generic/nsGfxScrollFrame.h +++ b/layout/generic/nsGfxScrollFrame.h @@ -946,9 +946,10 @@ class nsHTMLScrollFrame : public nsContainerFrame, * or remove the scrolled frame */ class nsXULScrollFrame final : public nsBoxFrame, - public nsIScrollableFrame, - public nsIAnonymousContentCreator, - public nsIStatefulFrame { + public nsIScrollableFrame, + public nsIAnonymousContentCreator, + public nsIStatefulFrame +{ public: typedef mozilla::ScrollFrameHelper ScrollFrameHelper; typedef mozilla::CSSIntPoint CSSIntPoint; diff --git a/layout/generic/nsImageFrame.h b/layout/generic/nsImageFrame.h index 96002abaf0c7..d383aa09bb2f 100644 --- a/layout/generic/nsImageFrame.h +++ b/layout/generic/nsImageFrame.h @@ -324,7 +324,8 @@ class nsImageFrame : public ImageFrameSuper, imgRequestProxy **aRequest); class IconLoad final : public nsIObserver, - public imgINotificationObserver { + public imgINotificationObserver + { // private class that wraps the data and logic needed for // broken image and loading image icons public: diff --git a/layout/generic/nsImageMap.h b/layout/generic/nsImageMap.h index 0808a0dee0af..627657b10453 100644 --- a/layout/generic/nsImageMap.h +++ b/layout/generic/nsImageMap.h @@ -22,7 +22,7 @@ class nsIContent; struct nsRect; class nsImageMap final : public nsStubMutationObserver, - public nsIDOMEventListener + public nsIDOMEventListener { typedef mozilla::gfx::DrawTarget DrawTarget; typedef mozilla::gfx::ColorPattern ColorPattern; diff --git a/layout/ipc/VsyncParent.h b/layout/ipc/VsyncParent.h index 4b8e3e02e1b6..b0a3691cdca1 100644 --- a/layout/ipc/VsyncParent.h +++ b/layout/ipc/VsyncParent.h @@ -25,7 +25,7 @@ namespace layout { // content process. This actor will be released when its parent protocol calls // DeallocPVsyncParent(). class VsyncParent final : public PVsyncParent, - public VsyncObserver + public VsyncObserver { friend class mozilla::ipc::BackgroundParentImpl; diff --git a/layout/printing/nsPagePrintTimer.h b/layout/printing/nsPagePrintTimer.h index 7f47004e966f..396effbf7511 100644 --- a/layout/printing/nsPagePrintTimer.h +++ b/layout/printing/nsPagePrintTimer.h @@ -19,7 +19,7 @@ class nsPrintEngine; //-- Page Timer Class //--------------------------------------------------- class nsPagePrintTimer final : public nsRunnable, - public nsITimerCallback + public nsITimerCallback { public: diff --git a/layout/printing/nsPrintEngine.h b/layout/printing/nsPrintEngine.h index efbb6d91ff67..1d99c08b3412 100644 --- a/layout/printing/nsPrintEngine.h +++ b/layout/printing/nsPrintEngine.h @@ -38,8 +38,8 @@ class nsIWeakReference; // //------------------------------------------------------------------------ class nsPrintEngine final : public nsIObserver, - public nsIWebProgressListener, - public nsSupportsWeakReference + public nsIWebProgressListener, + public nsSupportsWeakReference { public: // nsISupports interface... diff --git a/layout/style/CSSStyleSheet.h b/layout/style/CSSStyleSheet.h index 3e58c8745a84..108510f17d21 100644 --- a/layout/style/CSSStyleSheet.h +++ b/layout/style/CSSStyleSheet.h @@ -117,9 +117,9 @@ class CSSStyleSheetInner class CSSStyleSheet final : public nsIStyleSheet, - public nsIDOMCSSStyleSheet, - public nsICSSLoaderObserver, - public nsWrapperCache + public nsIDOMCSSStyleSheet, + public nsICSSLoaderObserver, + public nsWrapperCache { public: typedef net::ReferrerPolicy ReferrerPolicy; diff --git a/layout/style/FontFace.h b/layout/style/FontFace.h index d9a2cd6a0060..8c623f048bea 100644 --- a/layout/style/FontFace.h +++ b/layout/style/FontFace.h @@ -31,7 +31,7 @@ namespace mozilla { namespace dom { class FontFace final : public nsISupports, - public nsWrapperCache + public nsWrapperCache { friend class mozilla::dom::FontFaceBufferSource; friend class Entry; diff --git a/layout/style/FontFaceSet.h b/layout/style/FontFaceSet.h index 38c65e630c00..0dc503950604 100644 --- a/layout/style/FontFaceSet.h +++ b/layout/style/FontFaceSet.h @@ -31,8 +31,8 @@ namespace mozilla { namespace dom { class FontFaceSet final : public DOMEventTargetHelper - , public nsIDOMEventListener - , public nsICSSLoaderObserver + , public nsIDOMEventListener + , public nsICSSLoaderObserver { friend class UserFontSet; diff --git a/layout/style/ImageLoader.h b/layout/style/ImageLoader.h index 8096832198a0..25ac387d3bcf 100644 --- a/layout/style/ImageLoader.h +++ b/layout/style/ImageLoader.h @@ -29,7 +29,8 @@ namespace css { struct ImageValue; class ImageLoader final : public imgINotificationObserver, - public imgIOnloadBlocker { + public imgIOnloadBlocker +{ public: typedef mozilla::css::ImageValue Image; diff --git a/layout/style/ImportRule.h b/layout/style/ImportRule.h index 8288e4b213eb..87cd6ebbb4e6 100644 --- a/layout/style/ImportRule.h +++ b/layout/style/ImportRule.h @@ -24,7 +24,7 @@ class CSSStyleSheet; namespace css { class ImportRule final : public Rule, - public nsIDOMCSSImportRule + public nsIDOMCSSImportRule { public: ImportRule(nsMediaList* aMedia, const nsString& aURLSpec, diff --git a/layout/style/MediaQueryList.h b/layout/style/MediaQueryList.h index 4f28d0a56ae3..144696be3389 100644 --- a/layout/style/MediaQueryList.h +++ b/layout/style/MediaQueryList.h @@ -26,8 +26,8 @@ namespace mozilla { namespace dom { class MediaQueryList final : public nsISupports, - public nsWrapperCache, - public PRCList + public nsWrapperCache, + public PRCList { public: // The caller who constructs is responsible for calling Evaluate diff --git a/layout/style/NameSpaceRule.h b/layout/style/NameSpaceRule.h index 24e8d97b4aa7..9ef50d7089d1 100644 --- a/layout/style/NameSpaceRule.h +++ b/layout/style/NameSpaceRule.h @@ -25,7 +25,7 @@ namespace mozilla { namespace css { class NameSpaceRule final : public Rule, - public nsIDOMCSSRule + public nsIDOMCSSRule { public: NameSpaceRule(nsIAtom* aPrefix, const nsString& aURLSpec, diff --git a/layout/style/nsCSSRules.h b/layout/style/nsCSSRules.h index 0750e50e0551..90e1fc111236 100644 --- a/layout/style/nsCSSRules.h +++ b/layout/style/nsCSSRules.h @@ -45,7 +45,7 @@ class ErrorResult; namespace css { class MediaRule final : public GroupRule, - public nsIDOMCSSMediaRule + public nsIDOMCSSMediaRule { public: MediaRule(uint32_t aLineNumber, uint32_t aColumnNumber); @@ -103,7 +103,7 @@ class MediaRule final : public GroupRule, }; class DocumentRule final : public GroupRule, - public nsIDOMCSSMozDocumentRule + public nsIDOMCSSMozDocumentRule { public: DocumentRule(uint32_t aLineNumber, uint32_t aColumnNumber); @@ -236,7 +236,7 @@ class nsCSSFontFaceStyleDecl final : public nsICSSDeclaration }; class nsCSSFontFaceRule final : public mozilla::css::Rule, - public nsIDOMCSSFontFaceRule + public nsIDOMCSSFontFaceRule { public: nsCSSFontFaceRule(uint32_t aLineNumber, uint32_t aColumnNumber) @@ -303,9 +303,8 @@ nsCSSFontFaceStyleDecl::ContainingRule() const (reinterpret_cast(this) - offsetof(nsCSSFontFaceRule, mDecl)); } -class nsCSSFontFeatureValuesRule final : - public mozilla::css::Rule, - public nsIDOMCSSFontFeatureValuesRule +class nsCSSFontFeatureValuesRule final : public mozilla::css::Rule, + public nsIDOMCSSFontFeatureValuesRule { public: nsCSSFontFeatureValuesRule(uint32_t aLineNumber, uint32_t aColumnNumber) @@ -360,7 +359,7 @@ namespace mozilla { namespace css { class CharsetRule final : public Rule, - public nsIDOMCSSCharsetRule + public nsIDOMCSSCharsetRule { public: CharsetRule(const nsAString& aEncoding, @@ -429,7 +428,7 @@ class nsCSSKeyframeStyleDeclaration final : public nsDOMCSSDeclaration }; class nsCSSKeyframeRule final : public mozilla::css::Rule, - public nsIDOMMozCSSKeyframeRule + public nsIDOMMozCSSKeyframeRule { public: // WARNING: Steals the contents of aKeys *and* aDeclaration @@ -481,7 +480,7 @@ class nsCSSKeyframeRule final : public mozilla::css::Rule, }; class nsCSSKeyframesRule final : public mozilla::css::GroupRule, - public nsIDOMMozCSSKeyframesRule + public nsIDOMMozCSSKeyframesRule { public: nsCSSKeyframesRule(const nsSubstring& aName, @@ -562,7 +561,7 @@ class nsCSSPageStyleDeclaration final : public nsDOMCSSDeclaration }; class nsCSSPageRule final : public mozilla::css::Rule, - public nsIDOMCSSPageRule + public nsIDOMCSSPageRule { public: // WARNING: Steals the contents of aDeclaration @@ -665,7 +664,7 @@ class CSSSupportsRule : public css::GroupRule, } // namespace mozilla class nsCSSCounterStyleRule final : public mozilla::css::Rule, - public nsIDOMCSSCounterStyleRule + public nsIDOMCSSCounterStyleRule { public: explicit nsCSSCounterStyleRule(const nsAString& aName, diff --git a/layout/style/nsDOMCSSValueList.h b/layout/style/nsDOMCSSValueList.h index 835ed2f08f68..1fc48579ccf6 100644 --- a/layout/style/nsDOMCSSValueList.h +++ b/layout/style/nsDOMCSSValueList.h @@ -12,7 +12,7 @@ #include "nsTArray.h" class nsDOMCSSValueList final : public mozilla::dom::CSSValue, - public nsIDOMCSSValueList + public nsIDOMCSSValueList { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/layout/style/nsICSSDeclaration.h b/layout/style/nsICSSDeclaration.h index 2f4a7a65839b..6b36d9db0a2c 100644 --- a/layout/style/nsICSSDeclaration.h +++ b/layout/style/nsICSSDeclaration.h @@ -155,9 +155,9 @@ NS_DEFINE_STATIC_IID_ACCESSOR(nsICSSDeclaration, NS_ICSSDECLARATION_IID) #define NS_DECL_NSICSSDECLARATION \ NS_IMETHOD GetPropertyValue(const nsCSSProperty aPropID, \ - nsAString& aValue) override; \ + nsAString& aValue) override; \ NS_IMETHOD GetAuthoredPropertyValue(const nsAString& aPropName, \ - nsAString& aValue) override; \ + nsAString& aValue) override; \ NS_IMETHOD SetPropertyValue(const nsCSSProperty aPropID, \ const nsAString& aValue) override; diff --git a/layout/style/nsIMediaList.h b/layout/style/nsIMediaList.h index baeaf79c6c98..ac9c686f4871 100644 --- a/layout/style/nsIMediaList.h +++ b/layout/style/nsIMediaList.h @@ -189,7 +189,7 @@ class nsMediaQuery { }; class nsMediaList final : public nsIDOMMediaList - , public nsWrapperCache + , public nsWrapperCache { public: typedef mozilla::ErrorResult ErrorResult; diff --git a/layout/style/nsROCSSPrimitiveValue.h b/layout/style/nsROCSSPrimitiveValue.h index 1e7c28e27b49..c1a062981614 100644 --- a/layout/style/nsROCSSPrimitiveValue.h +++ b/layout/style/nsROCSSPrimitiveValue.h @@ -35,7 +35,7 @@ class nsDOMCSSRGBColor; * computed style. */ class nsROCSSPrimitiveValue final : public mozilla::dom::CSSValue, - public nsIDOMCSSPrimitiveValue + public nsIDOMCSSPrimitiveValue { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/layout/svg/nsSVGOuterSVGFrame.h b/layout/svg/nsSVGOuterSVGFrame.h index 2fd90bd2ab86..a132885e95c4 100644 --- a/layout/svg/nsSVGOuterSVGFrame.h +++ b/layout/svg/nsSVGOuterSVGFrame.h @@ -20,7 +20,7 @@ class nsSVGForeignObjectFrame; typedef nsSVGDisplayContainerFrame nsSVGOuterSVGFrameBase; class nsSVGOuterSVGFrame final : public nsSVGOuterSVGFrameBase, - public nsISVGSVGFrame + public nsISVGSVGFrame { friend nsContainerFrame* NS_NewSVGOuterSVGFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); diff --git a/layout/xul/ListBoxObject.h b/layout/xul/ListBoxObject.h index 12f7ba991b20..39cdf5c8c110 100644 --- a/layout/xul/ListBoxObject.h +++ b/layout/xul/ListBoxObject.h @@ -14,7 +14,7 @@ namespace mozilla { namespace dom { class ListBoxObject final : public BoxObject, - public nsPIListBoxObject + public nsPIListBoxObject { public: NS_DECL_ISUPPORTS_INHERITED diff --git a/layout/xul/grid/nsGridLayout2.h b/layout/xul/grid/nsGridLayout2.h index 1b4feabe91e2..04e231e279fa 100644 --- a/layout/xul/grid/nsGridLayout2.h +++ b/layout/xul/grid/nsGridLayout2.h @@ -24,7 +24,7 @@ class nsGridCell; * The nsBoxLayout implementation for a grid. */ class nsGridLayout2 final : public nsStackLayout, - public nsIGridPart + public nsIGridPart { public: diff --git a/layout/xul/nsImageBoxFrame.h b/layout/xul/nsImageBoxFrame.h index a19486b4a8d8..0b4239339c9d 100644 --- a/layout/xul/nsImageBoxFrame.h +++ b/layout/xul/nsImageBoxFrame.h @@ -20,7 +20,7 @@ class nsImageBoxFrame; class nsDisplayXULImage; class nsImageBoxListener final : public imgINotificationObserver, - public imgIOnloadBlocker + public imgIOnloadBlocker { public: nsImageBoxListener(); diff --git a/layout/xul/nsListBoxBodyFrame.h b/layout/xul/nsListBoxBodyFrame.h index 49e27692ffe9..ea65c7e74643 100644 --- a/layout/xul/nsListBoxBodyFrame.h +++ b/layout/xul/nsListBoxBodyFrame.h @@ -21,8 +21,8 @@ nsIFrame* NS_NewListBoxBodyFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); class nsListBoxBodyFrame final : public nsBoxFrame, - public nsIScrollbarMediator, - public nsIReflowCallback + public nsIScrollbarMediator, + public nsIReflowCallback { nsListBoxBodyFrame(nsStyleContext* aContext, nsBoxLayout* aLayoutManager); diff --git a/layout/xul/nsMenuPopupFrame.h b/layout/xul/nsMenuPopupFrame.h index d6fcff91f26d..2d32c193b844 100644 --- a/layout/xul/nsMenuPopupFrame.h +++ b/layout/xul/nsMenuPopupFrame.h @@ -153,7 +153,7 @@ class nsXULPopupShownEvent : public nsRunnable, public nsIDOMEventListener }; class nsMenuPopupFrame final : public nsBoxFrame, public nsMenuParent, - public nsIReflowCallback + public nsIReflowCallback { public: NS_DECL_QUERYFRAME_TARGET(nsMenuPopupFrame) diff --git a/layout/xul/nsXULPopupManager.h b/layout/xul/nsXULPopupManager.h index 900350ef49fc..c01d0e020d5a 100644 --- a/layout/xul/nsXULPopupManager.h +++ b/layout/xul/nsXULPopupManager.h @@ -271,9 +271,9 @@ class nsXULMenuCommandEvent : public nsRunnable }; class nsXULPopupManager final : public nsIDOMEventListener, - public nsIRollupListener, - public nsITimerCallback, - public nsIObserver + public nsIRollupListener, + public nsITimerCallback, + public nsIObserver { public: diff --git a/layout/xul/tree/TreeBoxObject.h b/layout/xul/tree/TreeBoxObject.h index fd80ab1bc66f..d997b5a63d30 100644 --- a/layout/xul/tree/TreeBoxObject.h +++ b/layout/xul/tree/TreeBoxObject.h @@ -21,7 +21,7 @@ struct TreeCellInfo; class DOMRect; class TreeBoxObject final : public BoxObject, - public nsITreeBoxObject + public nsITreeBoxObject { public: NS_DECL_ISUPPORTS_INHERITED diff --git a/layout/xul/tree/nsTreeColumns.h b/layout/xul/tree/nsTreeColumns.h index f7e393d46aa6..ae4afee2d746 100644 --- a/layout/xul/tree/nsTreeColumns.h +++ b/layout/xul/tree/nsTreeColumns.h @@ -40,7 +40,7 @@ class TreeBoxObject; // This class is our column info. We use it to iterate our columns and to obtain // information about each column. class nsTreeColumn final : public nsITreeColumn - , public nsWrapperCache + , public nsWrapperCache { public: nsTreeColumn(nsTreeColumns* aColumns, nsIContent* aContent); @@ -151,7 +151,7 @@ class nsTreeColumn final : public nsITreeColumn NS_DEFINE_STATIC_IID_ACCESSOR(nsTreeColumn, NS_TREECOLUMN_IMPL_CID) class nsTreeColumns final : public nsITreeColumns - , public nsWrapperCache + , public nsWrapperCache { private: ~nsTreeColumns(); diff --git a/layout/xul/tree/nsTreeContentView.h b/layout/xul/tree/nsTreeContentView.h index c6bbbdf4688f..d0898c9f2e80 100644 --- a/layout/xul/tree/nsTreeContentView.h +++ b/layout/xul/tree/nsTreeContentView.h @@ -23,8 +23,8 @@ class Row; nsresult NS_NewTreeContentView(nsITreeView** aResult); class nsTreeContentView final : public nsINativeTreeView, - public nsITreeContentView, - public nsStubDocumentObserver + public nsITreeContentView, + public nsStubDocumentObserver { public: nsTreeContentView(void); diff --git a/media/gmp-clearkey/0.1/ClearKeySessionManager.h b/media/gmp-clearkey/0.1/ClearKeySessionManager.h index 3e734a6c1b56..7c11db694b01 100644 --- a/media/gmp-clearkey/0.1/ClearKeySessionManager.h +++ b/media/gmp-clearkey/0.1/ClearKeySessionManager.h @@ -19,7 +19,7 @@ #include "RefCounted.h" class ClearKeySessionManager final : public GMPDecryptor - , public RefCounted + , public RefCounted { public: ClearKeySessionManager(); diff --git a/media/mtransport/transportflow.h b/media/mtransport/transportflow.h index 0d51d3e02852..d0fe48445657 100644 --- a/media/mtransport/transportflow.h +++ b/media/mtransport/transportflow.h @@ -50,7 +50,7 @@ namespace mozilla { class TransportFlow final : public nsISupports, - public sigslot::has_slots<> { + public sigslot::has_slots<> { public: TransportFlow() : id_("(anonymous)"), diff --git a/media/webrtc/signaling/src/jsep/JsepCodecDescription.h b/media/webrtc/signaling/src/jsep/JsepCodecDescription.h index a2b946fece85..36b19a988e3b 100644 --- a/media/webrtc/signaling/src/jsep/JsepCodecDescription.h +++ b/media/webrtc/signaling/src/jsep/JsepCodecDescription.h @@ -12,7 +12,7 @@ namespace mozilla { #define JSEP_CODEC_CLONE(T) \ - virtual JsepCodecDescription* Clone() const override \ + virtual JsepCodecDescription* Clone() const override \ { \ return new T(*this); \ } diff --git a/media/webrtc/signaling/src/peerconnection/PeerConnectionImpl.h b/media/webrtc/signaling/src/peerconnection/PeerConnectionImpl.h index da33437731c7..8bf8f6ae82c9 100644 --- a/media/webrtc/signaling/src/peerconnection/PeerConnectionImpl.h +++ b/media/webrtc/signaling/src/peerconnection/PeerConnectionImpl.h @@ -229,11 +229,11 @@ class RTCStatsQuery { class PeerConnectionImpl final : public nsISupports, #ifdef MOZILLA_INTERNAL_API - public mozilla::DataChannelConnection::DataConnectionListener, - public nsNSSShutDownObject, - public DOMMediaStream::PrincipalChangeObserver, + public mozilla::DataChannelConnection::DataConnectionListener, + public nsNSSShutDownObject, + public DOMMediaStream::PrincipalChangeObserver, #endif - public sigslot::has_slots<> + public sigslot::has_slots<> { struct Internal; // Avoid exposing c includes to bindings diff --git a/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_and_cursor_composer.h b/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_and_cursor_composer.h index 3fac0212d491..704707e4adab 100644 --- a/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_and_cursor_composer.h +++ b/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_and_cursor_composer.h @@ -20,8 +20,8 @@ namespace webrtc { // A wrapper for DesktopCapturer that also captures mouse using specified // MouseCursorMonitor and renders it on the generated streams. class DesktopAndCursorComposer : public DesktopCapturer, - public DesktopCapturer::Callback, - public MouseCursorMonitor::Callback { + public DesktopCapturer::Callback, + public MouseCursorMonitor::Callback { public: // Creates a new blender that captures mouse cursor using |mouse_monitor| and // renders it into the frames generated by |desktop_capturer|. If diff --git a/mobile/android/components/build/nsAndroidHistory.h b/mobile/android/components/build/nsAndroidHistory.h index 0d30afa73ade..95cf21f51e48 100644 --- a/mobile/android/components/build/nsAndroidHistory.h +++ b/mobile/android/components/build/nsAndroidHistory.h @@ -24,8 +24,8 @@ #define EMBED_URI_SIZE 128 class nsAndroidHistory final : public mozilla::IHistory, - public nsIRunnable, - public nsITimerCallback + public nsIRunnable, + public nsITimerCallback { public: NS_DECL_ISUPPORTS diff --git a/modules/libjar/nsJARChannel.h b/modules/libjar/nsJARChannel.h index 6f488912619f..59e0777afdcc 100644 --- a/modules/libjar/nsJARChannel.h +++ b/modules/libjar/nsJARChannel.h @@ -31,12 +31,12 @@ class nsJARInputThunk; //----------------------------------------------------------------------------- class nsJARChannel final : public nsIJARChannel - , public mozilla::net::MemoryDownloader::IObserver - , public nsIStreamListener - , public nsIRemoteOpenFileListener - , public nsIThreadRetargetableRequest - , public nsIThreadRetargetableStreamListener - , public nsHashPropertyBag + , public mozilla::net::MemoryDownloader::IObserver + , public nsIStreamListener + , public nsIRemoteOpenFileListener + , public nsIThreadRetargetableRequest + , public nsIThreadRetargetableStreamListener + , public nsHashPropertyBag { public: NS_DECL_ISUPPORTS_INHERITED diff --git a/modules/libjar/nsJARProtocolHandler.h b/modules/libjar/nsJARProtocolHandler.h index 64310f4eab65..09e3385932e1 100644 --- a/modules/libjar/nsJARProtocolHandler.h +++ b/modules/libjar/nsJARProtocolHandler.h @@ -21,7 +21,7 @@ class nsIHashable; class nsIRemoteOpenFileListener; class nsJARProtocolHandler final : public nsIJARProtocolHandler - , public nsSupportsWeakReference + , public nsSupportsWeakReference { typedef nsAutoTArray, 5> RemoteFileListenerArray; diff --git a/modules/libjar/nsJARURI.h b/modules/libjar/nsJARURI.h index 680f215fbef3..b26474678897 100644 --- a/modules/libjar/nsJARURI.h +++ b/modules/libjar/nsJARURI.h @@ -33,10 +33,10 @@ class nsJARURI final : public nsIJARURI, - public nsISerializable, - public nsIClassInfo, - public nsINestedURI, - public nsIIPCSerializableURI + public nsISerializable, + public nsIClassInfo, + public nsINestedURI, + public nsIIPCSerializableURI { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/modules/libjar/zipwriter/nsZipWriter.h b/modules/libjar/zipwriter/nsZipWriter.h index 80d940d9b7a1..f7fa1b1633ce 100644 --- a/modules/libjar/zipwriter/nsZipWriter.h +++ b/modules/libjar/zipwriter/nsZipWriter.h @@ -37,7 +37,7 @@ struct nsZipQueueItem }; class nsZipWriter final : public nsIZipWriter, - public nsIRequestObserver + public nsIRequestObserver { public: NS_DECL_ISUPPORTS diff --git a/modules/libpref/Preferences.cpp b/modules/libpref/Preferences.cpp index 95940faef29f..17f773d41a8e 100644 --- a/modules/libpref/Preferences.cpp +++ b/modules/libpref/Preferences.cpp @@ -126,7 +126,7 @@ class ValueObserverHashKey : public PLDHashEntryHdr { }; class ValueObserver final : public nsIObserver, - public ValueObserverHashKey + public ValueObserverHashKey { ~ValueObserver() { Preferences::RemoveObserver(this, mPrefName.get()); diff --git a/modules/libpref/Preferences.h b/modules/libpref/Preferences.h index 7e766a78d136..4a8f03e3696b 100644 --- a/modules/libpref/Preferences.h +++ b/modules/libpref/Preferences.h @@ -37,9 +37,9 @@ class PrefSetting; } class Preferences final : public nsIPrefService, - public nsIObserver, - public nsIPrefBranchInternal, - public nsSupportsWeakReference + public nsIObserver, + public nsIPrefBranchInternal, + public nsSupportsWeakReference { public: typedef mozilla::dom::PrefSetting PrefSetting; diff --git a/netwerk/base/ProxyAutoConfig.cpp b/netwerk/base/ProxyAutoConfig.cpp index 1324304e032d..994608c99b8b 100644 --- a/netwerk/base/ProxyAutoConfig.cpp +++ b/netwerk/base/ProxyAutoConfig.cpp @@ -259,7 +259,7 @@ static void SetRunning(ProxyAutoConfig *arg) // The PACResolver is used for dnsResolve() class PACResolver final : public nsIDNSListener - , public nsITimerCallback + , public nsITimerCallback { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/netwerk/base/nsAsyncRedirectVerifyHelper.h b/netwerk/base/nsAsyncRedirectVerifyHelper.h index fd4680b04d0c..635acdbfaca1 100644 --- a/netwerk/base/nsAsyncRedirectVerifyHelper.h +++ b/netwerk/base/nsAsyncRedirectVerifyHelper.h @@ -24,7 +24,7 @@ class nsIChannel; * redirect decision is returned through the callback. */ class nsAsyncRedirectVerifyHelper final : public nsIRunnable, - public nsIAsyncVerifyRedirectCallback + public nsIAsyncVerifyRedirectCallback { NS_DECL_THREADSAFE_ISUPPORTS NS_DECL_NSIRUNNABLE diff --git a/netwerk/base/nsAsyncStreamCopier.h b/netwerk/base/nsAsyncStreamCopier.h index 8709c83dfc8d..7529a327aa60 100644 --- a/netwerk/base/nsAsyncStreamCopier.h +++ b/netwerk/base/nsAsyncStreamCopier.h @@ -16,7 +16,7 @@ class nsIRequestObserver; //----------------------------------------------------------------------------- class nsAsyncStreamCopier final : public nsIAsyncStreamCopier, - nsIAsyncStreamCopier2 + nsIAsyncStreamCopier2 { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/netwerk/base/nsIOService.h b/netwerk/base/nsIOService.h index 0ce99c7f3903..0486d65c3a38 100644 --- a/netwerk/base/nsIOService.h +++ b/netwerk/base/nsIOService.h @@ -45,10 +45,10 @@ namespace net { } // namespace mozilla class nsIOService final : public nsIIOService2 - , public nsIObserver - , public nsINetUtil - , public nsISpeculativeConnect - , public nsSupportsWeakReference + , public nsIObserver + , public nsINetUtil + , public nsISpeculativeConnect + , public nsSupportsWeakReference { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/netwerk/base/nsInputStreamPump.h b/netwerk/base/nsInputStreamPump.h index 483cb192a4f2..c9b7bd64cca2 100644 --- a/netwerk/base/nsInputStreamPump.h +++ b/netwerk/base/nsInputStreamPump.h @@ -18,8 +18,8 @@ class nsILoadGroup; class nsIStreamListener; class nsInputStreamPump final : public nsIInputStreamPump - , public nsIInputStreamCallback - , public nsIThreadRetargetableRequest + , public nsIInputStreamCallback + , public nsIThreadRetargetableRequest { ~nsInputStreamPump(); diff --git a/netwerk/base/nsPACMan.h b/netwerk/base/nsPACMan.h index 7668d775183f..4b816ded4205 100644 --- a/netwerk/base/nsPACMan.h +++ b/netwerk/base/nsPACMan.h @@ -51,7 +51,7 @@ class NS_NO_VTABLE nsPACManCallback : public nsISupports }; class PendingPACQuery final : public nsRunnable, - public mozilla::LinkedListElement + public mozilla::LinkedListElement { public: PendingPACQuery(nsPACMan *pacMan, nsIURI *uri, uint32_t appId, @@ -88,8 +88,8 @@ class PendingPACQuery final : public nsRunnable, */ class nsPACMan final : public nsIStreamLoaderObserver - , public nsIInterfaceRequestor - , public nsIChannelEventSink + , public nsIInterfaceRequestor + , public nsIChannelEventSink { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/netwerk/base/nsProtocolProxyService.cpp b/netwerk/base/nsProtocolProxyService.cpp index 047e81fdbebd..f222d47ddd78 100644 --- a/netwerk/base/nsProtocolProxyService.cpp +++ b/netwerk/base/nsProtocolProxyService.cpp @@ -98,8 +98,8 @@ GetProxyURI(nsIChannel *channel, nsIURI **aOut) // on the main thread - so call nsPACMan::AsyncGetProxyForURI() with // a true mainThreadResponse parameter. class nsAsyncResolveRequest final : public nsIRunnable - , public nsPACManCallback - , public nsICancelable + , public nsPACManCallback + , public nsICancelable { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/netwerk/base/nsProtocolProxyService.h b/netwerk/base/nsProtocolProxyService.h index 1114febedcfa..751ec160a59e 100644 --- a/netwerk/base/nsProtocolProxyService.h +++ b/netwerk/base/nsProtocolProxyService.h @@ -34,7 +34,7 @@ class nsPACMan; { 0xad, 0x62, 0x0c, 0x87, 0x35, 0x1e, 0x64, 0x0d } } class nsProtocolProxyService final : public nsIProtocolProxyService2 - , public nsIObserver + , public nsIObserver { public: NS_DECL_ISUPPORTS diff --git a/netwerk/base/nsSocketTransport2.h b/netwerk/base/nsSocketTransport2.h index 9afb856eabdb..df12d5ccf04e 100644 --- a/netwerk/base/nsSocketTransport2.h +++ b/netwerk/base/nsSocketTransport2.h @@ -106,10 +106,10 @@ class nsSocketOutputStream : public nsIAsyncOutputStream //----------------------------------------------------------------------------- class nsSocketTransport final : public nsASocketHandler - , public nsISocketTransport - , public nsIDNSListener - , public nsIClassInfo - , public nsIInterfaceRequestor + , public nsISocketTransport + , public nsIDNSListener + , public nsIClassInfo + , public nsIInterfaceRequestor { typedef mozilla::Mutex Mutex; diff --git a/netwerk/base/nsSocketTransportService2.h b/netwerk/base/nsSocketTransportService2.h index eb38e3a3246b..f51bd456a92c 100644 --- a/netwerk/base/nsSocketTransportService2.h +++ b/netwerk/base/nsSocketTransportService2.h @@ -60,10 +60,10 @@ static const int32_t kDefaultTCPKeepCount = //----------------------------------------------------------------------------- class nsSocketTransportService final : public nsPISocketTransportService - , public nsIEventTarget - , public nsIThreadObserver - , public nsIRunnable - , public nsIObserver + , public nsIEventTarget + , public nsIThreadObserver + , public nsIRunnable + , public nsIObserver { typedef mozilla::Mutex Mutex; diff --git a/netwerk/base/nsStreamListenerWrapper.h b/netwerk/base/nsStreamListenerWrapper.h index 617a917ae5bb..69f65370d29d 100644 --- a/netwerk/base/nsStreamListenerWrapper.h +++ b/netwerk/base/nsStreamListenerWrapper.h @@ -14,7 +14,7 @@ // Wrapper class to make replacement of nsHttpChannel's listener // from JavaScript possible. It is workaround for bug 433711 and 682305. class nsStreamListenerWrapper final : public nsIStreamListener - , public nsIThreadRetargetableStreamListener + , public nsIThreadRetargetableStreamListener { public: explicit nsStreamListenerWrapper(nsIStreamListener *listener) diff --git a/netwerk/base/nsStreamLoader.h b/netwerk/base/nsStreamLoader.h index 2a0c9f184a64..391d9f591523 100644 --- a/netwerk/base/nsStreamLoader.h +++ b/netwerk/base/nsStreamLoader.h @@ -15,7 +15,7 @@ class nsIRequest; class nsStreamLoader final : public nsIStreamLoader - , public nsIThreadRetargetableStreamListener + , public nsIThreadRetargetableStreamListener { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/netwerk/base/nsStreamTransportService.h b/netwerk/base/nsStreamTransportService.h index 280182eba10c..f52877295e28 100644 --- a/netwerk/base/nsStreamTransportService.h +++ b/netwerk/base/nsStreamTransportService.h @@ -13,8 +13,8 @@ class nsIThreadPool; class nsStreamTransportService final : public nsIStreamTransportService - , public nsIEventTarget - , public nsIObserver + , public nsIEventTarget + , public nsIObserver { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/netwerk/base/nsSyncStreamListener.h b/netwerk/base/nsSyncStreamListener.h index 20e756a0622a..9fa9c58c3e10 100644 --- a/netwerk/base/nsSyncStreamListener.h +++ b/netwerk/base/nsSyncStreamListener.h @@ -14,7 +14,7 @@ //----------------------------------------------------------------------------- class nsSyncStreamListener final : public nsISyncStreamListener - , public nsIInputStream + , public nsIInputStream { public: NS_DECL_ISUPPORTS diff --git a/netwerk/base/nsUDPSocket.h b/netwerk/base/nsUDPSocket.h index 118c6d49e79b..51db15d60d69 100644 --- a/netwerk/base/nsUDPSocket.h +++ b/netwerk/base/nsUDPSocket.h @@ -15,7 +15,7 @@ //----------------------------------------------------------------------------- class nsUDPSocket final : public nsASocketHandler - , public nsIUDPSocket + , public nsIUDPSocket { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/netwerk/cache/nsCacheService.h b/netwerk/cache/nsCacheService.h index 309d29d8f69e..e6234e35b859 100644 --- a/netwerk/cache/nsCacheService.h +++ b/netwerk/cache/nsCacheService.h @@ -63,7 +63,7 @@ class nsNotifyDoomListener : public nsRunnable { ******************************************************************************/ class nsCacheService final : public nsICacheServiceInternal, - public nsIMemoryReporter + public nsIMemoryReporter { virtual ~nsCacheService(); diff --git a/netwerk/cache/nsDiskCacheDeviceSQL.h b/netwerk/cache/nsDiskCacheDeviceSQL.h index 27f9f39499a8..3cdc0dd8c360 100644 --- a/netwerk/cache/nsDiskCacheDeviceSQL.h +++ b/netwerk/cache/nsDiskCacheDeviceSQL.h @@ -63,7 +63,7 @@ class nsOfflineCacheEvictionFunction final : public mozIStorageFunction { }; class nsOfflineCacheDevice final : public nsCacheDevice - , public nsISupports + , public nsISupports { public: nsOfflineCacheDevice(); diff --git a/netwerk/cache2/CacheEntry.h b/netwerk/cache2/CacheEntry.h index 584e72ece7cf..e38f9e54e8ba 100644 --- a/netwerk/cache2/CacheEntry.h +++ b/netwerk/cache2/CacheEntry.h @@ -48,8 +48,8 @@ class CacheOutputCloseListener; class CacheEntryHandle; class CacheEntry final : public nsICacheEntry - , public nsIRunnable - , public CacheFileListener + , public nsIRunnable + , public CacheFileListener { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/netwerk/cache2/CacheStorageService.h b/netwerk/cache2/CacheStorageService.h index 72ece79f63a6..fb07a4dffd7f 100644 --- a/netwerk/cache2/CacheStorageService.h +++ b/netwerk/cache2/CacheStorageService.h @@ -65,8 +65,8 @@ class CacheMemoryConsumer }; class CacheStorageService final : public nsICacheStorageService - , public nsIMemoryReporter - , public nsITimerCallback + , public nsIMemoryReporter + , public nsITimerCallback { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/netwerk/cookie/nsCookieService.h b/netwerk/cookie/nsCookieService.h index ee65ae4f7686..1e486e912e35 100644 --- a/netwerk/cookie/nsCookieService.h +++ b/netwerk/cookie/nsCookieService.h @@ -239,10 +239,10 @@ enum OpenDBResult ******************************************************************************/ class nsCookieService final : public nsICookieService - , public nsICookieManager2 - , public nsIObserver - , public nsSupportsWeakReference - , public nsIMemoryReporter + , public nsICookieManager2 + , public nsIObserver + , public nsSupportsWeakReference + , public nsIMemoryReporter { private: size_t SizeOfIncludingThis(mozilla::MallocSizeOf aMallocSizeOf) const; diff --git a/netwerk/dns/nsDNSService2.cpp b/netwerk/dns/nsDNSService2.cpp index 19abe6471cca..1990567b3d41 100644 --- a/netwerk/dns/nsDNSService2.cpp +++ b/netwerk/dns/nsDNSService2.cpp @@ -294,7 +294,7 @@ nsDNSRecord::ReportUnusable(uint16_t aPort) //----------------------------------------------------------------------------- class nsDNSAsyncRequest final : public nsResolveHostCallback - , public nsICancelable + , public nsICancelable { ~nsDNSAsyncRequest() {} diff --git a/netwerk/dns/nsDNSService2.h b/netwerk/dns/nsDNSService2.h index 70a4ac771a00..39add3d4e504 100644 --- a/netwerk/dns/nsDNSService2.h +++ b/netwerk/dns/nsDNSService2.h @@ -22,8 +22,8 @@ #include "mozilla/Attributes.h" class nsDNSService final : public nsPIDNSService - , public nsIObserver - , public nsIMemoryReporter + , public nsIObserver + , public nsIMemoryReporter { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/netwerk/protocol/ftp/FTPChannelParent.h b/netwerk/protocol/ftp/FTPChannelParent.h index 00eb5919b2ee..8188a26d699e 100644 --- a/netwerk/protocol/ftp/FTPChannelParent.h +++ b/netwerk/protocol/ftp/FTPChannelParent.h @@ -22,11 +22,11 @@ namespace mozilla { namespace net { class FTPChannelParent final : public PFTPChannelParent - , public nsIParentChannel - , public nsIInterfaceRequestor - , public ADivertableParentChannel - , public nsIChannelEventSink - , public DisconnectableParent + , public nsIParentChannel + , public nsIInterfaceRequestor + , public ADivertableParentChannel + , public nsIChannelEventSink + , public DisconnectableParent { public: NS_DECL_ISUPPORTS diff --git a/netwerk/protocol/ftp/nsFtpConnectionThread.h b/netwerk/protocol/ftp/nsFtpConnectionThread.h index 82a67af42111..6378d11d3865 100644 --- a/netwerk/protocol/ftp/nsFtpConnectionThread.h +++ b/netwerk/protocol/ftp/nsFtpConnectionThread.h @@ -73,11 +73,11 @@ class nsIStreamListener; // control connection and the data connection. class nsFtpState final : public nsBaseContentStream, - public nsIInputStreamCallback, - public nsITransportEventSink, - public nsIRequestObserver, - public nsFtpControlConnectionListener, - public nsIProtocolProxyCallback + public nsIInputStreamCallback, + public nsITransportEventSink, + public nsIRequestObserver, + public nsFtpControlConnectionListener, + public nsIProtocolProxyCallback { public: NS_DECL_ISUPPORTS_INHERITED diff --git a/netwerk/protocol/ftp/nsFtpProtocolHandler.h b/netwerk/protocol/ftp/nsFtpProtocolHandler.h index 9d25e6b6243a..428c3106ebd6 100644 --- a/netwerk/protocol/ftp/nsFtpProtocolHandler.h +++ b/netwerk/protocol/ftp/nsFtpProtocolHandler.h @@ -16,8 +16,8 @@ //----------------------------------------------------------------------------- class nsFtpProtocolHandler final : public nsIProxiedProtocolHandler - , public nsIObserver - , public nsSupportsWeakReference + , public nsIObserver + , public nsSupportsWeakReference { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/netwerk/protocol/http/Http2Session.h b/netwerk/protocol/http/Http2Session.h index a06802a16011..4a2a90141eb9 100644 --- a/netwerk/protocol/http/Http2Session.h +++ b/netwerk/protocol/http/Http2Session.h @@ -28,9 +28,9 @@ class Http2Stream; class nsHttpTransaction; class Http2Session final : public ASpdySession - , public nsAHttpConnection - , public nsAHttpSegmentReader - , public nsAHttpSegmentWriter + , public nsAHttpConnection + , public nsAHttpSegmentReader + , public nsAHttpSegmentWriter { ~Http2Session(); diff --git a/netwerk/protocol/http/HttpChannelChild.h b/netwerk/protocol/http/HttpChannelChild.h index 7306cede3df0..7844f383bd47 100644 --- a/netwerk/protocol/http/HttpChannelChild.h +++ b/netwerk/protocol/http/HttpChannelChild.h @@ -39,16 +39,16 @@ class InterceptedChannelContent; class InterceptStreamListener; class HttpChannelChild final : public PHttpChannelChild - , public HttpBaseChannel - , public HttpAsyncAborter - , public nsICacheInfoChannel - , public nsIProxiedChannel - , public nsIApplicationCacheChannel - , public nsIAsyncVerifyRedirectCallback - , public nsIAssociatedContentSecurity - , public nsIChildChannel - , public nsIHttpChannelChild - , public nsIDivertableChannel + , public HttpBaseChannel + , public HttpAsyncAborter + , public nsICacheInfoChannel + , public nsIProxiedChannel + , public nsIApplicationCacheChannel + , public nsIAsyncVerifyRedirectCallback + , public nsIAssociatedContentSecurity + , public nsIChildChannel + , public nsIHttpChannelChild + , public nsIDivertableChannel { virtual ~HttpChannelChild(); public: diff --git a/netwerk/protocol/http/SpdySession31.h b/netwerk/protocol/http/SpdySession31.h index 83b24cb25c44..7d6b68494f28 100644 --- a/netwerk/protocol/http/SpdySession31.h +++ b/netwerk/protocol/http/SpdySession31.h @@ -26,9 +26,9 @@ class SpdyStream31; class nsHttpTransaction; class SpdySession31 final : public ASpdySession - , public nsAHttpConnection - , public nsAHttpSegmentReader - , public nsAHttpSegmentWriter + , public nsAHttpConnection + , public nsAHttpSegmentReader + , public nsAHttpSegmentWriter { ~SpdySession31(); diff --git a/netwerk/protocol/http/SpdyStream31.h b/netwerk/protocol/http/SpdyStream31.h index b1fe1407bbbc..7541b85f303d 100644 --- a/netwerk/protocol/http/SpdyStream31.h +++ b/netwerk/protocol/http/SpdyStream31.h @@ -12,7 +12,7 @@ namespace mozilla { namespace net { class SpdyStream31 : public nsAHttpSegmentReader - , public nsAHttpSegmentWriter + , public nsAHttpSegmentWriter { public: NS_DECL_NSAHTTPSEGMENTREADER diff --git a/netwerk/protocol/http/nsAHttpConnection.h b/netwerk/protocol/http/nsAHttpConnection.h index 849e8eefab8c..d858342c25cd 100644 --- a/netwerk/protocol/http/nsAHttpConnection.h +++ b/netwerk/protocol/http/nsAHttpConnection.h @@ -153,31 +153,30 @@ NS_DEFINE_STATIC_IID_ACCESSOR(nsAHttpConnection, NS_AHTTPCONNECTION_IID) nsresult TakeTransport(nsISocketTransport **, \ nsIAsyncInputStream **, \ nsIAsyncOutputStream **) override; \ - bool IsPersistent() override; \ - bool IsReused() override; \ - void DontReuse() override; \ - nsresult PushBack(const char *, uint32_t) override; \ - nsHttpConnection *TakeHttpConnection() override; \ - uint32_t CancelPipeline(nsresult originalReason) override; \ - nsAHttpTransaction::Classifier Classification() override; \ + bool IsPersistent() override; \ + bool IsReused() override; \ + void DontReuse() override; \ + nsresult PushBack(const char *, uint32_t) override; \ + nsHttpConnection *TakeHttpConnection() override; \ + uint32_t CancelPipeline(nsresult originalReason) override; \ + nsAHttpTransaction::Classifier Classification() override; \ /* \ Thes methods below have automatic definitions that just forward the \ function to a lower level connection object \ */ \ void GetConnectionInfo(nsHttpConnectionInfo **result) \ - override \ + override \ { \ if (!(fwdObject)) { \ - *result = nullptr; \ + *result = nullptr; \ return; \ } \ return (fwdObject)->GetConnectionInfo(result); \ } \ - void GetSecurityInfo(nsISupports **result) \ - override \ + void GetSecurityInfo(nsISupports **result) override \ { \ if (!(fwdObject)) { \ - *result = nullptr; \ + *result = nullptr; \ return; \ } \ return (fwdObject)->GetSecurityInfo(result); \ @@ -219,29 +218,29 @@ NS_DEFINE_STATIC_IID_ACCESSOR(nsAHttpConnection, NS_AHTTPCONNECTION_IID) (fwdObject)->Version() : \ NS_HTTP_VERSION_UNKNOWN; \ } \ - bool IsProxyConnectInProgress() override \ + bool IsProxyConnectInProgress() override \ { \ return (fwdObject)->IsProxyConnectInProgress(); \ } \ - bool LastTransactionExpectedNoContent() override \ + bool LastTransactionExpectedNoContent() override \ { \ return (fwdObject)->LastTransactionExpectedNoContent(); \ } \ void SetLastTransactionExpectedNoContent(bool val) \ - override \ + override \ { \ return (fwdObject)->SetLastTransactionExpectedNoContent(val); \ } \ void Classify(nsAHttpTransaction::Classifier newclass) \ - override \ + override \ { \ if (fwdObject) \ return (fwdObject)->Classify(newclass); \ } \ - int64_t BytesWritten() override \ + int64_t BytesWritten() override \ { return fwdObject ? (fwdObject)->BytesWritten() : 0; } \ void SetSecurityCallbacks(nsIInterfaceRequestor* aCallbacks) \ - override \ + override \ { \ if (fwdObject) \ (fwdObject)->SetSecurityCallbacks(aCallbacks); \ diff --git a/netwerk/protocol/http/nsHttpChannel.cpp b/netwerk/protocol/http/nsHttpChannel.cpp index 955fbc9350db..27d09c2fb175 100644 --- a/netwerk/protocol/http/nsHttpChannel.cpp +++ b/netwerk/protocol/http/nsHttpChannel.cpp @@ -5981,7 +5981,7 @@ nsHttpChannel::SetOfflineCacheToken(nsISupports *token) } class nsHttpChannelCacheKey final : public nsISupportsPRUint32, - public nsISupportsCString + public nsISupportsCString { NS_DECL_ISUPPORTS diff --git a/netwerk/protocol/http/nsHttpChannel.h b/netwerk/protocol/http/nsHttpChannel.h index 82c41fb0d0d8..9010e4a5c55a 100644 --- a/netwerk/protocol/http/nsHttpChannel.h +++ b/netwerk/protocol/http/nsHttpChannel.h @@ -47,19 +47,19 @@ class Http2PushedStream; } class nsHttpChannel final : public HttpBaseChannel - , public HttpAsyncAborter - , public nsIStreamListener - , public nsICachingChannel - , public nsICacheEntryOpenCallback - , public nsITransportEventSink - , public nsIProtocolProxyCallback - , public nsIHttpAuthenticableChannel - , public nsIApplicationCacheChannel - , public nsIAsyncVerifyRedirectCallback - , public nsIThreadRetargetableRequest - , public nsIThreadRetargetableStreamListener - , public nsIDNSListener - , public nsSupportsWeakReference + , public HttpAsyncAborter + , public nsIStreamListener + , public nsICachingChannel + , public nsICacheEntryOpenCallback + , public nsITransportEventSink + , public nsIProtocolProxyCallback + , public nsIHttpAuthenticableChannel + , public nsIApplicationCacheChannel + , public nsIAsyncVerifyRedirectCallback + , public nsIThreadRetargetableRequest + , public nsIThreadRetargetableStreamListener + , public nsIDNSListener + , public nsSupportsWeakReference { public: NS_DECL_ISUPPORTS_INHERITED diff --git a/netwerk/protocol/http/nsHttpConnection.h b/netwerk/protocol/http/nsHttpConnection.h index a10d4168fa9e..6963061d5e73 100644 --- a/netwerk/protocol/http/nsHttpConnection.h +++ b/netwerk/protocol/http/nsHttpConnection.h @@ -37,12 +37,12 @@ class ASpdySession; //----------------------------------------------------------------------------- class nsHttpConnection final : public nsAHttpSegmentReader - , public nsAHttpSegmentWriter - , public nsIInputStreamCallback - , public nsIOutputStreamCallback - , public nsITransportEventSink - , public nsIInterfaceRequestor - , public NudgeTunnelCallback + , public nsAHttpSegmentWriter + , public nsIInputStreamCallback + , public nsIOutputStreamCallback + , public nsITransportEventSink + , public nsIInterfaceRequestor + , public NudgeTunnelCallback { virtual ~nsHttpConnection(); diff --git a/netwerk/protocol/http/nsHttpConnectionMgr.h b/netwerk/protocol/http/nsHttpConnectionMgr.h index ed53bebb17f4..af566ecb6554 100644 --- a/netwerk/protocol/http/nsHttpConnectionMgr.h +++ b/netwerk/protocol/http/nsHttpConnectionMgr.h @@ -431,9 +431,9 @@ class nsHttpConnectionMgr final : public nsIObserver // while we wait for it to establish and bind it to a connection class nsHalfOpenSocket final : public nsIOutputStreamCallback, - public nsITransportEventSink, - public nsIInterfaceRequestor, - public nsITimerCallback + public nsITransportEventSink, + public nsIInterfaceRequestor, + public nsITimerCallback { ~nsHalfOpenSocket(); diff --git a/netwerk/protocol/http/nsHttpHandler.h b/netwerk/protocol/http/nsHttpHandler.h index cfbf005447c1..27e7d6d6628e 100644 --- a/netwerk/protocol/http/nsHttpHandler.h +++ b/netwerk/protocol/http/nsHttpHandler.h @@ -50,9 +50,9 @@ enum FrameCheckLevel { //----------------------------------------------------------------------------- class nsHttpHandler final : public nsIHttpProtocolHandler - , public nsIObserver - , public nsSupportsWeakReference - , public nsISpeculativeConnect + , public nsIObserver + , public nsSupportsWeakReference + , public nsISpeculativeConnect { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/netwerk/protocol/http/nsHttpPipeline.h b/netwerk/protocol/http/nsHttpPipeline.h index 086b0d830cb6..9ab37178a23f 100644 --- a/netwerk/protocol/http/nsHttpPipeline.h +++ b/netwerk/protocol/http/nsHttpPipeline.h @@ -17,8 +17,8 @@ class nsIOutputStream; namespace mozilla { namespace net { class nsHttpPipeline final : public nsAHttpConnection - , public nsAHttpTransaction - , public nsAHttpSegmentReader + , public nsAHttpTransaction + , public nsAHttpSegmentReader { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/netwerk/protocol/http/nsHttpTransaction.h b/netwerk/protocol/http/nsHttpTransaction.h index 216897f0d22c..6902c8bc614a 100644 --- a/netwerk/protocol/http/nsHttpTransaction.h +++ b/netwerk/protocol/http/nsHttpTransaction.h @@ -41,9 +41,9 @@ class nsHttpResponseHead; //----------------------------------------------------------------------------- class nsHttpTransaction final : public nsAHttpTransaction - , public ATokenBucketEvent - , public nsIInputStreamCallback - , public nsIOutputStreamCallback + , public ATokenBucketEvent + , public nsIInputStreamCallback + , public nsIOutputStreamCallback { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/netwerk/protocol/rtsp/controller/RtspController.h b/netwerk/protocol/rtsp/controller/RtspController.h index a6c4ba7260c7..666fb822648f 100644 --- a/netwerk/protocol/rtsp/controller/RtspController.h +++ b/netwerk/protocol/rtsp/controller/RtspController.h @@ -17,7 +17,7 @@ namespace mozilla { namespace net { class RtspController final : public nsIStreamingProtocolController - , public nsIStreamingProtocolListener + , public nsIStreamingProtocolListener { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/netwerk/protocol/viewsource/nsViewSourceChannel.h b/netwerk/protocol/viewsource/nsViewSourceChannel.h index 9c7249d7757b..8f63a5f4aa2c 100644 --- a/netwerk/protocol/viewsource/nsViewSourceChannel.h +++ b/netwerk/protocol/viewsource/nsViewSourceChannel.h @@ -19,12 +19,12 @@ #include "mozilla/Attributes.h" class nsViewSourceChannel final : public nsIViewSourceChannel, - public nsIStreamListener, - public nsIHttpChannel, - public nsIHttpChannelInternal, - public nsICachingChannel, - public nsIApplicationCacheChannel, - public nsIUploadChannel + public nsIStreamListener, + public nsIHttpChannel, + public nsIHttpChannelInternal, + public nsICachingChannel, + public nsIApplicationCacheChannel, + public nsIUploadChannel { public: diff --git a/netwerk/streamconv/converters/nsMultiMixedConv.h b/netwerk/streamconv/converters/nsMultiMixedConv.h index 0e3e287808d1..8b3c874da4c1 100644 --- a/netwerk/streamconv/converters/nsMultiMixedConv.h +++ b/netwerk/streamconv/converters/nsMultiMixedConv.h @@ -35,9 +35,9 @@ using mozilla::net::nsHttpResponseHead; // nsIStreamListener interface. // class nsPartChannel final : public nsIChannel, - public nsIByteRangeRequest, - public nsIResponseHeadProvider, - public nsIMultiPartChannel + public nsIByteRangeRequest, + public nsIResponseHeadProvider, + public nsIMultiPartChannel { public: nsPartChannel(nsIChannel *aMultipartChannel, uint32_t aPartID, diff --git a/netwerk/test/TestIncrementalDownload.cpp b/netwerk/test/TestIncrementalDownload.cpp index 9caecb316691..082828ad85e8 100644 --- a/netwerk/test/TestIncrementalDownload.cpp +++ b/netwerk/test/TestIncrementalDownload.cpp @@ -20,7 +20,7 @@ //----------------------------------------------------------------------------- class FetchObserver final : public nsIRequestObserver - , public nsIProgressEventSink + , public nsIProgressEventSink { ~FetchObserver() {} public: diff --git a/parser/html/nsHtml5Parser.h b/parser/html/nsHtml5Parser.h index 3ac25d27c31d..277143368a92 100644 --- a/parser/html/nsHtml5Parser.h +++ b/parser/html/nsHtml5Parser.h @@ -28,7 +28,7 @@ #include "nsHtml5StreamListener.h" class nsHtml5Parser final : public nsIParser, - public nsSupportsWeakReference + public nsSupportsWeakReference { public: NS_DECL_AND_IMPL_ZEROING_OPERATOR_NEW diff --git a/parser/html/nsHtml5TreeOpExecutor.h b/parser/html/nsHtml5TreeOpExecutor.h index b3b54eee10c5..ec922c1bea27 100644 --- a/parser/html/nsHtml5TreeOpExecutor.h +++ b/parser/html/nsHtml5TreeOpExecutor.h @@ -32,9 +32,9 @@ class nsIContent; class nsIDocument; class nsHtml5TreeOpExecutor final : public nsHtml5DocumentBuilder, - public nsIContentSink, - public nsAHtml5TreeOpSink, - public mozilla::LinkedListElement + public nsIContentSink, + public nsAHtml5TreeOpSink, + public mozilla::LinkedListElement { friend class nsHtml5FlushLoopGuard; typedef mozilla::net::ReferrerPolicy ReferrerPolicy; diff --git a/parser/html/nsParserUtils.h b/parser/html/nsParserUtils.h index 5356cf6fc29c..4645f11b9487 100644 --- a/parser/html/nsParserUtils.h +++ b/parser/html/nsParserUtils.h @@ -11,7 +11,7 @@ #include "mozilla/Attributes.h" class nsParserUtils final : public nsIScriptableUnescapeHTML, - public nsIParserUtils + public nsIParserUtils { ~nsParserUtils() {} public: diff --git a/parser/htmlparser/nsParser.h b/parser/htmlparser/nsParser.h index 54bccf4f5c13..858ee23d706f 100644 --- a/parser/htmlparser/nsParser.h +++ b/parser/htmlparser/nsParser.h @@ -63,8 +63,8 @@ class nsIRunnable; class nsParser final : public nsIParser, - public nsIStreamListener, - public nsSupportsWeakReference + public nsIStreamListener, + public nsSupportsWeakReference { /** * Destructor diff --git a/parser/xml/nsSAXXMLReader.h b/parser/xml/nsSAXXMLReader.h index e1885a8bb238..763f787e56ed 100644 --- a/parser/xml/nsSAXXMLReader.h +++ b/parser/xml/nsSAXXMLReader.h @@ -26,8 +26,8 @@ { 0x96, 0xd0, 0x47, 0xa8, 0x28, 0x2a, 0xe3, 0xdb} } class nsSAXXMLReader final : public nsISAXXMLReader, - public nsIExtendedExpatSink, - public nsIContentSink + public nsIExtendedExpatSink, + public nsIContentSink { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/rdf/base/nsRDFService.h b/rdf/base/nsRDFService.h index 27905f9b9aaa..8dad600975aa 100644 --- a/rdf/base/nsRDFService.h +++ b/rdf/base/nsRDFService.h @@ -34,7 +34,7 @@ class nsIRDFDate; class BlobImpl; class RDFServiceImpl final : public nsIRDFService, - public nsSupportsWeakReference + public nsSupportsWeakReference { protected: PLHashTable* mNamedDataSources; diff --git a/security/manager/ssl/src/PSMContentListener.h b/security/manager/ssl/src/PSMContentListener.h index 17ee0959804b..49239029bfc8 100644 --- a/security/manager/ssl/src/PSMContentListener.h +++ b/security/manager/ssl/src/PSMContentListener.h @@ -17,7 +17,8 @@ namespace mozilla { namespace psm { class PSMContentListener : public nsIURIContentListener, - public nsSupportsWeakReference { + public nsSupportsWeakReference +{ public: PSMContentListener(); nsresult init(); diff --git a/security/manager/ssl/src/nsCertOverrideService.h b/security/manager/ssl/src/nsCertOverrideService.h index 97245aa28eaa..794ef1eb9dd5 100644 --- a/security/manager/ssl/src/nsCertOverrideService.h +++ b/security/manager/ssl/src/nsCertOverrideService.h @@ -127,8 +127,8 @@ class nsCertOverrideEntry final : public PLDHashEntryHdr }; class nsCertOverrideService final : public nsICertOverrideService - , public nsIObserver - , public nsSupportsWeakReference + , public nsIObserver + , public nsSupportsWeakReference { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/security/manager/ssl/src/nsClientAuthRemember.h b/security/manager/ssl/src/nsClientAuthRemember.h index 7b2fbebc4638..bfbf2bcad59c 100644 --- a/security/manager/ssl/src/nsClientAuthRemember.h +++ b/security/manager/ssl/src/nsClientAuthRemember.h @@ -107,7 +107,7 @@ class nsClientAuthRememberEntry final : public PLDHashEntryHdr }; class nsClientAuthRememberService final : public nsIObserver, - public nsSupportsWeakReference + public nsSupportsWeakReference { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/security/manager/ssl/src/nsNSSCertificate.h b/security/manager/ssl/src/nsNSSCertificate.h index 6ecd17e9e370..77e3ab45bdcc 100644 --- a/security/manager/ssl/src/nsNSSCertificate.h +++ b/security/manager/ssl/src/nsNSSCertificate.h @@ -25,9 +25,9 @@ class nsINSSComponent; class nsIASN1Sequence; class nsNSSCertificate final : public nsIX509Cert, - public nsISerializable, - public nsIClassInfo, - public nsNSSShutDownObject + public nsISerializable, + public nsIClassInfo, + public nsNSSShutDownObject { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/security/manager/ssl/src/nsNSSCertificateDB.h b/security/manager/ssl/src/nsNSSCertificateDB.h index 9440537dc0ae..3f272a9a2176 100644 --- a/security/manager/ssl/src/nsNSSCertificateDB.h +++ b/security/manager/ssl/src/nsNSSCertificateDB.h @@ -15,7 +15,7 @@ class nsCString; class nsIArray; class nsNSSCertificateDB final : public nsIX509CertDB - , public nsNSSShutDownObject + , public nsNSSShutDownObject { public: diff --git a/security/manager/ssl/src/nsNSSComponent.h b/security/manager/ssl/src/nsNSSComponent.h index ed450c3775dd..fd58714248d1 100644 --- a/security/manager/ssl/src/nsNSSComponent.h +++ b/security/manager/ssl/src/nsNSSComponent.h @@ -106,9 +106,9 @@ class nsCertVerificationThread; // Implementation of the PSM component interface. class nsNSSComponent final : public nsIEntropyCollector, - public nsINSSComponent, - public nsIObserver, - public nsSupportsWeakReference + public nsINSSComponent, + public nsIObserver, + public nsSupportsWeakReference { typedef mozilla::Mutex Mutex; diff --git a/security/manager/ssl/src/nsNSSIOLayer.h b/security/manager/ssl/src/nsNSSIOLayer.h index 5ea576bd21d6..4eed0afdb1f6 100644 --- a/security/manager/ssl/src/nsNSSIOLayer.h +++ b/security/manager/ssl/src/nsNSSIOLayer.h @@ -25,8 +25,8 @@ class SharedSSLState; class nsIObserver; class nsNSSSocketInfo final : public mozilla::psm::TransportSecurityInfo, - public nsISSLSocketControl, - public nsIClientAuthUserDecision + public nsISSLSocketControl, + public nsIClientAuthUserDecision { public: nsNSSSocketInfo(mozilla::psm::SharedSSLState& aState, uint32_t providerFlags); diff --git a/security/manager/ssl/src/nsRandomGenerator.h b/security/manager/ssl/src/nsRandomGenerator.h index 970d75d8448f..197f2d7477a2 100644 --- a/security/manager/ssl/src/nsRandomGenerator.h +++ b/security/manager/ssl/src/nsRandomGenerator.h @@ -16,7 +16,7 @@ "@mozilla.org/security/random-generator;1" class nsRandomGenerator final : public nsIRandomGenerator - , public nsNSSShutDownObject + , public nsNSSShutDownObject { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/storage/src/mozStorageAsyncStatement.h b/storage/src/mozStorageAsyncStatement.h index 5c95285c47ac..72534d077047 100644 --- a/storage/src/mozStorageAsyncStatement.h +++ b/storage/src/mozStorageAsyncStatement.h @@ -28,7 +28,7 @@ class AsyncStatementJSHelper; class Connection; class AsyncStatement final : public mozIStorageAsyncStatement - , public StorageBaseStatementInternal + , public StorageBaseStatementInternal { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/storage/src/mozStorageAsyncStatementExecution.h b/storage/src/mozStorageAsyncStatementExecution.h index 841800641bce..4364231e70c3 100644 --- a/storage/src/mozStorageAsyncStatementExecution.h +++ b/storage/src/mozStorageAsyncStatementExecution.h @@ -30,7 +30,7 @@ class ResultSet; class StatementData; class AsyncExecuteStatements final : public nsIRunnable - , public mozIStoragePendingStatement + , public mozIStoragePendingStatement { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/storage/src/mozStorageAsyncStatementParams.h b/storage/src/mozStorageAsyncStatementParams.h index ec10fa3d992d..71f53dab65ba 100644 --- a/storage/src/mozStorageAsyncStatementParams.h +++ b/storage/src/mozStorageAsyncStatementParams.h @@ -23,7 +23,7 @@ class AsyncStatement; * an async variant. */ class AsyncStatementParams final : public mozIStorageStatementParams - , public nsIXPCScriptable + , public nsIXPCScriptable { public: explicit AsyncStatementParams(AsyncStatement *aStatement); diff --git a/storage/src/mozStorageConnection.h b/storage/src/mozStorageConnection.h index 9a3848871a34..a86ec796f08f 100644 --- a/storage/src/mozStorageConnection.h +++ b/storage/src/mozStorageConnection.h @@ -37,7 +37,7 @@ namespace mozilla { namespace storage { class Connection final : public mozIStorageConnection - , public nsIInterfaceRequestor + , public nsIInterfaceRequestor { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/storage/src/mozStorageStatement.h b/storage/src/mozStorageStatement.h index ee786cfa2b0d..84fd5da2de7e 100644 --- a/storage/src/mozStorageStatement.h +++ b/storage/src/mozStorageStatement.h @@ -28,8 +28,8 @@ class StatementJSHelper; class Connection; class Statement final : public mozIStorageStatement - , public mozIStorageValueArray - , public StorageBaseStatementInternal + , public mozIStorageValueArray + , public StorageBaseStatementInternal { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/storage/src/mozStorageStatementParams.h b/storage/src/mozStorageStatementParams.h index a51b189970da..2627f8aa1919 100644 --- a/storage/src/mozStorageStatementParams.h +++ b/storage/src/mozStorageStatementParams.h @@ -17,7 +17,7 @@ namespace mozilla { namespace storage { class StatementParams final : public mozIStorageStatementParams - , public nsIXPCScriptable + , public nsIXPCScriptable { public: explicit StatementParams(mozIStorageStatement *aStatement); diff --git a/storage/src/mozStorageStatementRow.h b/storage/src/mozStorageStatementRow.h index 5cb065b72818..ea9e40348458 100644 --- a/storage/src/mozStorageStatementRow.h +++ b/storage/src/mozStorageStatementRow.h @@ -17,7 +17,7 @@ namespace storage { class Statement; class StatementRow final : public mozIStorageStatementRow - , public nsIXPCScriptable + , public nsIXPCScriptable { public: NS_DECL_ISUPPORTS diff --git a/toolkit/components/autocomplete/nsAutoCompleteController.h b/toolkit/components/autocomplete/nsAutoCompleteController.h index 796e04dbade7..9a6dae782575 100644 --- a/toolkit/components/autocomplete/nsAutoCompleteController.h +++ b/toolkit/components/autocomplete/nsAutoCompleteController.h @@ -21,9 +21,9 @@ #include "nsCycleCollectionParticipant.h" class nsAutoCompleteController final : public nsIAutoCompleteController, - public nsIAutoCompleteObserver, - public nsITimerCallback, - public nsITreeView + public nsIAutoCompleteObserver, + public nsITimerCallback, + public nsITreeView { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/toolkit/components/diskspacewatcher/DiskSpaceWatcher.h b/toolkit/components/diskspacewatcher/DiskSpaceWatcher.h index 82d8ea28e9fc..6559af3cdec8 100644 --- a/toolkit/components/diskspacewatcher/DiskSpaceWatcher.h +++ b/toolkit/components/diskspacewatcher/DiskSpaceWatcher.h @@ -9,7 +9,7 @@ #include "nsCOMPtr.h" class DiskSpaceWatcher final : public nsIDiskSpaceWatcher, - public nsIObserver + public nsIObserver { public: NS_DECL_ISUPPORTS diff --git a/toolkit/components/downloads/nsDownloadManager.h b/toolkit/components/downloads/nsDownloadManager.h index aa957adf6e07..aaf09bc49920 100644 --- a/toolkit/components/downloads/nsDownloadManager.h +++ b/toolkit/components/downloads/nsDownloadManager.h @@ -39,9 +39,9 @@ class nsDownload; #endif class nsDownloadManager final : public nsIDownloadManager, - public nsINavHistoryObserver, - public nsIObserver, - public nsSupportsWeakReference + public nsINavHistoryObserver, + public nsIObserver, + public nsSupportsWeakReference { public: NS_DECL_ISUPPORTS diff --git a/toolkit/components/filewatcher/NativeFileWatcherWin.h b/toolkit/components/filewatcher/NativeFileWatcherWin.h index 43f9419e04c2..37dd97f84d39 100644 --- a/toolkit/components/filewatcher/NativeFileWatcherWin.h +++ b/toolkit/components/filewatcher/NativeFileWatcherWin.h @@ -17,7 +17,7 @@ namespace mozilla { class NativeFileWatcherService final : public nsINativeFileWatcherService, - public nsIObserver + public nsIObserver { public: NS_DECL_ISUPPORTS diff --git a/toolkit/components/places/Database.h b/toolkit/components/places/Database.h index 577db769a61d..7844833c58ff 100644 --- a/toolkit/components/places/Database.h +++ b/toolkit/components/places/Database.h @@ -62,7 +62,7 @@ enum JournalMode { }; class Database final : public nsIObserver - , public nsSupportsWeakReference + , public nsSupportsWeakReference { typedef mozilla::storage::StatementCache StatementCache; typedef mozilla::storage::StatementCache AsyncStatementCache; diff --git a/toolkit/components/places/History.cpp b/toolkit/components/places/History.cpp index eecb400ed78e..f042f2591188 100644 --- a/toolkit/components/places/History.cpp +++ b/toolkit/components/places/History.cpp @@ -466,8 +466,8 @@ GetJSObjectFromArray(JSContext* aCtx, return NS_OK; } -class VisitedQuery final: public AsyncStatementCallback, - public mozIStorageCompletionCallback +class VisitedQuery final : public AsyncStatementCallback, + public mozIStorageCompletionCallback { public: NS_DECL_ISUPPORTS_INHERITED diff --git a/toolkit/components/places/History.h b/toolkit/components/places/History.h index fbaa07b0e3eb..4051792a64b6 100644 --- a/toolkit/components/places/History.h +++ b/toolkit/components/places/History.h @@ -37,10 +37,10 @@ class ConcurrentStatementsHolder; #define RECENTLY_VISITED_URI_SIZE 8 class History final : public IHistory - , public nsIDownloadHistory - , public mozIAsyncHistory - , public nsIObserver - , public nsIMemoryReporter + , public nsIDownloadHistory + , public mozIAsyncHistory + , public nsIObserver + , public nsIMemoryReporter { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/toolkit/components/places/nsAnnotationService.h b/toolkit/components/places/nsAnnotationService.h index 397d7c688ee2..d60113b89b45 100644 --- a/toolkit/components/places/nsAnnotationService.h +++ b/toolkit/components/places/nsAnnotationService.h @@ -44,8 +44,8 @@ class AnnotatedResult final : public mozIAnnotatedResult } // namespace mozilla class nsAnnotationService final : public nsIAnnotationService - , public nsIObserver - , public nsSupportsWeakReference + , public nsIObserver + , public nsSupportsWeakReference { public: NS_DECL_ISUPPORTS diff --git a/toolkit/components/places/nsFaviconService.h b/toolkit/components/places/nsFaviconService.h index 36bf179266fd..629a4a2aa5af 100644 --- a/toolkit/components/places/nsFaviconService.h +++ b/toolkit/components/places/nsFaviconService.h @@ -52,8 +52,8 @@ class UnassociatedIconHashKey : public nsURIHashKey }; class nsFaviconService final : public nsIFaviconService - , public mozIAsyncFavicons - , public nsITimerCallback + , public mozIAsyncFavicons + , public nsITimerCallback { public: nsFaviconService(); diff --git a/toolkit/components/places/nsNavBookmarks.h b/toolkit/components/places/nsNavBookmarks.h index 2c2ad2c85be9..3db327519c56 100644 --- a/toolkit/components/places/nsNavBookmarks.h +++ b/toolkit/components/places/nsNavBookmarks.h @@ -70,10 +70,10 @@ namespace places { } // namespace mozilla class nsNavBookmarks final : public nsINavBookmarksService - , public nsINavHistoryObserver - , public nsIAnnotationObserver - , public nsIObserver - , public nsSupportsWeakReference + , public nsINavHistoryObserver + , public nsIAnnotationObserver + , public nsIObserver + , public nsSupportsWeakReference { public: NS_DECL_ISUPPORTS diff --git a/toolkit/components/places/nsNavHistory.h b/toolkit/components/places/nsNavHistory.h index be39bb5e832a..d21a5b3b0a3a 100644 --- a/toolkit/components/places/nsNavHistory.h +++ b/toolkit/components/places/nsNavHistory.h @@ -62,11 +62,11 @@ class nsIAutoCompleteController; // nsNavHistory class nsNavHistory final : public nsSupportsWeakReference - , public nsINavHistoryService - , public nsIObserver - , public nsIBrowserHistory - , public nsPIPlacesDatabase - , public mozIStorageVacuumParticipant + , public nsINavHistoryService + , public nsIObserver + , public nsIBrowserHistory + , public nsPIPlacesDatabase + , public mozIStorageVacuumParticipant { friend class PlacesSQLQueryBuilder; diff --git a/toolkit/components/places/nsNavHistoryResult.h b/toolkit/components/places/nsNavHistoryResult.h index 8a351799d9a3..5c1d33206f25 100644 --- a/toolkit/components/places/nsNavHistoryResult.h +++ b/toolkit/components/places/nsNavHistoryResult.h @@ -106,9 +106,9 @@ class nsTrimInt64HashKey : public PLDHashEntryHdr { 0x455d1d40, 0x1b9b, 0x40e6, { 0xa6, 0x41, 0x8b, 0xb7, 0xe8, 0x82, 0x23, 0x87 } } class nsNavHistoryResult final : public nsSupportsWeakReference, - public nsINavHistoryResult, - public nsINavBookmarkObserver, - public nsINavHistoryObserver + public nsINavHistoryResult, + public nsINavBookmarkObserver, + public nsINavHistoryObserver { public: static nsresult NewHistoryResult(nsINavHistoryQuery** aQueries, @@ -612,8 +612,8 @@ NS_DEFINE_STATIC_IID_ACCESSOR(nsNavHistoryContainerResultNode, // bookmark notifications. class nsNavHistoryQueryResultNode final : public nsNavHistoryContainerResultNode, - public nsINavHistoryQueryResultNode, - public nsINavBookmarkObserver + public nsINavHistoryQueryResultNode, + public nsINavBookmarkObserver { public: nsNavHistoryQueryResultNode(const nsACString& aTitle, @@ -693,9 +693,9 @@ class nsNavHistoryQueryResultNode final : public nsNavHistoryContainerResultNode // of the folder in sync with the bookmark service. class nsNavHistoryFolderResultNode final : public nsNavHistoryContainerResultNode, - public nsINavHistoryQueryResultNode, - public nsINavBookmarkObserver, - public mozilla::places::AsyncStatementCallback + public nsINavHistoryQueryResultNode, + public nsINavBookmarkObserver, + public mozilla::places::AsyncStatementCallback { public: nsNavHistoryFolderResultNode(const nsACString& aTitle, diff --git a/toolkit/components/satchel/nsFormFillController.h b/toolkit/components/satchel/nsFormFillController.h index c9f68a72239c..8a732369d44f 100644 --- a/toolkit/components/satchel/nsFormFillController.h +++ b/toolkit/components/satchel/nsFormFillController.h @@ -32,11 +32,11 @@ class nsFormHistory; class nsINode; class nsFormFillController final : public nsIFormFillController, - public nsIAutoCompleteInput, - public nsIAutoCompleteSearch, - public nsIDOMEventListener, - public nsIFormAutoCompleteObserver, - public nsIMutationObserver + public nsIAutoCompleteInput, + public nsIAutoCompleteSearch, + public nsIDOMEventListener, + public nsIFormAutoCompleteObserver, + public nsIMutationObserver { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/toolkit/components/startup/nsAppStartup.h b/toolkit/components/startup/nsAppStartup.h index 7b586040cd91..d251b01dbff2 100644 --- a/toolkit/components/startup/nsAppStartup.h +++ b/toolkit/components/startup/nsAppStartup.h @@ -30,9 +30,9 @@ struct PLEvent; class nsAppStartup final : public nsIAppStartup, - public nsIWindowCreator2, - public nsIObserver, - public nsSupportsWeakReference + public nsIWindowCreator2, + public nsIObserver, + public nsSupportsWeakReference { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/toolkit/components/url-classifier/nsUrlClassifierDBService.cpp b/toolkit/components/url-classifier/nsUrlClassifierDBService.cpp index 759cffc1a93d..7bfe066ded6b 100644 --- a/toolkit/components/url-classifier/nsUrlClassifierDBService.cpp +++ b/toolkit/components/url-classifier/nsUrlClassifierDBService.cpp @@ -738,7 +738,7 @@ nsUrlClassifierDBServiceWorker::OpenDb() // the client callback. class nsUrlClassifierLookupCallback final : public nsIUrlClassifierLookupCallback - , public nsIUrlClassifierHashCompleterCallback + , public nsIUrlClassifierHashCompleterCallback { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/toolkit/components/url-classifier/nsUrlClassifierDBService.h b/toolkit/components/url-classifier/nsUrlClassifierDBService.h index 4939f36b0243..ed91826fcbf9 100644 --- a/toolkit/components/url-classifier/nsUrlClassifierDBService.h +++ b/toolkit/components/url-classifier/nsUrlClassifierDBService.h @@ -51,8 +51,8 @@ class TableUpdate; // This is a proxy class that just creates a background thread and delagates // calls to the background thread. class nsUrlClassifierDBService final : public nsIUrlClassifierDBService, - public nsIURIClassifier, - public nsIObserver + public nsIURIClassifier, + public nsIObserver { public: // This is thread safe. It throws an exception if the thread is busy. diff --git a/toolkit/components/url-classifier/nsUrlClassifierStreamUpdater.h b/toolkit/components/url-classifier/nsUrlClassifierStreamUpdater.h index c568674c2fb8..6846b83aa966 100644 --- a/toolkit/components/url-classifier/nsUrlClassifierStreamUpdater.h +++ b/toolkit/components/url-classifier/nsUrlClassifierStreamUpdater.h @@ -21,11 +21,11 @@ class nsIURI; class nsUrlClassifierStreamUpdater final : public nsIUrlClassifierStreamUpdater, - public nsIUrlClassifierUpdateObserver, - public nsIStreamListener, - public nsIObserver, - public nsIInterfaceRequestor, - public nsITimerCallback + public nsIUrlClassifierUpdateObserver, + public nsIStreamListener, + public nsIObserver, + public nsIInterfaceRequestor, + public nsITimerCallback { public: nsUrlClassifierStreamUpdater(); diff --git a/toolkit/crashreporter/google-breakpad/src/common/linux/elf_symbols_to_module_unittest.cc b/toolkit/crashreporter/google-breakpad/src/common/linux/elf_symbols_to_module_unittest.cc index 8984449ab656..2f36b7399662 100644 --- a/toolkit/crashreporter/google-breakpad/src/common/linux/elf_symbols_to_module_unittest.cc +++ b/toolkit/crashreporter/google-breakpad/src/common/linux/elf_symbols_to_module_unittest.cc @@ -90,7 +90,7 @@ class ELFSymbolsToModuleTestFixture { }; class ELFSymbolsToModuleTest32 : public ELFSymbolsToModuleTestFixture, - public TestWithParam { + public TestWithParam { public: ELFSymbolsToModuleTest32() : ELFSymbolsToModuleTestFixture(GetParam(), 4) {} diff --git a/toolkit/xre/nsXREDirProvider.h b/toolkit/xre/nsXREDirProvider.h index 3944c90a401b..1243bebc43de 100644 --- a/toolkit/xre/nsXREDirProvider.h +++ b/toolkit/xre/nsXREDirProvider.h @@ -15,7 +15,7 @@ #include "mozilla/Attributes.h" class nsXREDirProvider final : public nsIDirectoryServiceProvider2, - public nsIProfileStartup + public nsIProfileStartup { public: // we use a custom isupports implementation (no refcount) diff --git a/uriloader/base/nsURILoader.cpp b/uriloader/base/nsURILoader.cpp index a8e377d8b3ed..85fbbe225fc3 100644 --- a/uriloader/base/nsURILoader.cpp +++ b/uriloader/base/nsURILoader.cpp @@ -69,7 +69,7 @@ PRLogModuleInfo* nsURILoader::mLog = nullptr; * (or aborted). */ class nsDocumentOpenInfo final : public nsIStreamListener - , public nsIThreadRetargetableStreamListener + , public nsIThreadRetargetableStreamListener { public: // Needed for nsCOMPtr to work right... Don't call this! diff --git a/uriloader/exthandler/nsExternalHelperAppService.h b/uriloader/exthandler/nsExternalHelperAppService.h index a425d47ffcb3..511daac8c156 100644 --- a/uriloader/exthandler/nsExternalHelperAppService.h +++ b/uriloader/exthandler/nsExternalHelperAppService.h @@ -202,9 +202,9 @@ class nsExternalHelperAppService * data using a helper app. */ class nsExternalAppHandler final : public nsIStreamListener, - public nsIHelperAppLauncher, - public nsITimerCallback, - public nsIBackgroundFileSaverObserver + public nsIHelperAppLauncher, + public nsITimerCallback, + public nsIBackgroundFileSaverObserver { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/uriloader/prefetch/OfflineCacheUpdateGlue.h b/uriloader/prefetch/OfflineCacheUpdateGlue.h index f2e41f31d0d6..b4a9b96ca93a 100644 --- a/uriloader/prefetch/OfflineCacheUpdateGlue.h +++ b/uriloader/prefetch/OfflineCacheUpdateGlue.h @@ -38,8 +38,8 @@ namespace docshell { NS_IMETHOD Cancel() override { return !_to ? NS_ERROR_NULL_POINTER : _to->Cancel(); } class OfflineCacheUpdateGlue final : public nsSupportsWeakReference - , public nsIOfflineCacheUpdate - , public nsIOfflineCacheUpdateObserver + , public nsIOfflineCacheUpdate + , public nsIOfflineCacheUpdateObserver { public: NS_DECL_ISUPPORTS diff --git a/uriloader/prefetch/nsOfflineCacheUpdate.cpp b/uriloader/prefetch/nsOfflineCacheUpdate.cpp index cfa609e4d385..b41b6174c0a4 100644 --- a/uriloader/prefetch/nsOfflineCacheUpdate.cpp +++ b/uriloader/prefetch/nsOfflineCacheUpdate.cpp @@ -116,8 +116,8 @@ LogToConsole(const char * message, nsOfflineCacheUpdateItem * item = nullptr) //----------------------------------------------------------------------------- class nsManifestCheck final : public nsIStreamListener - , public nsIChannelEventSink - , public nsIInterfaceRequestor + , public nsIChannelEventSink + , public nsIInterfaceRequestor { public: nsManifestCheck(nsOfflineCacheUpdate *aUpdate, diff --git a/uriloader/prefetch/nsOfflineCacheUpdate.h b/uriloader/prefetch/nsOfflineCacheUpdate.h index ebbe1259d1a3..77b169c222ea 100644 --- a/uriloader/prefetch/nsOfflineCacheUpdate.h +++ b/uriloader/prefetch/nsOfflineCacheUpdate.h @@ -194,9 +194,9 @@ class nsOfflineCacheUpdateOwner }; class nsOfflineCacheUpdate final : public nsIOfflineCacheUpdate - , public nsIOfflineCacheUpdateObserver - , public nsIRunnable - , public nsOfflineCacheUpdateOwner + , public nsIOfflineCacheUpdateObserver + , public nsIRunnable + , public nsOfflineCacheUpdateOwner { public: MOZ_DECLARE_REFCOUNTED_TYPENAME(nsOfflineCacheUpdate) @@ -320,9 +320,9 @@ class nsOfflineCacheUpdate final : public nsIOfflineCacheUpdate }; class nsOfflineCacheUpdateService final : public nsIOfflineCacheUpdateService - , public nsIObserver - , public nsOfflineCacheUpdateOwner - , public nsSupportsWeakReference + , public nsIObserver + , public nsOfflineCacheUpdateOwner + , public nsSupportsWeakReference { public: NS_DECL_ISUPPORTS diff --git a/uriloader/prefetch/nsOfflineCacheUpdateService.cpp b/uriloader/prefetch/nsOfflineCacheUpdateService.cpp index 717d5b7a9fe9..9f4b6f9d2b3d 100644 --- a/uriloader/prefetch/nsOfflineCacheUpdateService.cpp +++ b/uriloader/prefetch/nsOfflineCacheUpdateService.cpp @@ -126,7 +126,7 @@ GetAppIDAndInBrowserFromWindow(nsIDOMWindow *aWindow, //----------------------------------------------------------------------------- class nsOfflineCachePendingUpdate final : public nsIWebProgressListener - , public nsSupportsWeakReference + , public nsSupportsWeakReference { public: NS_DECL_ISUPPORTS diff --git a/uriloader/prefetch/nsPrefetchService.h b/uriloader/prefetch/nsPrefetchService.h index 28912ed269b9..0ac2636d94e1 100644 --- a/uriloader/prefetch/nsPrefetchService.h +++ b/uriloader/prefetch/nsPrefetchService.h @@ -28,9 +28,9 @@ class nsPrefetchNode; //----------------------------------------------------------------------------- class nsPrefetchService final : public nsIPrefetchService - , public nsIWebProgressListener - , public nsIObserver - , public nsSupportsWeakReference + , public nsIWebProgressListener + , public nsIObserver + , public nsSupportsWeakReference { public: NS_DECL_ISUPPORTS @@ -82,9 +82,9 @@ class nsPrefetchService final : public nsIPrefetchService //----------------------------------------------------------------------------- class nsPrefetchNode final : public nsIStreamListener - , public nsIInterfaceRequestor - , public nsIChannelEventSink - , public nsIRedirectResultListener + , public nsIInterfaceRequestor + , public nsIChannelEventSink + , public nsIRedirectResultListener { public: NS_DECL_ISUPPORTS diff --git a/widget/android/nsAndroidProtocolHandler.h b/widget/android/nsAndroidProtocolHandler.h index c395fc956831..11705dd0a584 100644 --- a/widget/android/nsAndroidProtocolHandler.h +++ b/widget/android/nsAndroidProtocolHandler.h @@ -19,7 +19,7 @@ } class nsAndroidProtocolHandler final : public nsIProtocolHandler, - public nsSupportsWeakReference + public nsSupportsWeakReference { public: NS_DECL_THREADSAFE_ISUPPORTS diff --git a/widget/gonk/nativewindow/GonkBufferQueueKK.h b/widget/gonk/nativewindow/GonkBufferQueueKK.h index 0209de02c51f..d40e439f3ab9 100644 --- a/widget/gonk/nativewindow/GonkBufferQueueKK.h +++ b/widget/gonk/nativewindow/GonkBufferQueueKK.h @@ -37,8 +37,9 @@ namespace android { // ---------------------------------------------------------------------------- class GonkBufferQueue : public BnGraphicBufferProducer, - public BnGonkGraphicBufferConsumer, - private IBinder::DeathRecipient { + public BnGonkGraphicBufferConsumer, + private IBinder::DeathRecipient +{ typedef mozilla::layers::TextureClient TextureClient; public: diff --git a/widget/gtk/nsDragService.h b/widget/gtk/nsDragService.h index b3ab9422ade4..35fa40638fb0 100644 --- a/widget/gtk/nsDragService.h +++ b/widget/gtk/nsDragService.h @@ -49,7 +49,7 @@ class nsAutoRefTraits : */ class nsDragService final : public nsBaseDragService, - public nsIObserver + public nsIObserver { public: nsDragService(); diff --git a/widget/nsColorPickerProxy.h b/widget/nsColorPickerProxy.h index c166801c2b53..0f3af3793f47 100644 --- a/widget/nsColorPickerProxy.h +++ b/widget/nsColorPickerProxy.h @@ -11,7 +11,7 @@ #include "mozilla/dom/PColorPickerChild.h" class nsColorPickerProxy final : public nsIColorPicker, - public mozilla::dom::PColorPickerChild + public mozilla::dom::PColorPickerChild { public: NS_DECL_ISUPPORTS diff --git a/widget/nsScreenManagerProxy.h b/widget/nsScreenManagerProxy.h index eb9915d6e716..2db660ca7413 100644 --- a/widget/nsScreenManagerProxy.h +++ b/widget/nsScreenManagerProxy.h @@ -24,7 +24,7 @@ * loop. */ class nsScreenManagerProxy final : public nsIScreenManager, - public mozilla::dom::PScreenManagerChild + public mozilla::dom::PScreenManagerChild { public: nsScreenManagerProxy(); diff --git a/widget/windows/nsTextStore.cpp b/widget/windows/nsTextStore.cpp index 83d5394d2014..00f85269dacf 100644 --- a/widget/windows/nsTextStore.cpp +++ b/widget/windows/nsTextStore.cpp @@ -704,7 +704,7 @@ class InputScopeImpl final : public ITfInputScope /******************************************************************/ class TSFStaticSink final : public ITfActiveLanguageProfileNotifySink - , public ITfInputProcessorProfileActivationSink + , public ITfInputProcessorProfileActivationSink { public: static TSFStaticSink* GetInstance() diff --git a/widget/windows/nsTextStore.h b/widget/windows/nsTextStore.h index 9aacfec823b9..88c1c67ef9c4 100644 --- a/widget/windows/nsTextStore.h +++ b/widget/windows/nsTextStore.h @@ -54,8 +54,8 @@ struct MSGResult; */ class nsTextStore final : public ITextStoreACP - , public ITfContextOwnerCompositionSink - , public ITfMouseTrackerACP + , public ITfContextOwnerCompositionSink + , public ITfMouseTrackerACP { public: /*IUnknown*/ STDMETHODIMP QueryInterface(REFIID, void**); diff --git a/xpcom/base/nsIStatusReporter.idl b/xpcom/base/nsIStatusReporter.idl index e85632d90f51..9f9245f4983a 100644 --- a/xpcom/base/nsIStatusReporter.idl +++ b/xpcom/base/nsIStatusReporter.idl @@ -65,15 +65,15 @@ interface nsIStatusReporterManager : nsISupports * Note that this defaults 'process' to "", which is usually what's desired. */ #define NS_STATUS_REPORTER_IMPLEMENT(_classname, _name, _desc_Function) \ - class StatusReporter_##_classname final : public nsIStatusReporter { \ + class StatusReporter_##_classname final : public nsIStatusReporter { \ ~StatusReporter_##_classname() {} \ public: \ NS_DECL_ISUPPORTS \ - NS_IMETHOD GetName(nsACString &name) override \ + NS_IMETHOD GetName(nsACString &name) override \ { name.AssignLiteral(_name); return NS_OK; } \ - NS_IMETHOD GetProcess(nsACString &process) override \ + NS_IMETHOD GetProcess(nsACString &process) override \ { process.Truncate(); return NS_OK; } \ - NS_IMETHOD GetDescription(nsACString &desc) override \ + NS_IMETHOD GetDescription(nsACString &desc) override \ { _desc_Function(desc); return NS_OK; } \ }; \ NS_IMPL_ISUPPORTS(StatusReporter_##_classname, nsIStatusReporter) diff --git a/xpcom/glue/nsCycleCollectionParticipant.h b/xpcom/glue/nsCycleCollectionParticipant.h index 4c6f66842f9b..128cf0138c76 100644 --- a/xpcom/glue/nsCycleCollectionParticipant.h +++ b/xpcom/glue/nsCycleCollectionParticipant.h @@ -267,7 +267,7 @@ NS_DEFINE_STATIC_IID_ACCESSOR(nsXPCOMCycleCollectionParticipant, } \ nsresult rv; -#define NS_CYCLE_COLLECTION_UPCAST(obj, clazz) \ +#define NS_CYCLE_COLLECTION_UPCAST(obj, clazz) \ NS_CYCLE_COLLECTION_CLASSNAME(clazz)::Upcast(obj) #ifdef DEBUG @@ -508,8 +508,8 @@ DowncastCCParticipant(void* aPtr) #define NS_DECL_CYCLE_COLLECTION_CLASS_BODY_NO_UNLINK(_class, _base) \ public: \ NS_IMETHOD Traverse(void *p, nsCycleCollectionTraversalCallback &cb) \ - override; \ - NS_IMETHOD_(void) DeleteCycleCollectable(void *p) override \ + override; \ + NS_IMETHOD_(void) DeleteCycleCollectable(void *p) override \ { \ DowncastCCParticipant<_class>(p)->DeleteCycleCollectable(); \ } \ @@ -574,9 +574,9 @@ public: : nsXPCOMCycleCollectionParticipant(true) {} \ private: \ NS_DECL_CYCLE_COLLECTION_CLASS_BODY(_class, _base) \ - NS_IMETHOD_(bool) CanSkipReal(void *p, bool aRemovingAllowed) override; \ - NS_IMETHOD_(bool) CanSkipInCCReal(void *p) override; \ - NS_IMETHOD_(bool) CanSkipThisReal(void *p) override; \ + NS_IMETHOD_(bool) CanSkipReal(void *p, bool aRemovingAllowed) override; \ + NS_IMETHOD_(bool) CanSkipInCCReal(void *p) override; \ + NS_IMETHOD_(bool) CanSkipThisReal(void *p) override; \ NS_IMPL_GET_XPCOM_CYCLE_COLLECTION_PARTICIPANT(_class) \ }; \ NS_CHECK_FOR_RIGHT_PARTICIPANT_IMPL(_class) \ @@ -591,8 +591,7 @@ class NS_CYCLE_COLLECTION_INNERCLASS : public nsXPCOMCycleCollectionParticipant \ { \ NS_DECL_CYCLE_COLLECTION_CLASS_BODY(_class, _base) \ - NS_IMETHOD_(void) Trace(void *p, const TraceCallbacks &cb, void *closure) \ - override; \ + NS_IMETHOD_(void) Trace(void *p, const TraceCallbacks &cb, void *closure) override; \ NS_IMPL_GET_XPCOM_CYCLE_COLLECTION_PARTICIPANT(_class) \ }; \ NS_CHECK_FOR_RIGHT_PARTICIPANT_IMPL(_class) \ @@ -608,10 +607,10 @@ public: : nsXPCOMCycleCollectionParticipant(true) {} \ private: \ NS_DECL_CYCLE_COLLECTION_CLASS_BODY(_class, _base) \ - NS_IMETHOD_(void) Trace(void *p, const TraceCallbacks &cb, void *closure) override; \ - NS_IMETHOD_(bool) CanSkipReal(void *p, bool aRemovingAllowed) override; \ - NS_IMETHOD_(bool) CanSkipInCCReal(void *p) override; \ - NS_IMETHOD_(bool) CanSkipThisReal(void *p) override; \ + NS_IMETHOD_(void) Trace(void *p, const TraceCallbacks &cb, void *closure) override; \ + NS_IMETHOD_(bool) CanSkipReal(void *p, bool aRemovingAllowed) override; \ + NS_IMETHOD_(bool) CanSkipInCCReal(void *p) override; \ + NS_IMETHOD_(bool) CanSkipThisReal(void *p) override; \ NS_IMPL_GET_XPCOM_CYCLE_COLLECTION_PARTICIPANT(_class) \ }; \ NS_CHECK_FOR_RIGHT_PARTICIPANT_IMPL(_class) \ @@ -627,10 +626,10 @@ class NS_CYCLE_COLLECTION_INNERCLASS : public NS_CYCLE_COLLECTION_CLASSNAME(_base_class) \ { \ NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED_BODY(_class, _base_class) \ - NS_IMETHOD_(void) Trace(void *p, const TraceCallbacks &cb, void *closure) override; \ - NS_IMETHOD_(bool) CanSkipReal(void *p, bool aRemovingAllowed) override; \ - NS_IMETHOD_(bool) CanSkipInCCReal(void *p) override; \ - NS_IMETHOD_(bool) CanSkipThisReal(void *p) override; \ + NS_IMETHOD_(void) Trace(void *p, const TraceCallbacks &cb, void *closure) override; \ + NS_IMETHOD_(bool) CanSkipReal(void *p, bool aRemovingAllowed) override; \ + NS_IMETHOD_(bool) CanSkipInCCReal(void *p) override; \ + NS_IMETHOD_(bool) CanSkipThisReal(void *p) override; \ NS_IMPL_GET_XPCOM_CYCLE_COLLECTION_PARTICIPANT(_class) \ }; \ NS_CHECK_FOR_RIGHT_PARTICIPANT_IMPL_INHERITED(_class) \ @@ -643,7 +642,7 @@ static NS_CYCLE_COLLECTION_INNERCLASS NS_CYCLE_COLLECTION_INNERNAME; _base_class) \ public: \ NS_IMETHOD Traverse(void *p, nsCycleCollectionTraversalCallback &cb) \ - override; \ + override; \ static _class* Downcast(nsISupports* s) \ { \ return static_cast<_class*>(static_cast<_base_class*>( \ @@ -684,7 +683,7 @@ class NS_CYCLE_COLLECTION_INNERCLASS { \ NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED_BODY(_class, _base_class) \ NS_IMETHOD_(void) Trace(void *p, const TraceCallbacks &cb, void *closure) \ - override; \ + override; \ NS_IMPL_GET_XPCOM_CYCLE_COLLECTION_PARTICIPANT(_class) \ }; \ NS_CHECK_FOR_RIGHT_PARTICIPANT_IMPL_INHERITED(_class) \ @@ -694,12 +693,12 @@ static NS_CYCLE_COLLECTION_INNERCLASS NS_CYCLE_COLLECTION_INNERNAME; #define NS_DECL_CYCLE_COLLECTION_NATIVE_CLASS_BODY(_class) \ public: \ - NS_IMETHOD_(void) Root(void *n) override; \ - NS_IMETHOD_(void) Unlink(void *n) override; \ - NS_IMETHOD_(void) Unroot(void *n) override; \ + NS_IMETHOD_(void) Root(void *n) override; \ + NS_IMETHOD_(void) Unlink(void *n) override; \ + NS_IMETHOD_(void) Unroot(void *n) override; \ NS_IMETHOD Traverse(void *n, nsCycleCollectionTraversalCallback &cb) \ - override; \ - NS_IMETHOD_(void) DeleteCycleCollectable(void *n) override \ + override; \ + NS_IMETHOD_(void) DeleteCycleCollectable(void *n) override \ { \ DowncastCCParticipant<_class>(n)->DeleteCycleCollectable(); \ } \ @@ -741,9 +740,9 @@ static NS_CYCLE_COLLECTION_INNERCLASS NS_CYCLE_COLLECTION_INNERNAME; : nsCycleCollectionParticipant(true) {} \ private: \ NS_DECL_CYCLE_COLLECTION_NATIVE_CLASS_BODY(_class) \ - NS_IMETHOD_(bool) CanSkipReal(void *p, bool aRemovingAllowed) override;\ - NS_IMETHOD_(bool) CanSkipInCCReal(void *p) override; \ - NS_IMETHOD_(bool) CanSkipThisReal(void *p) override; \ + NS_IMETHOD_(bool) CanSkipReal(void *p, bool aRemovingAllowed) override; \ + NS_IMETHOD_(bool) CanSkipInCCReal(void *p) override; \ + NS_IMETHOD_(bool) CanSkipThisReal(void *p) override; \ static nsCycleCollectionParticipant* GetParticipant() \ { \ return &_class::NS_CYCLE_COLLECTION_INNERNAME; \ @@ -760,9 +759,9 @@ public: \ : nsCycleCollectionParticipant(true) {} \ private: \ NS_DECL_CYCLE_COLLECTION_NATIVE_CLASS_BODY(_class) \ - NS_IMETHOD_(bool) CanSkipReal(void *p, bool aRemovingAllowed) override; \ - NS_IMETHOD_(bool) CanSkipInCCReal(void *p) override; \ - NS_IMETHOD_(bool) CanSkipThisReal(void *p) override; \ + NS_IMETHOD_(bool) CanSkipReal(void *p, bool aRemovingAllowed) override; \ + NS_IMETHOD_(bool) CanSkipInCCReal(void *p) override; \ + NS_IMETHOD_(bool) CanSkipThisReal(void *p) override; \ static nsCycleCollectionParticipant* GetParticipant() \ { \ return &_class::NS_CYCLE_COLLECTION_INNERNAME; \ @@ -780,7 +779,7 @@ static NS_CYCLE_COLLECTION_INNERCLASS NS_CYCLE_COLLECTION_INNERNAME; { \ NS_DECL_CYCLE_COLLECTION_NATIVE_CLASS_BODY(_class) \ NS_IMETHOD_(void) Trace(void *p, const TraceCallbacks &cb, void *closure) \ - override; \ + override; \ static MOZ_CONSTEXPR nsScriptObjectTracer* GetParticipant() \ { \ return &_class::NS_CYCLE_COLLECTION_INNERNAME; \ diff --git a/xpcom/glue/nsISupportsImpl.h b/xpcom/glue/nsISupportsImpl.h index 8bd3f2e7c01b..c44d1db8e1b4 100644 --- a/xpcom/glue/nsISupportsImpl.h +++ b/xpcom/glue/nsISupportsImpl.h @@ -385,9 +385,9 @@ class ThreadSafeAutoRefCnt #define NS_DECL_ISUPPORTS \ public: \ NS_IMETHOD QueryInterface(REFNSIID aIID, \ - void** aInstancePtr) override; \ - NS_IMETHOD_(MozExternalRefCountType) AddRef(void) override; \ - NS_IMETHOD_(MozExternalRefCountType) Release(void) override; \ + void** aInstancePtr) override; \ + NS_IMETHOD_(MozExternalRefCountType) AddRef(void) override; \ + NS_IMETHOD_(MozExternalRefCountType) Release(void) override; \ protected: \ nsAutoRefCnt mRefCnt; \ NS_DECL_OWNINGTHREAD \ @@ -396,9 +396,9 @@ protected: \ #define NS_DECL_THREADSAFE_ISUPPORTS \ public: \ NS_IMETHOD QueryInterface(REFNSIID aIID, \ - void** aInstancePtr) override; \ - NS_IMETHOD_(MozExternalRefCountType) AddRef(void) override; \ - NS_IMETHOD_(MozExternalRefCountType) Release(void) override; \ + void** aInstancePtr) override; \ + NS_IMETHOD_(MozExternalRefCountType) AddRef(void) override; \ + NS_IMETHOD_(MozExternalRefCountType) Release(void) override; \ protected: \ ::mozilla::ThreadSafeAutoRefCnt mRefCnt; \ NS_DECL_OWNINGTHREAD \ @@ -407,9 +407,9 @@ protected: \ #define NS_DECL_CYCLE_COLLECTING_ISUPPORTS \ public: \ NS_IMETHOD QueryInterface(REFNSIID aIID, \ - void** aInstancePtr) override; \ - NS_IMETHOD_(MozExternalRefCountType) AddRef(void) override; \ - NS_IMETHOD_(MozExternalRefCountType) Release(void) override; \ + void** aInstancePtr) override; \ + NS_IMETHOD_(MozExternalRefCountType) AddRef(void) override; \ + NS_IMETHOD_(MozExternalRefCountType) Release(void) override; \ NS_IMETHOD_(void) DeleteCycleCollectable(void); \ protected: \ nsCycleCollectingAutoRefCnt mRefCnt; \ diff --git a/xpcom/io/SnappyCompressOutputStream.h b/xpcom/io/SnappyCompressOutputStream.h index 98f51c544eef..36c47e66e35a 100644 --- a/xpcom/io/SnappyCompressOutputStream.h +++ b/xpcom/io/SnappyCompressOutputStream.h @@ -17,7 +17,7 @@ namespace mozilla { class SnappyCompressOutputStream final : public nsIOutputStream - , protected detail::SnappyFrameUtils + , protected detail::SnappyFrameUtils { public: // Maximum compression block size. diff --git a/xpcom/io/SnappyUncompressInputStream.h b/xpcom/io/SnappyUncompressInputStream.h index 60e4afdd3418..0d24c0d11571 100644 --- a/xpcom/io/SnappyUncompressInputStream.h +++ b/xpcom/io/SnappyUncompressInputStream.h @@ -17,7 +17,7 @@ namespace mozilla { class SnappyUncompressInputStream final : public nsIInputStream - , protected detail::SnappyFrameUtils + , protected detail::SnappyFrameUtils { public: // Construct a new blocking stream to uncompress the given base stream. The diff --git a/xpcom/tests/TestCallTemplates.cpp b/xpcom/tests/TestCallTemplates.cpp index 65d46a0e1005..9d55ecad1eb4 100644 --- a/xpcom/tests/TestCallTemplates.cpp +++ b/xpcom/tests/TestCallTemplates.cpp @@ -34,7 +34,7 @@ class NS_NO_VTABLE nsITestService : public nsISupports { NS_DEFINE_STATIC_IID_ACCESSOR(nsITestService, NS_ITESTSERVICE_IID) class nsTestService final : public nsITestService, - public nsSupportsWeakReference + public nsSupportsWeakReference { ~nsTestService() {} public: diff --git a/xpcom/tests/TestObserverService.cpp b/xpcom/tests/TestObserverService.cpp index 374868526a98..213d116bf5f2 100644 --- a/xpcom/tests/TestObserverService.cpp +++ b/xpcom/tests/TestObserverService.cpp @@ -31,7 +31,7 @@ void printString(nsString &str) { } class TestObserver final : public nsIObserver, - public nsSupportsWeakReference + public nsSupportsWeakReference { public: explicit TestObserver( const nsAString &name ) diff --git a/xpfe/appshell/nsAppShellService.cpp b/xpfe/appshell/nsAppShellService.cpp index fb95243d59ea..0b52f29f4262 100644 --- a/xpfe/appshell/nsAppShellService.cpp +++ b/xpfe/appshell/nsAppShellService.cpp @@ -322,7 +322,8 @@ WebBrowserChrome2Stub::GetInterface(const nsIID & aIID, void **aSink) // purely to keep a strong reference to the browser and the container to // prevent the container being collected while the stub remains alive. class WindowlessBrowserStub final : public nsIWebNavigation, - public nsIInterfaceRequestor { + public nsIInterfaceRequestor +{ public: WindowlessBrowserStub(nsIWebBrowser *aBrowser, nsISupports *aContainer) { mBrowser = aBrowser; diff --git a/xpfe/appshell/nsAppShellService.h b/xpfe/appshell/nsAppShellService.h index 9afca13f0fb0..389b1a75abe9 100644 --- a/xpfe/appshell/nsAppShellService.h +++ b/xpfe/appshell/nsAppShellService.h @@ -21,7 +21,7 @@ { 0x99907d, 0x123c, 0x4853, { 0xa4, 0x6a, 0x43, 0x9, 0x8b, 0x5f, 0xb6, 0x8c } } class nsAppShellService final : public nsIAppShellService, - public nsIObserver + public nsIObserver { public: NS_DECL_ISUPPORTS diff --git a/xpfe/appshell/nsContentTreeOwner.h b/xpfe/appshell/nsContentTreeOwner.h index dcad42617f89..d6a0d42b3ddf 100644 --- a/xpfe/appshell/nsContentTreeOwner.h +++ b/xpfe/appshell/nsContentTreeOwner.h @@ -23,10 +23,10 @@ class nsXULWindow; class nsSiteWindow; class nsContentTreeOwner final : public nsIDocShellTreeOwner, - public nsIBaseWindow, - public nsIInterfaceRequestor, - public nsIWebBrowserChrome3, - public nsIWindowProvider + public nsIBaseWindow, + public nsIInterfaceRequestor, + public nsIWebBrowserChrome3, + public nsIWindowProvider { friend class nsXULWindow; friend class nsSiteWindow; diff --git a/xpfe/appshell/nsWebShellWindow.h b/xpfe/appshell/nsWebShellWindow.h index 8ae2f201965d..65e1d3d3d105 100644 --- a/xpfe/appshell/nsWebShellWindow.h +++ b/xpfe/appshell/nsWebShellWindow.h @@ -24,8 +24,8 @@ class WebShellWindowTimerCallback; } // namespace mozilla class nsWebShellWindow final : public nsXULWindow, - public nsIWebProgressListener, - public nsIWidgetListener + public nsIWebProgressListener, + public nsIWidgetListener { public: explicit nsWebShellWindow(uint32_t aChromeFlags); diff --git a/xpfe/components/directory/nsDirectoryViewer.h b/xpfe/components/directory/nsDirectoryViewer.h index dea0b0318aab..4a3b5eb601e7 100644 --- a/xpfe/components/directory/nsDirectoryViewer.h +++ b/xpfe/components/directory/nsDirectoryViewer.h @@ -35,11 +35,11 @@ class nsDirectoryViewerFactory : public nsIDocumentLoaderFactory }; class nsHTTPIndex final : public nsIHTTPIndex, - public nsIRDFDataSource, - public nsIStreamListener, - public nsIDirIndexListener, - public nsIInterfaceRequestor, - public nsIFTPEventSink + public nsIRDFDataSource, + public nsIStreamListener, + public nsIDirIndexListener, + public nsIInterfaceRequestor, + public nsIFTPEventSink { private: diff --git a/xpfe/components/windowds/nsWindowDataSource.h b/xpfe/components/windowds/nsWindowDataSource.h index f499c9bef6cf..351ff951b1e6 100644 --- a/xpfe/components/windowds/nsWindowDataSource.h +++ b/xpfe/components/windowds/nsWindowDataSource.h @@ -21,9 +21,9 @@ class nsWindowDataSource final : public nsIRDFDataSource, - public nsIObserver, - public nsIWindowMediatorListener, - public nsIWindowDataSource + public nsIObserver, + public nsIWindowMediatorListener, + public nsIWindowDataSource { public: nsWindowDataSource() { }