if (nsnull == mInner.mInlineStyleRule) {
nsCOMPtr<nsIContent> parentElement; GetParent(*getter_AddRefs(parentElement)); if (parentElement) { nsCOMPtr<nsIAtom> tag; if (NS_SUCCEEDED(parentElement->GetTag(*getter_AddRefs(tag))) && tag){ if (tag.get() == nsHTMLAtoms::html) {  useBodyFixupRule = PR_TRUE; } } }  if (nsnull == mInner.mInlineStyleRule && useBodyFixupRule) {
nsHTMLBodyElement::GetInlineStyleRules(nsISupportsArray* aRules){  mInner.GetInlineStyleRules(aRules);  if (nsnull == mInner.mInlineStyleRule) {    nsIHTMLCSSStyleSheet*  sheet = nsnull;    if (nsnull != mInner.mDocument) {  // find style sheet      sheet = GetInlineStyleSheet(mInner.mDocument);    }    mInner.mInlineStyleRule = new BodyFixupRule(this, sheet);    NS_IF_RELEASE(sheet);    NS_IF_ADDREF(mInner.mInlineStyleRule);  }  if (aRules && mInner.mInlineStyleRule) {    aRules->AppendElement(mInner.mInlineStyleRule);  }  return NS_OK;}