зеркало из https://github.com/mozilla/gecko-dev.git
Photon-only changes. These only affect QNX builds, which are not part of
Tinderbox. Fix compile errors introduced by jst%mozilla.jstenback.com (missing parenthesis) and others. My QNX email address is mfeil@qnx.com. r=briane@qnx.com
This commit is contained in:
Родитель
8ea350c0e4
Коммит
1534795f11
|
@ -1084,7 +1084,7 @@ inline PRBool nsWidget::HandleEvent( PtWidget_t *widget, PtCallbackInfo_t* aCbIn
|
|||
case Ph_EV_PTR_MOTION_BUTTON:
|
||||
{
|
||||
PhPointerEvent_t* ptrev = (PhPointerEvent_t*) PhGetData( event );
|
||||
nsMouseEvent theMouseEvent(PR_TRUE, 0, nsnull, nsMouseEvent::eReal;
|
||||
nsMouseEvent theMouseEvent(PR_TRUE, 0, nsnull, nsMouseEvent::eReal);
|
||||
|
||||
if( ptrev ) {
|
||||
|
||||
|
|
|
@ -223,12 +223,12 @@ public:
|
|||
inline void InitEvent(nsGUIEvent& event, PRUint32 aEventType, nsPoint* aPoint = nsnull)
|
||||
{
|
||||
if( aPoint == nsnull ) {
|
||||
event.point.x = 0;
|
||||
event.point.y = 0;
|
||||
event.refPoint.x = 0;
|
||||
event.refPoint.y = 0;
|
||||
}
|
||||
else {
|
||||
event.point.x = aPoint->x;
|
||||
event.point.y = aPoint->y;
|
||||
event.refPoint.x = aPoint->x;
|
||||
event.refPoint.y = aPoint->y;
|
||||
}
|
||||
event.widget = this;
|
||||
event.time = PR_IntervalNow();
|
||||
|
|
|
@ -607,8 +607,8 @@ NS_IMETHODIMP nsWindow::Resize(PRInt32 aWidth, PRInt32 aHeight, PRBool aRepaint)
|
|||
|
||||
sevent.windowSize = new nsRect (0, 0, aWidth, aHeight);
|
||||
|
||||
sevent.point.x = 0;
|
||||
sevent.point.y = 0;
|
||||
sevent.refPoint.x = 0;
|
||||
sevent.refPoint.y = 0;
|
||||
sevent.mWinWidth = aWidth;
|
||||
sevent.mWinHeight = aHeight;
|
||||
// XXX fix this
|
||||
|
@ -639,8 +639,8 @@ int nsWindow::WindowWMHandler( PtWidget_t *widget, void *data, PtCallbackInfo_t
|
|||
event.widget = win;
|
||||
|
||||
event.time = 0;
|
||||
event.point.x = 0;
|
||||
event.point.y = 0;
|
||||
event.refPoint.x = 0;
|
||||
event.refPoint.y = 0;
|
||||
|
||||
win->DispatchEvent(&event, status);
|
||||
|
||||
|
@ -718,8 +718,8 @@ void nsWindow::RawDrawFunc( PtWidget_t * pWidget, PhTile_t * damage )
|
|||
|
||||
/* Re-Setup Paint Event */
|
||||
pWin->InitEvent(pev, NS_PAINT);
|
||||
pev.point.x = nsDmg.x;
|
||||
pev.point.y = nsDmg.y;
|
||||
pev.refPoint.x = nsDmg.x;
|
||||
pev.refPoint.y = nsDmg.y;
|
||||
pev.rect = &nsDmg;
|
||||
pev.region = nsnull;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче