зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
158ddd874d
Коммит
d0ccd4fc7e
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче