Bug 536926. Make sure event gets handled even if there is no focused node and the root content has no frame. r=enndeakin

--HG--
extra : rebase_source : a7e532c248467a0083a682f8ed0d32959595c898
This commit is contained in:
Timothy Nikkel 2010-01-27 22:12:29 -06:00
parent fffbd88cf3
commit 9aed5c95c4

View File

@ -6280,7 +6280,8 @@ PresShell::HandleEvent(nsIView *aView,
mCurrentEventFrame = nsnull;
if (!mCurrentEventContent || InZombieDocument(mCurrentEventContent)) {
if (!mCurrentEventContent || !GetCurrentEventFrame() ||
InZombieDocument(mCurrentEventContent)) {
rv = RetargetEventToParent(aEvent, aEventStatus);
PopCurrentEventInfo();
return rv;