static void GetPrimaryPresShell(nsIFrame* aFrame, nsIPresShell** aResult)
GetPrimaryPresShell(nsIFrame* aFrame)
static void GetPrimaryPresShell(nsIFrame* aFrame, nsIPresShell** aResult){  *aResult = nsnull;  if (!aFrame)    return;   nsIDocument* doc = aFrame->GetContent()->GetDocument();  if (doc)    doc->GetShellAt(0, aResult); // Addref happens here.}