Logo Search packages:      
Sourcecode: xulrunner version File versions

nsTextFragment & nsTextFragment::operator= ( const nsTextFragment aOther  ) 

Change the contents of this fragment to be a copy of the the argument fragment.

Definition at line 98 of file nsTextFragment.cpp.

References Get1b(), Get2b(), GetLength(), Is2b(), mState, and SetTo().

  if (aOther.Is2b()) {
    SetTo(aOther.Get2b(), aOther.GetLength());
  } else {
    SetTo(aOther.Get1b(), aOther.GetLength());

  if (aOther.mState.mIsBidi) {
    // Carry over BIDI state from aOther
    mState.mIsBidi = PR_TRUE;

  return *this;

Generated by  Doxygen 1.6.0   Back to index