aAnchor.Assign(NS_LITERAL_STRING("bottomleft")); aAlign.Assign(NS_LITERAL_STRING("topleft"));
aAnchor.AssignLiteral("bottomleft"); aAlign.AssignLiteral("topleft");
static void ConvertPosition(nsIDOMElement* aPopupElt, nsString& aAnchor, nsString& aAlign, PRInt32& aY){  nsAutoString position;  aPopupElt->GetAttribute(NS_LITERAL_STRING("position"), position);  if (position.IsEmpty())    return;  if (position.EqualsLiteral("before_start")) {    aAnchor.Assign(NS_LITERAL_STRING("topleft"));    aAlign.Assign(NS_LITERAL_STRING("bottomleft"));  }  else if (position.EqualsLiteral("before_end")) {    aAnchor.Assign(NS_LITERAL_STRING("topright"));    aAlign.Assign(NS_LITERAL_STRING("bottomright"));  }  else if (position.EqualsLiteral("after_start")) {    aAnchor.Assign(NS_LITERAL_STRING("bottomleft"));    aAlign.Assign(NS_LITERAL_STRING("topleft"));  }  else if (position.EqualsLiteral("after_end")) {    aAnchor.Assign(NS_LITERAL_STRING("bottomright"));    aAlign.Assign(NS_LITERAL_STRING("topright"));  }  else if (position.EqualsLiteral("start_before")) {    aAnchor.Assign(NS_LITERAL_STRING("topleft"));    aAlign.Assign(NS_LITERAL_STRING("topright"));  }  else if (position.EqualsLiteral("start_after")) {    aAnchor.Assign(NS_LITERAL_STRING("bottomleft"));    aAlign.Assign(NS_LITERAL_STRING("bottomright"));  }  else if (position.EqualsLiteral("end_before")) {    aAnchor.Assign(NS_LITERAL_STRING("topright"));    aAlign.Assign(NS_LITERAL_STRING("topleft"));  }  else if (position.EqualsLiteral("end_after")) {    aAnchor.Assign(NS_LITERAL_STRING("bottomright"));    aAlign.Assign(NS_LITERAL_STRING("bottomleft"));  }  else if (position.EqualsLiteral("overlap")) {    aAnchor.Assign(NS_LITERAL_STRING("topleft"));    aAlign.Assign(NS_LITERAL_STRING("topleft"));  }  else if (position.EqualsLiteral("after_pointer"))    aY += 21;}