зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1405419 - Part 2: Remove a dead overload of HTMLEditor::GetPriorHTMLSibling(); r=masayuki
This commit is contained in:
Родитель
73a4c4fd54
Коммит
f149573106
|
@ -3823,24 +3823,6 @@ HTMLEditor::GetPriorHTMLSibling(nsIDOMNode* inNode,
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
HTMLEditor::GetPriorHTMLSibling(nsIDOMNode* inParent,
|
||||
int32_t inOffset,
|
||||
nsCOMPtr<nsIDOMNode>* outNode)
|
||||
{
|
||||
NS_ENSURE_TRUE(outNode, NS_ERROR_NULL_POINTER);
|
||||
*outNode = nullptr;
|
||||
|
||||
nsCOMPtr<nsINode> parent = do_QueryInterface(inParent);
|
||||
NS_ENSURE_TRUE(parent, NS_ERROR_NULL_POINTER);
|
||||
|
||||
nsCOMPtr<nsINode> child = parent->GetChildAt(inOffset);
|
||||
NS_ENSURE_TRUE(child, NS_ERROR_NULL_POINTER);
|
||||
|
||||
*outNode = do_QueryInterface(GetPriorHTMLSibling(child));
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
/**
|
||||
* GetNextHTMLSibling() returns the next editable sibling, if there is
|
||||
* one within the parent.
|
||||
|
|
|
@ -770,8 +770,6 @@ protected:
|
|||
nsIContent* GetPriorHTMLSibling(nsINode* aNode);
|
||||
nsresult GetPriorHTMLSibling(nsIDOMNode*inNode,
|
||||
nsCOMPtr<nsIDOMNode>* outNode);
|
||||
nsresult GetPriorHTMLSibling(nsIDOMNode* inParent, int32_t inOffset,
|
||||
nsCOMPtr<nsIDOMNode>* outNode);
|
||||
|
||||
nsIContent* GetNextHTMLSibling(nsINode* aNode);
|
||||
nsresult GetNextHTMLSibling(nsIDOMNode* inNode,
|
||||
|
|
Загрузка…
Ссылка в новой задаче