STDMETHODIMP ia2AccessibleComponent::get_foreground(IA2Color* aForeground) { A11Y_TRYBLOCK_BEGIN AccessibleWrap* acc = static_cast<AccessibleWrap*>(this); if (acc->IsDefunct()) return CO_E_OBJNOTCONNECTED; nsIFrame* frame = acc->GetFrame(); if (frame) *aForeground = frame->StyleColor()->mColor; return S_OK; A11Y_TRYBLOCK_END }