mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-22 12:04:38 +00:00
Fix assertions that I caused with my previous checkin. sr=hyatt
This commit is contained in:
parent
0183edd75f
commit
5482728d2b
@ -300,6 +300,12 @@ nsresult
|
||||
nsXBLContentSink::FlushText(PRBool aCreateTextNode,
|
||||
PRBool* aDidFlush)
|
||||
{
|
||||
if (mTextLength == 0) {
|
||||
if (aDidFlush)
|
||||
*aDidFlush = PR_FALSE;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
const nsASingleFragmentString& text = Substring(mText, mText+mTextLength);
|
||||
if (mState == eXBL_InHandlers) {
|
||||
// Get the text and add it to the event handler.
|
||||
|
Loading…
x
Reference in New Issue
Block a user