mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-27 05:00:13 -10:00
initial support for opacity in html 4 button
This commit is contained in:
1 parent
3eb522e1f4
commit
ac54fee897
2 files changed
+10
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user