if (aFrame && !mPseudo) { aStyleStruct = aFrame->GetStyleData(aID); } else if (mStyleContextHolder) { aStyleStruct = mStyleContextHolder->GetStyleData(aID); } else { nsCOMPtr<nsIPresShell> presShell = do_QueryReferent(mPresShellWeak);
if(aFrame && !mPseudo) { aFrame->GetStyleData(aID, aStyleStruct); } else { nsCOMPtr<nsIPresShell> presShell=do_QueryReferent(mPresShellWeak);
nsComputedDOMStyle::GetStyleData(nsStyleStructID aID,                                 const nsStyleStruct*& aStyleStruct,                                 nsIFrame* aFrame){  if (aFrame && !mPseudo) {    aStyleStruct = aFrame->GetStyleData(aID);  } else if (mStyleContextHolder) {    aStyleStruct = mStyleContextHolder->GetStyleData(aID);      } else {    nsCOMPtr<nsIPresShell> presShell = do_QueryReferent(mPresShellWeak);    NS_ENSURE_TRUE(presShell, NS_ERROR_FAILURE);    mStyleContextHolder =      nsInspectorCSSUtils::GetStyleContextForContent(mContent,                                                     mPseudo,                                                     presShell);    if (mStyleContextHolder) {      aStyleStruct = mStyleContextHolder->GetStyleData(aID);    }  }  NS_ASSERTION(aStyleStruct, "Failed to get a style struct");  return NS_OK;}