mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 851180 - Ensure AndroidGeckoEvent::mAckNeeded is always initialized. r=gbrown
This commit is contained in:
parent
cb0307099d
commit
be83be40c1
@ -487,6 +487,7 @@ void
|
|||||||
AndroidGeckoEvent::Init(int aType, nsIntRect const& aRect)
|
AndroidGeckoEvent::Init(int aType, nsIntRect const& aRect)
|
||||||
{
|
{
|
||||||
mType = aType;
|
mType = aType;
|
||||||
|
mAckNeeded = false;
|
||||||
mRect = aRect;
|
mRect = aRect;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -641,28 +642,24 @@ void
|
|||||||
AndroidGeckoEvent::Init(int aType)
|
AndroidGeckoEvent::Init(int aType)
|
||||||
{
|
{
|
||||||
mType = aType;
|
mType = aType;
|
||||||
|
mAckNeeded = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
AndroidGeckoEvent::Init(int aType, int aAction)
|
AndroidGeckoEvent::Init(int aType, int aAction)
|
||||||
{
|
{
|
||||||
mType = aType;
|
mType = aType;
|
||||||
|
mAckNeeded = false;
|
||||||
mAction = aAction;
|
mAction = aAction;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
AndroidGeckoEvent::Init(int x1, int y1, int x2, int y2)
|
|
||||||
{
|
|
||||||
mType = DRAW;
|
|
||||||
mRect.SetEmpty();
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
AndroidGeckoEvent::Init(AndroidGeckoEvent *aResizeEvent)
|
AndroidGeckoEvent::Init(AndroidGeckoEvent *aResizeEvent)
|
||||||
{
|
{
|
||||||
NS_ASSERTION(aResizeEvent->Type() == SIZE_CHANGED, "Init called on non-SIZE_CHANGED event");
|
NS_ASSERTION(aResizeEvent->Type() == SIZE_CHANGED, "Init called on non-SIZE_CHANGED event");
|
||||||
|
|
||||||
mType = FORCED_RESIZE;
|
mType = FORCED_RESIZE;
|
||||||
|
mAckNeeded = false;
|
||||||
mTime = aResizeEvent->mTime;
|
mTime = aResizeEvent->mTime;
|
||||||
mPoints = aResizeEvent->mPoints; // x,y coordinates
|
mPoints = aResizeEvent->mPoints; // x,y coordinates
|
||||||
}
|
}
|
||||||
|
@ -593,16 +593,12 @@ class AndroidGeckoEvent : public WrappedJavaObject
|
|||||||
public:
|
public:
|
||||||
static void InitGeckoEventClass(JNIEnv *jEnv);
|
static void InitGeckoEventClass(JNIEnv *jEnv);
|
||||||
|
|
||||||
AndroidGeckoEvent() { }
|
|
||||||
AndroidGeckoEvent(int aType) {
|
AndroidGeckoEvent(int aType) {
|
||||||
Init(aType);
|
Init(aType);
|
||||||
}
|
}
|
||||||
AndroidGeckoEvent(int aType, int aAction) {
|
AndroidGeckoEvent(int aType, int aAction) {
|
||||||
Init(aType, aAction);
|
Init(aType, aAction);
|
||||||
}
|
}
|
||||||
AndroidGeckoEvent(int x1, int y1, int x2, int y2) {
|
|
||||||
Init(x1, y1, x2, y2);
|
|
||||||
}
|
|
||||||
AndroidGeckoEvent(int aType, const nsIntRect &aRect) {
|
AndroidGeckoEvent(int aType, const nsIntRect &aRect) {
|
||||||
Init(aType, aRect);
|
Init(aType, aRect);
|
||||||
}
|
}
|
||||||
@ -616,7 +612,6 @@ public:
|
|||||||
void Init(JNIEnv *jenv, jobject jobj);
|
void Init(JNIEnv *jenv, jobject jobj);
|
||||||
void Init(int aType);
|
void Init(int aType);
|
||||||
void Init(int aType, int aAction);
|
void Init(int aType, int aAction);
|
||||||
void Init(int x1, int y1, int x2, int y2);
|
|
||||||
void Init(int aType, const nsIntRect &aRect);
|
void Init(int aType, const nsIntRect &aRect);
|
||||||
void Init(AndroidGeckoEvent *aResizeEvent);
|
void Init(AndroidGeckoEvent *aResizeEvent);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user