if (mDocument) { mDocument->RemoveObserver(this); mDocument = nsnull; }
if (mScrollEventQueue) { mScrollEventQueue->RevokeEvents(this); }
nsGfxScrollFrameInner::~nsGfxScrollFrameInner(){    if (mDocument) {        mDocument->RemoveObserver(this);        mDocument = nsnull;    }}