mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Reinstate buster's changes, with a fix for the nsCOMPtr problem.
This commit is contained in:
parent
e010fff2cc
commit
f0793df5ed
@ -57,7 +57,6 @@ nsresult InsertTextTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
|
||||
// set out param default value
|
||||
if (nsnull!=aDidMerge)
|
||||
*aDidMerge=PR_FALSE;
|
||||
/* XXX: Doesn't compile on Mac. While the hell not???
|
||||
if ((nsnull!=aDidMerge) && (nsnull!=aTransaction))
|
||||
{
|
||||
// if aTransaction isa InsertTextTxn, absorb it
|
||||
@ -71,7 +70,6 @@ nsresult InsertTextTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
|
||||
}
|
||||
*aDidMerge = PR_TRUE;
|
||||
}
|
||||
*/
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -41,6 +41,13 @@ public:
|
||||
PRUint32 aOffset,
|
||||
const nsString& aStringToInsert);
|
||||
|
||||
private:
|
||||
|
||||
// default ctor so that nsCOMPtr is happy
|
||||
InsertTextTxn() : EditTxn(nsnull) {}
|
||||
|
||||
public:
|
||||
|
||||
virtual nsresult Do(void);
|
||||
|
||||
virtual nsresult Undo(void);
|
||||
|
@ -57,7 +57,6 @@ nsresult InsertTextTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
|
||||
// set out param default value
|
||||
if (nsnull!=aDidMerge)
|
||||
*aDidMerge=PR_FALSE;
|
||||
/* XXX: Doesn't compile on Mac. While the hell not???
|
||||
if ((nsnull!=aDidMerge) && (nsnull!=aTransaction))
|
||||
{
|
||||
// if aTransaction isa InsertTextTxn, absorb it
|
||||
@ -71,7 +70,6 @@ nsresult InsertTextTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
|
||||
}
|
||||
*aDidMerge = PR_TRUE;
|
||||
}
|
||||
*/
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -41,6 +41,13 @@ public:
|
||||
PRUint32 aOffset,
|
||||
const nsString& aStringToInsert);
|
||||
|
||||
private:
|
||||
|
||||
// default ctor so that nsCOMPtr is happy
|
||||
InsertTextTxn() : EditTxn(nsnull) {}
|
||||
|
||||
public:
|
||||
|
||||
virtual nsresult Do(void);
|
||||
|
||||
virtual nsresult Undo(void);
|
||||
|
@ -57,7 +57,6 @@ nsresult InsertTextTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
|
||||
// set out param default value
|
||||
if (nsnull!=aDidMerge)
|
||||
*aDidMerge=PR_FALSE;
|
||||
/* XXX: Doesn't compile on Mac. While the hell not???
|
||||
if ((nsnull!=aDidMerge) && (nsnull!=aTransaction))
|
||||
{
|
||||
// if aTransaction isa InsertTextTxn, absorb it
|
||||
@ -71,7 +70,6 @@ nsresult InsertTextTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
|
||||
}
|
||||
*aDidMerge = PR_TRUE;
|
||||
}
|
||||
*/
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -41,6 +41,13 @@ public:
|
||||
PRUint32 aOffset,
|
||||
const nsString& aStringToInsert);
|
||||
|
||||
private:
|
||||
|
||||
// default ctor so that nsCOMPtr is happy
|
||||
InsertTextTxn() : EditTxn(nsnull) {}
|
||||
|
||||
public:
|
||||
|
||||
virtual nsresult Do(void);
|
||||
|
||||
virtual nsresult Undo(void);
|
||||
|
Loading…
Reference in New Issue
Block a user