Bug 333942. Move GetParent to nsINode and add GetNodeParent there too. There is a risk that this'll add some binary size, but hopefully not too much. r/sr=bz

git-svn-id: svn://10.0.0.236/trunk@194451 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cvshook%sicking.cc
2006-04-15 05:09:16 +00:00
parent f23330b0fd
commit 5d88584166
10 changed files with 88 additions and 84 deletions

View File

@@ -117,7 +117,9 @@ nsTextFragment::ReleaseText()
m1b = nsnull;
// Set mState.mIs2b, mState.mInHeap, and mState.mLength = 0 with mAllBits;
PRBool tmp = mState.mExtraBit;
mAllBits = 0;
mState.mExtraBit = tmp;
}
nsTextFragment&
@@ -136,7 +138,9 @@ nsTextFragment::operator=(const nsTextFragment& aOther)
}
if (m1b) {
PRBool tmp = mState.mExtraBit;
mAllBits = aOther.mAllBits;
mState.mExtraBit = tmp;
}
}