fix for resize event support, bug 960, and additional support for DOM 2 events.
git-svn-id: svn://10.0.0.236/trunk@70314 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1781,6 +1781,17 @@ PresShell::ResizeReflow(nscoord aWidth, nscoord aHeight)
|
||||
|
||||
mViewManager->CacheWidgetChanges(PR_FALSE);
|
||||
|
||||
//Send resize event from here.
|
||||
nsEvent event;
|
||||
nsEventStatus status;
|
||||
event.eventStructType = NS_EVENT;
|
||||
event.message = NS_RESIZE_EVENT;
|
||||
event.time = 0;
|
||||
|
||||
nsCOMPtr<nsIScriptGlobalObject> globalObj;
|
||||
mDocument->GetScriptGlobalObject(getter_AddRefs(globalObj));
|
||||
globalObj->HandleDOMEvent(mPresContext, &event, nsnull, NS_EVENT_FLAG_INIT, &status);
|
||||
|
||||
return NS_OK; //XXX this needs to be real. MMP
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user