if(LO_CheckForContentHiding(state #ifdef DOM , context #endif ))
if(LO_CheckForContentHiding(state))
lo_SetStyleSheetProperties(MWContext *context,                            StyleStruct *style_struct,                            PA_Tag *tag){	int32 doc_id;	lo_TopState *top_state;	lo_DocState *state;	if(tag->type == P_TEXT || !style_struct)		return;		/* get a fresh state since it may get free'd by	 * previous table code	 */	doc_id = XP_DOCID(context);	top_state = lo_FetchTopState(doc_id);	state = lo_TopSubState(top_state);	if(!state)		return;	/* ignore uknown tags unless we are in the relayout phase */	if(tag->type == P_UNKNOWN && state->in_relayout == FALSE)		return;	/* if we are hiding content skip applying styles */	if(state->hide_content)		return;	/* optimization!	 * 	 * if there we know that there are no styles for this tag	 * return immediately	 */	if(STYLESTRUCT_Count(style_struct) == 0)		return;	/* check for display: none 	 * if set then we are ignoring tags and text for the duration	 * of this tag span 	 */	if(LO_CheckForContentHiding(state#ifdef DOM                                , context#endif                                ))	{		state->hide_content = TRUE;		STYLESTRUCT_SetString(style_struct, 								  STYLE_NEED_TO_POP_CONTENT_HIDING, 								  "1", 								  0);		/* don't apply any more properties */		return;	}		lo_SetStyleSheetFontProperties(context, state, style_struct, tag, TRUE);    /* if we get in here and the tag->type is UKNOWN then this must	 * be a dummy tag inserted for the sake of table relayout passes	 * don't open layers in this case because we would be creating     * two layers instead of just the one.	 */	if(tag->type != P_UNKNOWN)    	lo_SetStyleSheetLayerProperties(context, state, style_struct, tag);	lo_SetStyleSheetBoxProperties (context, state, style_struct, tag);	/* BoxProperties may force a table.  If that is the case then	 * we need to get the new state	 */	doc_id = XP_DOCID(context);	top_state = lo_FetchTopState(doc_id);	state = lo_TopSubState(top_state);	if(!state)		return;	lo_SetStyleSheetRandomProperties(context, state, style_struct, tag);}