зеркало из https://github.com/mozilla/pjs.git
Bug 722406 - Part a: Introduce nsISelection::CollapseNative; r=smaug
This commit is contained in:
Родитель
8cc452c31b
Коммит
304f9a96e5
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче