rv = GenerateStateKey(content, aID, stateKey);
rv = nsContentUtils::GenerateStateKey(content, aID, stateKey);
FrameManager::CaptureFrameStateFor(nsIPresContext* aPresContext,                                   nsIFrame* aFrame,                                   nsILayoutHistoryState* aState,                                   nsIStatefulFrame::SpecialStateID aID){  NS_ENSURE_TRUE(mPresShell && aFrame && aState, NS_ERROR_FAILURE);  // Only capture state for stateful frames  nsIStatefulFrame* statefulFrame = nsnull;  aFrame->QueryInterface(NS_GET_IID(nsIStatefulFrame), (void**) &statefulFrame);  if (!statefulFrame) {    return NS_OK;  }  // Capture the state, exit early if we get null (nothing to save)  nsCOMPtr<nsIPresState> frameState;  nsresult rv = NS_OK;  rv = statefulFrame->SaveState(aPresContext, getter_AddRefs(frameState));  if (!frameState) {    return NS_OK;  }  // Generate the hash key to store the state under  // Exit early if we get empty key  nsCOMPtr<nsIContent> content;  rv = aFrame->GetContent(getter_AddRefs(content));  nsCAutoString stateKey;  rv = GenerateStateKey(content, aID, stateKey);  if(NS_FAILED(rv) || stateKey.IsEmpty()) {    return rv;  }  // Store the state  return aState->AddState(stateKey, frameState);}