Bug 72230 (fixing side affect of its fix) WebBrowser window was painting black as background on Mac. r=adamlock, sr=blizzard.
git-svn-id: svn://10.0.0.236/trunk@93934 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
8ed00123b0
commit
7facbacfde
@ -788,10 +788,6 @@ NS_IMETHODIMP nsWebBrowser::Create()
|
||||
info.mColor = &mBackgroundColor;
|
||||
mDC->GetSystemAttribute(eSystemAttr_Color_WindowBackground, &info);
|
||||
|
||||
// set the foreground color of our rendering context so we don't
|
||||
// have to do it later.
|
||||
mRC->SetColor(mBackgroundColor);
|
||||
|
||||
nsCOMPtr<nsIDocShell> docShell(do_CreateInstance(kWebShellCID));
|
||||
NS_ENSURE_SUCCESS(SetDocShell(docShell), NS_ERROR_FAILURE);
|
||||
|
||||
@ -1309,6 +1305,7 @@ NS_IMETHODIMP nsWebBrowser::EnsureDocShellTreeOwner()
|
||||
|
||||
NS_IMETHODIMP nsWebBrowser::FillBackground(const nsRect &aRect)
|
||||
{
|
||||
mRC->SetColor(mBackgroundColor);
|
||||
mRC->FillRect(aRect);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user