initial support for opacity in html 4 button

This commit is contained in:
karnaze@netscape.com
1998-10-30 19:20:39 +00:00
parent 3eb522e1f4
commit ac54fee897
2 changed files with 10 additions and 0 deletions

View File

@@ -548,6 +548,11 @@ nsHTMLButtonControlFrame::Init(nsIPresContext& aPresContext, nsIFrame* aChildLis
result = view->Init(viewMan, boundBox, parView, nsnull);
viewMan->InsertChild(parView, view, 0);
SetView(view);
const nsStyleColor* color = (const nsStyleColor*) mStyleContext->GetStyleData(eStyleStruct_Color);
// set the opacity
viewMan->SetViewOpacity(view, color->mOpacity);
NS_RELEASE(viewMan);
}