зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1407447 - Part 2: Remove some dead code; r=masayuki
This commit is contained in:
Родитель
91afad1234
Коммит
92a2acc32a
|
@ -3789,20 +3789,6 @@ EditorBase::IsTextNode(nsIDOMNode* aNode)
|
|||
return (nodeType == nsIDOMNode::TEXT_NODE);
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIDOMNode>
|
||||
EditorBase::GetChildAt(nsIDOMNode* aParent, int32_t aOffset)
|
||||
{
|
||||
nsCOMPtr<nsIDOMNode> resultNode;
|
||||
|
||||
nsCOMPtr<nsIContent> parent = do_QueryInterface(aParent);
|
||||
|
||||
NS_ENSURE_TRUE(parent, resultNode);
|
||||
|
||||
resultNode = do_QueryInterface(parent->GetChildAt(aOffset));
|
||||
|
||||
return resultNode;
|
||||
}
|
||||
|
||||
/**
|
||||
* GetNodeAtRangeOffsetPoint() returns the node at this position in a range,
|
||||
* assuming that aParentOrNode is the node itself if it's a text node, or
|
||||
|
|
|
@ -885,7 +885,6 @@ public:
|
|||
return aNode->NodeType() == nsIDOMNode::TEXT_NODE;
|
||||
}
|
||||
|
||||
static nsCOMPtr<nsIDOMNode> GetChildAt(nsIDOMNode* aParent, int32_t aOffset);
|
||||
static nsIContent* GetNodeAtRangeOffsetPoint(nsINode* aParentOrNode,
|
||||
int32_t aOffset);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче