Pass in opactity to view manager in case it changed

This commit is contained in:
kipp%netscape.com 1998-10-28 02:05:05 +00:00
parent 1785db3870
commit 1fca69289e
3 changed files with 9 additions and 0 deletions

View File

@ -1875,6 +1875,9 @@ ApplyRenderingChangeToTree(nsIPresContext* aPresContext,
if (nsnull == viewManager) {
view->GetViewManager(viewManager);
}
const nsStyleColor* color;
aFrame->GetStyleData(eStyleStruct_Color, (const nsStyleStruct*&) color);
viewManager->SetViewOpacity(view, color->mOpacity);
viewManager->UpdateView(view, r, NS_VMREFRESH_NO_SYNC);
aFrame->GetNextInFlow(aFrame);

View File

@ -1875,6 +1875,9 @@ ApplyRenderingChangeToTree(nsIPresContext* aPresContext,
if (nsnull == viewManager) {
view->GetViewManager(viewManager);
}
const nsStyleColor* color;
aFrame->GetStyleData(eStyleStruct_Color, (const nsStyleStruct*&) color);
viewManager->SetViewOpacity(view, color->mOpacity);
viewManager->UpdateView(view, r, NS_VMREFRESH_NO_SYNC);
aFrame->GetNextInFlow(aFrame);

View File

@ -1875,6 +1875,9 @@ ApplyRenderingChangeToTree(nsIPresContext* aPresContext,
if (nsnull == viewManager) {
view->GetViewManager(viewManager);
}
const nsStyleColor* color;
aFrame->GetStyleData(eStyleStruct_Color, (const nsStyleStruct*&) color);
viewManager->SetViewOpacity(view, color->mOpacity);
viewManager->UpdateView(view, r, NS_VMREFRESH_NO_SYNC);
aFrame->GetNextInFlow(aFrame);