зеркало из https://github.com/mozilla/pjs.git
Removed GetRC code
This commit is contained in:
Родитель
31f81c80ca
Коммит
1677a4153a
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче