bool WebFrame::getDocumentBackgroundColor(double* red, double* green, double* blue, double* alpha) { if (!m_coreFrame) return false; FrameView* view = m_coreFrame->view(); if (!view) return false; Color bgColor = view->documentBackgroundColor(); if (!bgColor.isValid()) return false; bgColor.getRGBA(*red, *green, *blue, *alpha); return true; }