mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:12:44 +00:00 
			
		
		
		
	 fdbad6284c
			
		
	
	
		fdbad6284c
		
	
	
	
	
		
			
			Just in time for Serenity's 1st birthday, here is the <blink> element! This patch adds a bunch of different mechanisms to enable partial repaints of the layout tree (LayoutNode::set_needs_display())) It also adds LayoutNode::is_visible(), which can be toggled to prevent a LayoutNode from rendering anything (it still takes up space though.)
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			287 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			287 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <LibHTML/DOM/HTMLElement.h>
 | |
| 
 | |
| class CTimer;
 | |
| 
 | |
| class HTMLBlinkElement : public HTMLElement {
 | |
| public:
 | |
|     HTMLBlinkElement(Document&, const String& tag_name);
 | |
|     virtual ~HTMLBlinkElement() override;
 | |
| 
 | |
| private:
 | |
|     void blink();
 | |
| 
 | |
|     NonnullRefPtr<CTimer> m_timer;
 | |
| };
 |