зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1387143 part 25. Remove nsISelection::DeleteFromDocument. r=mats
This commit is contained in:
Родитель
30e5cc5d8b
Коммит
11a1d5dd24
|
@ -3536,14 +3536,6 @@ Selection::IsBlockingSelectionChangeEvents() const
|
|||
return mSelectionChangeBlockerCount > 0;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
Selection::DeleteFromDocument()
|
||||
{
|
||||
ErrorResult result;
|
||||
DeleteFromDocument(result);
|
||||
return result.StealNSResult();
|
||||
}
|
||||
|
||||
void
|
||||
Selection::DeleteFromDocument(ErrorResult& aRv)
|
||||
{
|
||||
|
|
|
@ -259,6 +259,9 @@ public:
|
|||
|
||||
void SelectAllChildrenJS(nsINode& aNode, mozilla::ErrorResult& aRv);
|
||||
|
||||
/**
|
||||
* Deletes this selection from document the nodes belong to.
|
||||
*/
|
||||
void DeleteFromDocument(mozilla::ErrorResult& aRv);
|
||||
|
||||
uint32_t RangeCount() const
|
||||
|
|
|
@ -45,11 +45,6 @@ interface nsISelection : nsISupports
|
|||
*/
|
||||
void selectAllChildren(in nsIDOMNode parentNode);
|
||||
|
||||
/**
|
||||
* Deletes this selection from document the nodes belong to.
|
||||
*/
|
||||
void deleteFromDocument();
|
||||
|
||||
/**
|
||||
* Modifies the selection. Note that the parameters are case-insensitive.
|
||||
*
|
||||
|
|
|
@ -2630,7 +2630,7 @@ DeleteUnselectedNodes(nsIDocument* aOrigDoc, nsIDocument* aDoc)
|
|||
selection->AddRange(*lastRange, IgnoreErrors());
|
||||
}
|
||||
|
||||
selection->DeleteFromDocument();
|
||||
selection->DeleteFromDocument(IgnoreErrors());
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче