Bug 295941. Remove hack that is obsolete on the trunk now that Eli has fixed event dispatch coordinates. patch by Eli Friedman, r+sr=roc

This commit is contained in:
roc+%cs.cmu.edu 2005-10-21 02:50:35 +00:00
Родитель 158ddd874d
Коммит d0ccd4fc7e
1 изменённых файлов: 0 добавлений и 7 удалений

Просмотреть файл

@ -689,9 +689,6 @@ nsHTMLScrollFrame::PlaceScrollArea(const ScrollReflowState& aState)
PR_MAX(childOverflow.XMost(), aState.mScrollPortRect.width),
PR_MAX(childOverflow.YMost(), aState.mScrollPortRect.height));
mInner.mScrolledFrame->SetRect(childRect);
// XXX hack! force the scrolled frame to think it has overflow
// to avoid problems with incorrect event targeting.
mInner.mScrolledFrame->AddStateBits(NS_FRAME_OUTSIDE_CHILDREN);
nsContainerFrame::SyncFrameViewAfterReflow(mInner.mScrolledFrame->GetPresContext(),
mInner.mScrolledFrame,
@ -2116,10 +2113,6 @@ nsXULScrollFrame::LayoutScrollArea(nsBoxLayoutState& aState, const nsRect& aRect
aState.SetLayoutFlags(oldflags);
// XXX hack! force the scrolled frame to think it has overflow
// to avoid problems with incorrect event targeting.
mInner.mScrolledFrame->AddStateBits(NS_FRAME_OUTSIDE_CHILDREN);
mInner.PostOverflowEvents();
}