Bug 1714640 - Add AdjustFrameForLineStart call in Selection::ScrollIntoView r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D117009
This commit is contained in:
@@ -2865,6 +2865,8 @@ nsIFrame* Selection::GetSelectionEndPointGeometry(SelectionRegion aRegion,
|
||||
content, nodeOffset, mFrameSelection->GetHint(), &frameOffset);
|
||||
if (!frame) return nullptr;
|
||||
|
||||
nsFrameSelection::AdjustFrameForLineStart(frame, frameOffset);
|
||||
|
||||
// Figure out what node type we have, then get the
|
||||
// appropriate rect for it's nodeOffset.
|
||||
bool isText = node->IsText();
|
||||
|
||||
Reference in New Issue
Block a user