icecat: add release icecat-140.10.1-1gnu1 for ecne

This commit is contained in:
Ark74 2026-05-04 16:58:41 -06:00
parent a5f93cb214
commit ff85d7c623
1256 changed files with 63469 additions and 24141 deletions

View file

@ -3356,8 +3356,8 @@ Result<EditActionResult, nsresult> HTMLEditor::AutoDeleteRangesHandler::
return EditActionResult::HandledResult();
}
EditorRawDOMPoint newCaretPosition =
HTMLEditUtils::GetGoodCaretPointFor<EditorRawDOMPoint>(
EditorDOMPoint newCaretPosition =
HTMLEditUtils::GetGoodCaretPointFor<EditorDOMPoint>(
*mLeafContentInOtherBlock, aDirectionAndAmount);
if (MOZ_UNLIKELY(!newCaretPosition.IsInContentNode())) {
NS_WARNING("HTMLEditUtils::GetGoodCaretPointFor() failed");
@ -3381,6 +3381,8 @@ Result<EditActionResult, nsresult> HTMLEditor::AutoDeleteRangesHandler::
BlockInlineCheck::UseComputedDisplayOutsideStyle);
}
if (nextThingOfCaretPoint.ReachedBlockBoundary()) {
AutoTrackDOMPoint trackNewCaretPosition(aHTMLEditor.RangeUpdaterRef(),
&newCaretPosition);
const EditorDOMPoint atBlockBoundary =
nextThingOfCaretPoint.ReachedCurrentBlockBoundary()
? EditorDOMPoint::AtEndOf(*nextThingOfCaretPoint.ElementPtr())
@ -3394,6 +3396,10 @@ Result<EditActionResult, nsresult> HTMLEditor::AutoDeleteRangesHandler::
"failed");
return afterLastVisibleThingOrError.propagateErr();
}
trackNewCaretPosition.Flush(StopTracking::Yes);
if (NS_WARN_IF(!newCaretPosition.IsSetAndValidInComposedDoc())) {
return Err(NS_ERROR_EDITOR_UNEXPECTED_DOM_TREE);
}
}
}
rv = aHTMLEditor.CollapseSelectionTo(newCaretPosition);