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