mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-24 11:27:49 +00:00
Followup to fix orange from bug 385536
This commit is contained in:
parent
e74bc44b8b
commit
6b78eba5ea
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user