nsCOMPtr<nsIStyleContext> pseudoStyleContext;
nsRefPtr<nsStyleContext> pseudoStyleContext;
HasPseudoStyle(nsIPresContext* aPresContext,               nsIContent* aContent,               nsIStyleContext* aStyleContext,               nsIAtom* aPseudoElement){  nsCOMPtr<nsIStyleContext> pseudoStyleContext;  if (aContent) {    aPresContext->ProbePseudoStyleContextFor(aContent,                                             aPseudoElement,                                             aStyleContext,                                             getter_AddRefs(pseudoStyleContext));  }  return pseudoStyleContext != nsnull;}