mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 666446, Part 1/18 - Add method to imgIContainer for notification of refresh driver events. [r=dholbert,joe][sr=bz]
This commit is contained in:
parent
31b407a685
commit
9fc405c10f
@ -56,6 +56,10 @@ interface imgIDecoderObserver;
|
|||||||
#include "limits.h"
|
#include "limits.h"
|
||||||
|
|
||||||
class nsIFrame;
|
class nsIFrame;
|
||||||
|
|
||||||
|
namespace mozilla {
|
||||||
|
class TimeStamp;
|
||||||
|
}
|
||||||
%}
|
%}
|
||||||
|
|
||||||
[ptr] native gfxImageSurface(gfxImageSurface);
|
[ptr] native gfxImageSurface(gfxImageSurface);
|
||||||
@ -68,6 +72,7 @@ native gfxGraphicsFilter(gfxPattern::GraphicsFilter);
|
|||||||
[ref] native nsIntRect(nsIntRect);
|
[ref] native nsIntRect(nsIntRect);
|
||||||
[ref] native nsIntSize(nsIntSize);
|
[ref] native nsIntSize(nsIntSize);
|
||||||
[ptr] native nsIFrame(nsIFrame);
|
[ptr] native nsIFrame(nsIFrame);
|
||||||
|
[ref] native TimeStamp(mozilla::TimeStamp);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* imgIContainer is the interface that represents an image. It allows
|
* imgIContainer is the interface that represents an image. It allows
|
||||||
@ -261,6 +266,13 @@ interface imgIContainer : nsISupports
|
|||||||
*/
|
*/
|
||||||
void unlockImage();
|
void unlockImage();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Indicates that this imgIContainer has been triggered to update
|
||||||
|
* its internal animation state. Likely this should only be called
|
||||||
|
* from within nsImageFrame or objects of similar type.
|
||||||
|
*/
|
||||||
|
[notxpcom] void requestRefresh([const] in TimeStamp aTime);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Animation mode Constants
|
* Animation mode Constants
|
||||||
* 0 = normal
|
* 0 = normal
|
||||||
|
@ -313,6 +313,14 @@ RasterImage::Init(imgIDecoderObserver *aObserver,
|
|||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//******************************************************************************
|
||||||
|
/* [notxpcom] void requestRefresh ([const] in TimeStamp aTime); */
|
||||||
|
NS_IMETHODIMP_(void)
|
||||||
|
RasterImage::RequestRefresh(const mozilla::TimeStamp& aTime)
|
||||||
|
{
|
||||||
|
// TODO: Implement me as part of b666446
|
||||||
|
}
|
||||||
|
|
||||||
//******************************************************************************
|
//******************************************************************************
|
||||||
/* [noscript] imgIContainer extractFrame(PRUint32 aWhichFrame,
|
/* [noscript] imgIContainer extractFrame(PRUint32 aWhichFrame,
|
||||||
* [const] in nsIntRect aRegion,
|
* [const] in nsIntRect aRegion,
|
||||||
|
@ -183,6 +183,7 @@ public:
|
|||||||
NS_SCRIPTABLE NS_IMETHOD LockImage(void);
|
NS_SCRIPTABLE NS_IMETHOD LockImage(void);
|
||||||
NS_SCRIPTABLE NS_IMETHOD UnlockImage(void);
|
NS_SCRIPTABLE NS_IMETHOD UnlockImage(void);
|
||||||
NS_SCRIPTABLE NS_IMETHOD ResetAnimation(void);
|
NS_SCRIPTABLE NS_IMETHOD ResetAnimation(void);
|
||||||
|
NS_IMETHOD_(void) RequestRefresh(const mozilla::TimeStamp& aTime);
|
||||||
// END NS_DECL_IMGICONTAINER
|
// END NS_DECL_IMGICONTAINER
|
||||||
|
|
||||||
RasterImage(imgStatusTracker* aStatusTracker = nsnull);
|
RasterImage(imgStatusTracker* aStatusTracker = nsnull);
|
||||||
|
@ -171,7 +171,6 @@ SVGDrawingCallback::operator()(gfxContext* aContext,
|
|||||||
gfxContextMatrixAutoSaveRestore contextMatrixRestorer(aContext);
|
gfxContextMatrixAutoSaveRestore contextMatrixRestorer(aContext);
|
||||||
aContext->Multiply(gfxMatrix(aTransform).Invert());
|
aContext->Multiply(gfxMatrix(aTransform).Invert());
|
||||||
|
|
||||||
|
|
||||||
nsPresContext* presContext = presShell->GetPresContext();
|
nsPresContext* presContext = presShell->GetPresContext();
|
||||||
NS_ABORT_IF_FALSE(presContext, "pres shell w/out pres context");
|
NS_ABORT_IF_FALSE(presContext, "pres shell w/out pres context");
|
||||||
|
|
||||||
@ -329,6 +328,14 @@ VectorImage::GetWidth(PRInt32* aWidth)
|
|||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//******************************************************************************
|
||||||
|
/* [notxpcom] void requestRefresh ([const] in TimeStamp aTime); */
|
||||||
|
NS_IMETHODIMP_(void)
|
||||||
|
VectorImage::RequestRefresh(const mozilla::TimeStamp& aTime)
|
||||||
|
{
|
||||||
|
// TODO: Implement for b666446.
|
||||||
|
}
|
||||||
|
|
||||||
//******************************************************************************
|
//******************************************************************************
|
||||||
/* readonly attribute PRInt32 height; */
|
/* readonly attribute PRInt32 height; */
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
|
@ -42,6 +42,7 @@
|
|||||||
#include "Image.h"
|
#include "Image.h"
|
||||||
#include "nsIStreamListener.h"
|
#include "nsIStreamListener.h"
|
||||||
#include "nsWeakReference.h"
|
#include "nsWeakReference.h"
|
||||||
|
#include "mozilla/TimeStamp.h"
|
||||||
|
|
||||||
class imgIDecoderObserver;
|
class imgIDecoderObserver;
|
||||||
|
|
||||||
@ -76,6 +77,7 @@ public:
|
|||||||
NS_SCRIPTABLE NS_IMETHOD LockImage(void);
|
NS_SCRIPTABLE NS_IMETHOD LockImage(void);
|
||||||
NS_SCRIPTABLE NS_IMETHOD UnlockImage(void);
|
NS_SCRIPTABLE NS_IMETHOD UnlockImage(void);
|
||||||
NS_SCRIPTABLE NS_IMETHOD ResetAnimation(void);
|
NS_SCRIPTABLE NS_IMETHOD ResetAnimation(void);
|
||||||
|
NS_IMETHOD_(void) RequestRefresh(const mozilla::TimeStamp& aTime);
|
||||||
// END NS_DECL_IMGICONTAINER
|
// END NS_DECL_IMGICONTAINER
|
||||||
|
|
||||||
VectorImage(imgStatusTracker* aStatusTracker = nsnull);
|
VectorImage(imgStatusTracker* aStatusTracker = nsnull);
|
||||||
|
Loading…
Reference in New Issue
Block a user