mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 758179. Part 4: Pass SKIP_HIDDEN flag in HandlePress/HandleRelease. r=mats
This commit is contained in:
parent
609fc0864a
commit
63748653cd
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user