mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Fix for 29843 -- caret disappears on delete. r=jfrancis
This commit is contained in:
parent
1b34326be4
commit
27b5192b2c
@ -5661,7 +5661,9 @@ nsHTMLEditor::CollapseAdjacentTextNodes(nsIDOMRange *aInRange)
|
||||
|
||||
iter->Init(aInRange);
|
||||
nsCOMPtr<nsIContent> content;
|
||||
result = iter->CurrentNode(getter_AddRefs(content));
|
||||
result = iter->CurrentNode(getter_AddRefs(content));
|
||||
if (!content) return NS_OK;
|
||||
|
||||
while (NS_ENUMERATOR_FALSE == iter->IsDone())
|
||||
{
|
||||
nsCOMPtr<nsIDOMCharacterData> text = do_QueryInterface(content);
|
||||
|
@ -5661,7 +5661,9 @@ nsHTMLEditor::CollapseAdjacentTextNodes(nsIDOMRange *aInRange)
|
||||
|
||||
iter->Init(aInRange);
|
||||
nsCOMPtr<nsIContent> content;
|
||||
result = iter->CurrentNode(getter_AddRefs(content));
|
||||
result = iter->CurrentNode(getter_AddRefs(content));
|
||||
if (!content) return NS_OK;
|
||||
|
||||
while (NS_ENUMERATOR_FALSE == iter->IsDone())
|
||||
{
|
||||
nsCOMPtr<nsIDOMCharacterData> text = do_QueryInterface(content);
|
||||
|
Loading…
Reference in New Issue
Block a user