Bug 758179. Part 4: Pass SKIP_HIDDEN flag in HandlePress/HandleRelease. r=mats

This commit is contained in:
Robert O'Callahan 2012-05-30 01:13:36 +12:00
parent 609fc0864a
commit 63748653cd

View File

@ -2562,7 +2562,7 @@ nsFrame::HandlePress(nsPresContext* aPresContext,
}
nsPoint pt = nsLayoutUtils::GetEventCoordinatesRelativeTo(aEvent, this);
ContentOffsets offsets = GetContentOffsetsFromPoint(pt);
ContentOffsets offsets = GetContentOffsetsFromPoint(pt, SKIP_HIDDEN);
if (!offsets.content)
return NS_ERROR_FAILURE;
@ -2708,7 +2708,7 @@ nsFrame::HandleMultiplePress(nsPresContext* aPresContext,
}
nsPoint pt = nsLayoutUtils::GetEventCoordinatesRelativeTo(aEvent, this);
ContentOffsets offsets = GetContentOffsetsFromPoint(pt);
ContentOffsets offsets = GetContentOffsetsFromPoint(pt, SKIP_HIDDEN);
if (!offsets.content) return NS_ERROR_FAILURE;
nsIFrame* theFrame;
@ -2977,7 +2977,7 @@ NS_IMETHODIMP nsFrame::HandleRelease(nsPresContext* aPresContext,
if (!mouseDown && frameselection->HasDelayedCaretData() &&
frameselection->GetClickCountInDelayedCaretData() < 2) {
nsPoint pt = nsLayoutUtils::GetEventCoordinatesRelativeTo(aEvent, this);
offsets = GetContentOffsetsFromPoint(pt);
offsets = GetContentOffsetsFromPoint(pt, SKIP_HIDDEN);
handleTableSelection = false;
} else {
GetDataForTableSelection(frameselection, PresContext()->PresShell(),