Bug 722406 - Part a: Introduce nsISelection::CollapseNative; r=smaug

This commit is contained in:
Ms2ger 2012-02-01 11:54:22 +01:00
parent 9b3a6e7944
commit dc8871e80a
2 changed files with 8 additions and 1 deletions

View File

@ -41,6 +41,7 @@
interface nsIDOMNode;
interface nsIDOMRange;
interface nsINode;
/**
* Interface for manipulating and querying the current selected range
@ -95,7 +96,7 @@ interface nsISelection : nsISupports
* @param offset Where in given dom node to place the selection (the offset into the given node)
*/
void collapse(in nsIDOMNode parentNode, in long offset);
[noscript] void collapseNative(in nsINode parentNode, in long offset);
/**
* Extends the selection by moving the selection end to the specified node and offset,

View File

@ -4864,6 +4864,12 @@ nsTypedSelection::Collapse(nsIDOMNode* aParentNode, PRInt32 aOffset)
return Collapse(parentNode, aOffset);
}
NS_IMETHODIMP
nsTypedSelection::CollapseNative(nsINode* aParentNode, PRInt32 aOffset)
{
return Collapse(aParentNode, aOffset);
}
nsresult
nsTypedSelection::Collapse(nsINode* aParentNode, PRInt32 aOffset)
{