Fix 32199 (visibility:collapse is not being interpreted as hidden on block and inline level elements) and parts of 21701 (misuse of style attr mVisible).
This commit is contained in:
@@ -306,7 +306,7 @@ nsGfxCheckboxControlFrame::Paint(nsIPresContext* aPresContext,
|
||||
{
|
||||
const nsStyleDisplay* disp = (const nsStyleDisplay*)
|
||||
mStyleContext->GetStyleData(eStyleStruct_Display);
|
||||
if (disp->mVisible != NS_STYLE_VISIBILITY_VISIBLE)
|
||||
if (!disp->IsVisible())
|
||||
return NS_OK;
|
||||
|
||||
// Paint the background
|
||||
|
||||
Reference in New Issue
Block a user