From 1677a4153aa61bbf9cb99132010795f63665a3f4 Mon Sep 17 00:00:00 2001 From: "kipp%netscape.com" Date: Wed, 1 Sep 1999 01:00:59 +0000 Subject: [PATCH] Removed GetRC code --- content/events/src/nsDOMEvent.cpp | 19 ------------------- content/events/src/nsDOMEvent.h | 6 +----- layout/events/src/nsDOMEvent.cpp | 19 ------------------- layout/events/src/nsDOMEvent.h | 6 +----- 4 files changed, 2 insertions(+), 48 deletions(-) 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);