if (hs && vs) { if (!mDebugInner) { mDebugInner = new nsBoxDebugInner(mOuter); } mDebugInner->mHorizontalDebugStyle = hs; mDebugInner->mVerticalDebugStyle = vs; aPresContext->GetScaledPixelsToTwips(&mDebugInner->mP2t); } else { if (mDebugInner) { delete mDebugInner; mDebugInner = nsnull; } }
mDebugInner->mHorizontalDebugStyle = hs; mDebugInner->mVerticalDebugStyle = vs; aPresContext->GetScaledPixelsToTwips(&mDebugInner->mP2t);
nsBoxFrameInner::UpdatePseudoElements(nsIPresContext* aPresContext) {    nsCOMPtr<nsIStyleContext> hs;    nsCOMPtr<nsIStyleContext> vs;    nsCOMPtr<nsIContent> content;    GetContentOf(mOuter, getter_AddRefs(content));	nsCOMPtr<nsIAtom> atom ( getter_AddRefs(NS_NewAtom(":-moz-horizontal-box-debug")) );	aPresContext->ProbePseudoStyleContextFor(content, atom, mOuter->mStyleContext,										  PR_FALSE,										  getter_AddRefs(hs));  	atom = getter_AddRefs(NS_NewAtom(":-moz-vertical-box-debug"));	aPresContext->ProbePseudoStyleContextFor(content, atom, mOuter->mStyleContext,										  PR_FALSE,										  getter_AddRefs(vs));    if (hs && vs) {        if (!mDebugInner) {            mDebugInner = new nsBoxDebugInner(mOuter);        }        mDebugInner->mHorizontalDebugStyle = hs;        mDebugInner->mVerticalDebugStyle = vs;        aPresContext->GetScaledPixelsToTwips(&mDebugInner->mP2t);    } else {        if (mDebugInner)         {            delete mDebugInner;            mDebugInner = nsnull;        }    }}