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:
joki%netscape.com
2000-05-17 05:27:22 +00:00
parent b93b097fcc
commit 7fe66ffb76
28 changed files with 259 additions and 26 deletions

View File

@@ -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
}