nsROCSSPrimitiveValue *val = GetROCSSPrimitiveValue(); NS_ENSURE_TRUE(val, NS_ERROR_OUT_OF_MEMORY);  nsRect rect; GetAbsoluteFrameRect(aFrame, rect);  val->SetTwips(rect.x + rect.width);  return val->QueryInterface(NS_GET_IID(nsIDOMCSSPrimitiveValue), (void **)&aValue);
return GetOffsetWidthFor(NS_SIDE_RIGHT, aFrame, aValue);
nsComputedDOMStyle::GetRight(nsIFrame *aFrame,                             nsIDOMCSSPrimitiveValue*& aValue){  nsROCSSPrimitiveValue *val = GetROCSSPrimitiveValue();  NS_ENSURE_TRUE(val, NS_ERROR_OUT_OF_MEMORY);  nsRect rect;  GetAbsoluteFrameRect(aFrame, rect);  val->SetTwips(rect.x + rect.width);  return val->QueryInterface(NS_GET_IID(nsIDOMCSSPrimitiveValue),                             (void **)&aValue);}