nsRect rect; GetAbsoluteFrameRect(aFrame, rect);
PRBool calcHeight = PR_FALSE;  if (aFrame) { calcHeight = PR_TRUE;  nsCOMPtr<nsIDocument> document; mContent->GetDocument(*getter_AddRefs(document));
nsComputedDOMStyle::GetHeight(nsIFrame *aFrame,                             nsIDOMCSSPrimitiveValue*& aValue){  nsROCSSPrimitiveValue *val = GetROCSSPrimitiveValue();  NS_ENSURE_TRUE(val, NS_ERROR_OUT_OF_MEMORY);  nsRect rect;  GetAbsoluteFrameRect(aFrame, rect);  val->SetTwips(rect.height);  return val->QueryInterface(NS_GET_IID(nsIDOMCSSPrimitiveValue),                             (void **)&aValue);}