<commit_before>package openfl._internal.renderer.dom;


import lime.math.color.ARGB;
import openfl.display.DisplayObject;

@:access(openfl.display.DisplayObject)
@:access(openfl.geom.Matrix)


class DOMDisplayObject {
	
	
	public static inline function render (displayObject:DisplayObject, renderSession:RenderSession):Void {
		
		#if (js && html5)
		if (displayObject.opaqueBackground == null && displayObject.__graphics == null) return;
		if (!displayObject.__renderable || displayObject.__worldAlpha <= 0) return;
		
		if (displayObject.opaqueBackground != null && displayObject.width > 0 && displayObject.height > 0) {
			
			//renderSession.maskManager.pushObject (displayObject);
			
			// TODO: opaqueBackground using DIV element
			
			//renderSession.maskManager.popObject (displayObject);
			
		}
		
		if (displayObject.__graphics != null) {
			
			DOMShape.render (displayObject, renderSession);
			
		}
		#end
		
	}
	
	
}<commit_msg>Fix DOM shape worldVisible (resolve #1362)<commit_after>package openfl._internal.renderer.dom;


import lime.math.color.ARGB;
import openfl.display.DisplayObject;

@:access(openfl.display.DisplayObject)
@:access(openfl.geom.Matrix)


class DOMDisplayObject {
	
	
	public static inline function render (displayObject:DisplayObject, renderSession:RenderSession):Void {
		
		#if (js && html5)
		//if (displayObject.opaqueBackground == null && displayObject.__graphics == null) return;
		//if (!displayObject.__renderable || displayObject.__worldAlpha <= 0) return;
		
		if (displayObject.opaqueBackground != null && displayObject.width > 0 && displayObject.height > 0) {
			
			//renderSession.maskManager.pushObject (displayObject);
			
			// TODO: opaqueBackground using DIV element
			
			//renderSession.maskManager.popObject (displayObject);
			
		}
		
		if (displayObject.__graphics != null) {
			
			DOMShape.render (displayObject, renderSession);
			
		}
		#end
		
	}
	
	
}
{'fraction_non_alphanumeric': 0.11492459698387936, 'fraction_numerical': 0.0062402496099844, 'mean_word_length': 4.08994708994709, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2884192', 'n_tokens_mistral': 663, 'n_tokens_neox': 546, 'n_words': 113}