Followup to fix orange from bug 385536

This commit is contained in:
sharparrow1@yahoo.com 2007-08-03 18:12:24 -07:00
parent e74bc44b8b
commit 6b78eba5ea

View File

@ -152,6 +152,9 @@ nsPoint nsDOMUIEvent::GetClientPoint() {
return nsPoint(0, 0);
}
if (!((nsGUIEvent*)mEvent)->widget)
return mClientPoint;
nsPoint pt(0, 0);
nsIFrame* rootFrame = mPresContext->PresShell()->GetRootFrame();
if (rootFrame)