mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 05:10:49 +00:00
Pass in opactity to view manager in case it changed
This commit is contained in:
parent
1785db3870
commit
1fca69289e
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user