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
|
// set out param default value
|
||||||
if (nsnull!=aDidMerge)
|
if (nsnull!=aDidMerge)
|
||||||
*aDidMerge=PR_FALSE;
|
*aDidMerge=PR_FALSE;
|
||||||
/* XXX: Doesn't compile on Mac. While the hell not???
|
|
||||||
if ((nsnull!=aDidMerge) && (nsnull!=aTransaction))
|
if ((nsnull!=aDidMerge) && (nsnull!=aTransaction))
|
||||||
{
|
{
|
||||||
// if aTransaction isa InsertTextTxn, absorb it
|
// if aTransaction isa InsertTextTxn, absorb it
|
||||||
@ -71,7 +70,6 @@ nsresult InsertTextTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
|
|||||||
}
|
}
|
||||||
*aDidMerge = PR_TRUE;
|
*aDidMerge = PR_TRUE;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,12 +35,19 @@ class nsIDOMCharacterData;
|
|||||||
class InsertTextTxn : public EditTxn
|
class InsertTextTxn : public EditTxn
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
InsertTextTxn(nsEditor *aEditor,
|
InsertTextTxn(nsEditor *aEditor,
|
||||||
nsIDOMCharacterData *aElement,
|
nsIDOMCharacterData *aElement,
|
||||||
PRUint32 aOffset,
|
PRUint32 aOffset,
|
||||||
const nsString& aStringToInsert);
|
const nsString& aStringToInsert);
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
// default ctor so that nsCOMPtr is happy
|
||||||
|
InsertTextTxn() : EditTxn(nsnull) {}
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
virtual nsresult Do(void);
|
virtual nsresult Do(void);
|
||||||
|
|
||||||
virtual nsresult Undo(void);
|
virtual nsresult Undo(void);
|
||||||
|
@ -57,7 +57,6 @@ nsresult InsertTextTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
|
|||||||
// set out param default value
|
// set out param default value
|
||||||
if (nsnull!=aDidMerge)
|
if (nsnull!=aDidMerge)
|
||||||
*aDidMerge=PR_FALSE;
|
*aDidMerge=PR_FALSE;
|
||||||
/* XXX: Doesn't compile on Mac. While the hell not???
|
|
||||||
if ((nsnull!=aDidMerge) && (nsnull!=aTransaction))
|
if ((nsnull!=aDidMerge) && (nsnull!=aTransaction))
|
||||||
{
|
{
|
||||||
// if aTransaction isa InsertTextTxn, absorb it
|
// if aTransaction isa InsertTextTxn, absorb it
|
||||||
@ -71,7 +70,6 @@ nsresult InsertTextTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
|
|||||||
}
|
}
|
||||||
*aDidMerge = PR_TRUE;
|
*aDidMerge = PR_TRUE;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,12 +35,19 @@ class nsIDOMCharacterData;
|
|||||||
class InsertTextTxn : public EditTxn
|
class InsertTextTxn : public EditTxn
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
InsertTextTxn(nsEditor *aEditor,
|
InsertTextTxn(nsEditor *aEditor,
|
||||||
nsIDOMCharacterData *aElement,
|
nsIDOMCharacterData *aElement,
|
||||||
PRUint32 aOffset,
|
PRUint32 aOffset,
|
||||||
const nsString& aStringToInsert);
|
const nsString& aStringToInsert);
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
// default ctor so that nsCOMPtr is happy
|
||||||
|
InsertTextTxn() : EditTxn(nsnull) {}
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
virtual nsresult Do(void);
|
virtual nsresult Do(void);
|
||||||
|
|
||||||
virtual nsresult Undo(void);
|
virtual nsresult Undo(void);
|
||||||
|
@ -57,7 +57,6 @@ nsresult InsertTextTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
|
|||||||
// set out param default value
|
// set out param default value
|
||||||
if (nsnull!=aDidMerge)
|
if (nsnull!=aDidMerge)
|
||||||
*aDidMerge=PR_FALSE;
|
*aDidMerge=PR_FALSE;
|
||||||
/* XXX: Doesn't compile on Mac. While the hell not???
|
|
||||||
if ((nsnull!=aDidMerge) && (nsnull!=aTransaction))
|
if ((nsnull!=aDidMerge) && (nsnull!=aTransaction))
|
||||||
{
|
{
|
||||||
// if aTransaction isa InsertTextTxn, absorb it
|
// if aTransaction isa InsertTextTxn, absorb it
|
||||||
@ -71,7 +70,6 @@ nsresult InsertTextTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
|
|||||||
}
|
}
|
||||||
*aDidMerge = PR_TRUE;
|
*aDidMerge = PR_TRUE;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,12 +35,19 @@ class nsIDOMCharacterData;
|
|||||||
class InsertTextTxn : public EditTxn
|
class InsertTextTxn : public EditTxn
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
InsertTextTxn(nsEditor *aEditor,
|
InsertTextTxn(nsEditor *aEditor,
|
||||||
nsIDOMCharacterData *aElement,
|
nsIDOMCharacterData *aElement,
|
||||||
PRUint32 aOffset,
|
PRUint32 aOffset,
|
||||||
const nsString& aStringToInsert);
|
const nsString& aStringToInsert);
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
// default ctor so that nsCOMPtr is happy
|
||||||
|
InsertTextTxn() : EditTxn(nsnull) {}
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
virtual nsresult Do(void);
|
virtual nsresult Do(void);
|
||||||
|
|
||||||
virtual nsresult Undo(void);
|
virtual nsresult Undo(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user