Bug 523111 - DOMEvent implementations should inherit first the base class, r=jwatt, sr=jst

--HG--
extra : rebase_source : 81cba369792644a99f42c1901dbf04196d007d53
This commit is contained in:
Olli Pettay 2009-10-21 12:38:39 +03:00
Родитель 314989acda
Коммит 3e2280e528
17 изменённых файлов: 35 добавлений и 35 удалений

Просмотреть файл

@ -42,8 +42,8 @@
#include "nsIDOMBeforeUnloadEvent.h" #include "nsIDOMBeforeUnloadEvent.h"
#include "nsDOMEvent.h" #include "nsDOMEvent.h"
class nsDOMBeforeUnloadEvent : public nsIDOMBeforeUnloadEvent, class nsDOMBeforeUnloadEvent : public nsDOMEvent,
public nsDOMEvent public nsIDOMBeforeUnloadEvent
{ {
public: public:
nsDOMBeforeUnloadEvent(nsPresContext* aPresContext, nsEvent* aEvent) nsDOMBeforeUnloadEvent(nsPresContext* aPresContext, nsEvent* aEvent)

Просмотреть файл

@ -45,8 +45,8 @@
class nsIContent; class nsIContent;
class nsEvent; class nsEvent;
class nsDOMDragEvent : public nsIDOMDragEvent, class nsDOMDragEvent : public nsDOMMouseEvent,
public nsDOMMouseEvent public nsIDOMDragEvent
{ {
public: public:
nsDOMDragEvent(nsPresContext* aPresContext, nsInputEvent* aEvent); nsDOMDragEvent(nsPresContext* aPresContext, nsInputEvent* aEvent);

Просмотреть файл

@ -42,8 +42,8 @@
#include "nsIDOMKeyEvent.h" #include "nsIDOMKeyEvent.h"
#include "nsDOMUIEvent.h" #include "nsDOMUIEvent.h"
class nsDOMKeyboardEvent : public nsIDOMKeyEvent, class nsDOMKeyboardEvent : public nsDOMUIEvent,
public nsDOMUIEvent public nsIDOMKeyEvent
{ {
public: public:
nsDOMKeyboardEvent(nsPresContext* aPresContext, nsKeyEvent* aEvent); nsDOMKeyboardEvent(nsPresContext* aPresContext, nsKeyEvent* aEvent);

Просмотреть файл

@ -50,8 +50,8 @@
* See http://www.whatwg.org/specs/web-apps/current-work/#messageevent for * See http://www.whatwg.org/specs/web-apps/current-work/#messageevent for
* further details. * further details.
*/ */
class nsDOMMessageEvent : public nsIDOMMessageEvent, class nsDOMMessageEvent : public nsDOMEvent,
public nsDOMEvent public nsIDOMMessageEvent
{ {
public: public:
nsDOMMessageEvent(nsPresContext* aPresContext, nsEvent* aEvent) nsDOMMessageEvent(nsPresContext* aPresContext, nsEvent* aEvent)

Просмотреть файл

@ -41,8 +41,8 @@
#include "nsIDOMMouseScrollEvent.h" #include "nsIDOMMouseScrollEvent.h"
#include "nsDOMMouseEvent.h" #include "nsDOMMouseEvent.h"
class nsDOMMouseScrollEvent : public nsIDOMMouseScrollEvent, class nsDOMMouseScrollEvent : public nsDOMMouseEvent,
public nsDOMMouseEvent public nsIDOMMouseScrollEvent
{ {
public: public:
nsDOMMouseScrollEvent(nsPresContext* aPresContext, nsInputEvent* aEvent); nsDOMMouseScrollEvent(nsPresContext* aPresContext, nsInputEvent* aEvent);

Просмотреть файл

@ -44,8 +44,8 @@
#include "nsDOMEvent.h" #include "nsDOMEvent.h"
#include "nsContentUtils.h" #include "nsContentUtils.h"
class nsDOMMutationEvent : public nsIDOMMutationEvent, class nsDOMMutationEvent : public nsDOMEvent,
public nsDOMEvent public nsIDOMMutationEvent
{ {
public: public:
nsDOMMutationEvent(nsPresContext* aPresContext, nsMutationEvent* aEvent); nsDOMMutationEvent(nsPresContext* aPresContext, nsMutationEvent* aEvent);

Просмотреть файл

@ -45,8 +45,8 @@
class nsPaintRequestList; class nsPaintRequestList;
class nsDOMNotifyPaintEvent : public nsIDOMNotifyPaintEvent, class nsDOMNotifyPaintEvent : public nsDOMEvent,
public nsDOMEvent public nsIDOMNotifyPaintEvent
{ {
public: public:
nsDOMNotifyPaintEvent(nsPresContext* aPresContext, nsDOMNotifyPaintEvent(nsPresContext* aPresContext,

Просмотреть файл

@ -40,7 +40,8 @@
#include "nsIDOMOrientationEvent.h" #include "nsIDOMOrientationEvent.h"
#include "nsDOMEvent.h" #include "nsDOMEvent.h"
class nsDOMOrientationEvent : public nsIDOMOrientationEvent, public nsDOMEvent class nsDOMOrientationEvent : public nsDOMEvent,
public nsIDOMOrientationEvent
{ {
public: public:

Просмотреть файл

@ -42,8 +42,8 @@
#include "nsIDOMPageTransitionEvent.h" #include "nsIDOMPageTransitionEvent.h"
#include "nsDOMEvent.h" #include "nsDOMEvent.h"
class nsDOMPageTransitionEvent : public nsIDOMPageTransitionEvent, class nsDOMPageTransitionEvent : public nsDOMEvent,
public nsDOMEvent public nsIDOMPageTransitionEvent
{ {
public: public:
nsDOMPageTransitionEvent(nsPresContext* aPresContext, nsEvent* aEvent) : nsDOMPageTransitionEvent(nsPresContext* aPresContext, nsEvent* aEvent) :

Просмотреть файл

@ -43,8 +43,8 @@
#include "nsDOMEvent.h" #include "nsDOMEvent.h"
#include "nsIURI.h" #include "nsIURI.h"
class nsDOMPopupBlockedEvent : public nsIDOMPopupBlockedEvent, class nsDOMPopupBlockedEvent : public nsDOMEvent,
public nsDOMEvent public nsIDOMPopupBlockedEvent
{ {
public: public:

Просмотреть файл

@ -49,8 +49,8 @@
* See http://www.whatwg.org/specs/web-apps/current-work/#progress0 for * See http://www.whatwg.org/specs/web-apps/current-work/#progress0 for
* further details. * further details.
*/ */
class nsDOMProgressEvent : public nsIDOMProgressEvent, class nsDOMProgressEvent : public nsDOMEvent,
public nsDOMEvent public nsIDOMProgressEvent
{ {
public: public:
nsDOMProgressEvent(nsPresContext* aPresContext, nsEvent* aEvent) nsDOMProgressEvent(nsPresContext* aPresContext, nsEvent* aEvent)

Просмотреть файл

@ -42,8 +42,8 @@
class nsPresContext; class nsPresContext;
class nsDOMSimpleGestureEvent : public nsIDOMSimpleGestureEvent, class nsDOMSimpleGestureEvent : public nsDOMMouseEvent,
public nsDOMMouseEvent public nsIDOMSimpleGestureEvent
{ {
public: public:
nsDOMSimpleGestureEvent(nsPresContext*, nsSimpleGestureEvent*); nsDOMSimpleGestureEvent(nsPresContext*, nsSimpleGestureEvent*);

Просмотреть файл

@ -45,10 +45,10 @@
#include "nsIPrivateCompositionEvent.h" #include "nsIPrivateCompositionEvent.h"
#include "nsDOMEvent.h" #include "nsDOMEvent.h"
class nsDOMUIEvent : public nsIDOMUIEvent, class nsDOMUIEvent : public nsDOMEvent,
public nsIDOMUIEvent,
public nsIDOMNSUIEvent, public nsIDOMNSUIEvent,
public nsIPrivateCompositionEvent, public nsIPrivateCompositionEvent
public nsDOMEvent
{ {
public: public:
nsDOMUIEvent(nsPresContext* aPresContext, nsGUIEvent* aEvent); nsDOMUIEvent(nsPresContext* aPresContext, nsGUIEvent* aEvent);

Просмотреть файл

@ -41,8 +41,8 @@
#include "nsIDOMSVGEvent.h" #include "nsIDOMSVGEvent.h"
#include "nsDOMEvent.h" #include "nsDOMEvent.h"
class nsDOMSVGEvent : public nsIDOMSVGEvent, class nsDOMSVGEvent : public nsDOMEvent,
public nsDOMEvent public nsIDOMSVGEvent
{ {
public: public:
nsDOMSVGEvent(nsPresContext* aPresContext, nsEvent* aEvent); nsDOMSVGEvent(nsPresContext* aPresContext, nsEvent* aEvent);

Просмотреть файл

@ -105,14 +105,13 @@ nsDOMSVGZoomEvent::nsDOMSVGZoomEvent(nsPresContext* aPresContext,
//---------------------------------------------------------------------- //----------------------------------------------------------------------
// nsISupports methods: // nsISupports methods:
NS_IMPL_ADDREF_INHERITED(nsDOMSVGZoomEvent, nsDOMEvent) NS_IMPL_ADDREF_INHERITED(nsDOMSVGZoomEvent, nsDOMUIEvent)
NS_IMPL_RELEASE_INHERITED(nsDOMSVGZoomEvent, nsDOMEvent) NS_IMPL_RELEASE_INHERITED(nsDOMSVGZoomEvent, nsDOMUIEvent)
NS_INTERFACE_MAP_BEGIN(nsDOMSVGZoomEvent) NS_INTERFACE_MAP_BEGIN(nsDOMSVGZoomEvent)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGZoomEvent) NS_INTERFACE_MAP_ENTRY(nsIDOMSVGZoomEvent)
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsIDOMUIEvent,nsIDOMSVGZoomEvent)
NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO(SVGZoomEvent) NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO(SVGZoomEvent)
NS_INTERFACE_MAP_END_INHERITING(nsDOMEvent) NS_INTERFACE_MAP_END_INHERITING(nsDOMUIEvent)
//---------------------------------------------------------------------- //----------------------------------------------------------------------

Просмотреть файл

@ -42,8 +42,8 @@
#include "nsDOMUIEvent.h" #include "nsDOMUIEvent.h"
#include "nsIDOMSVGSVGElement.h" #include "nsIDOMSVGSVGElement.h"
class nsDOMSVGZoomEvent : public nsIDOMSVGZoomEvent, class nsDOMSVGZoomEvent : public nsDOMUIEvent,
public nsDOMUIEvent public nsIDOMSVGZoomEvent
{ {
public: public:
nsDOMSVGZoomEvent(nsPresContext* aPresContext, nsGUIEvent* aEvent); nsDOMSVGZoomEvent(nsPresContext* aPresContext, nsGUIEvent* aEvent);

Просмотреть файл

@ -3431,7 +3431,7 @@ nsDOMClassInfo::Init()
DOM_CLASSINFO_MAP_BEGIN(SVGZoomEvent, nsIDOMSVGZoomEvent) DOM_CLASSINFO_MAP_BEGIN(SVGZoomEvent, nsIDOMSVGZoomEvent)
DOM_CLASSINFO_MAP_ENTRY(nsIDOMSVGZoomEvent) DOM_CLASSINFO_MAP_ENTRY(nsIDOMSVGZoomEvent)
DOM_CLASSINFO_EVENT_MAP_ENTRIES DOM_CLASSINFO_UI_EVENT_MAP_ENTRIES
DOM_CLASSINFO_MAP_END DOM_CLASSINFO_MAP_END
#endif // MOZ_SVG #endif // MOZ_SVG