diff --git a/content/events/src/nsDOMEvent.cpp b/content/events/src/nsDOMEvent.cpp index 36b337fec67..2d929c0aa42 100644 --- a/content/events/src/nsDOMEvent.cpp +++ b/content/events/src/nsDOMEvent.cpp @@ -22,7 +22,6 @@ #include "nsIFrame.h" #include "nsIContent.h" #include "nsIRenderingContext.h" -#include "nsIDOMRenderingContext.h" #include "nsIWidget.h" #include "nsIWebShell.h" #include "nsIPresShell.h" @@ -687,24 +686,6 @@ const char* nsDOMEvent::GetEventName(PRUint32 aEventType) return nsnull; } -static NS_DEFINE_IID(kIDOMRenderingContextIID, NS_IDOMRENDERINGCONTEXT_IID); - -NS_IMETHODIMP -nsDOMEvent::GetRc(nsIDOMRenderingContext** aRc) -{ - *aRc = nsnull; - if (NS_PAINT_EVENT == mEvent->eventStructType) { - nsPaintEvent* pe = (nsPaintEvent*) mEvent; - if (nsnull != pe->renderingContext) { - nsIDOMRenderingContext* domrc; - if (NS_OK == pe->renderingContext->QueryInterface(kIDOMRenderingContextIID, (void**) &domrc)) { - *aRc = domrc; - } - } - } - return NS_OK; -} - nsresult NS_NewDOMUIEvent(nsIDOMEvent** aInstancePtrResult, nsIPresContext& aPresContext, nsEvent *aEvent) { nsDOMEvent* it = new nsDOMEvent(&aPresContext, aEvent); diff --git a/content/events/src/nsDOMEvent.h b/content/events/src/nsDOMEvent.h index 9ca783d74b7..dcbc865123a 100644 --- a/content/events/src/nsDOMEvent.h +++ b/content/events/src/nsDOMEvent.h @@ -32,8 +32,6 @@ #include "nsGUIEvent.h" class nsIContent; -class nsIDOMRenderingContext; - class nsDOMEvent : public nsIDOMUIEvent, public nsIDOMNSUIEvent, public nsIPrivateDOMEvent, public nsIPrivateTextEvent, public nsIPrivateCompositionEvent { public: @@ -110,7 +108,7 @@ public: NS_IMETHOD GetClickcount(PRUint16* aClickcount); - // nsIDOMNSEvent interface + // nsIDOMNSUIEvent interface NS_IMETHOD GetLayerX(PRInt32* aLayerX); NS_IMETHOD GetLayerY(PRInt32* aLayerY); @@ -121,8 +119,6 @@ public: NS_IMETHOD GetWhich(PRUint32* aKeyCode); - NS_IMETHOD GetRc(nsIDOMRenderingContext** aRc); - NS_IMETHOD GetRangeParent(nsIDOMNode** aRangeParent); NS_IMETHOD GetRangeOffset(PRInt32* aRangeOffset); diff --git a/layout/events/src/nsDOMEvent.cpp b/layout/events/src/nsDOMEvent.cpp index 36b337fec67..2d929c0aa42 100644 --- a/layout/events/src/nsDOMEvent.cpp +++ b/layout/events/src/nsDOMEvent.cpp @@ -22,7 +22,6 @@ #include "nsIFrame.h" #include "nsIContent.h" #include "nsIRenderingContext.h" -#include "nsIDOMRenderingContext.h" #include "nsIWidget.h" #include "nsIWebShell.h" #include "nsIPresShell.h" @@ -687,24 +686,6 @@ const char* nsDOMEvent::GetEventName(PRUint32 aEventType) return nsnull; } -static NS_DEFINE_IID(kIDOMRenderingContextIID, NS_IDOMRENDERINGCONTEXT_IID); - -NS_IMETHODIMP -nsDOMEvent::GetRc(nsIDOMRenderingContext** aRc) -{ - *aRc = nsnull; - if (NS_PAINT_EVENT == mEvent->eventStructType) { - nsPaintEvent* pe = (nsPaintEvent*) mEvent; - if (nsnull != pe->renderingContext) { - nsIDOMRenderingContext* domrc; - if (NS_OK == pe->renderingContext->QueryInterface(kIDOMRenderingContextIID, (void**) &domrc)) { - *aRc = domrc; - } - } - } - return NS_OK; -} - nsresult NS_NewDOMUIEvent(nsIDOMEvent** aInstancePtrResult, nsIPresContext& aPresContext, nsEvent *aEvent) { nsDOMEvent* it = new nsDOMEvent(&aPresContext, aEvent); diff --git a/layout/events/src/nsDOMEvent.h b/layout/events/src/nsDOMEvent.h index 9ca783d74b7..dcbc865123a 100644 --- a/layout/events/src/nsDOMEvent.h +++ b/layout/events/src/nsDOMEvent.h @@ -32,8 +32,6 @@ #include "nsGUIEvent.h" class nsIContent; -class nsIDOMRenderingContext; - class nsDOMEvent : public nsIDOMUIEvent, public nsIDOMNSUIEvent, public nsIPrivateDOMEvent, public nsIPrivateTextEvent, public nsIPrivateCompositionEvent { public: @@ -110,7 +108,7 @@ public: NS_IMETHOD GetClickcount(PRUint16* aClickcount); - // nsIDOMNSEvent interface + // nsIDOMNSUIEvent interface NS_IMETHOD GetLayerX(PRInt32* aLayerX); NS_IMETHOD GetLayerY(PRInt32* aLayerY); @@ -121,8 +119,6 @@ public: NS_IMETHOD GetWhich(PRUint32* aKeyCode); - NS_IMETHOD GetRc(nsIDOMRenderingContext** aRc); - NS_IMETHOD GetRangeParent(nsIDOMNode** aRangeParent); NS_IMETHOD GetRangeOffset(PRInt32* aRangeOffset);