mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:32:44 +00:00 
			
		
		
		
	LibHTML: Push the visible viewport rect from HtmlView to Frame
This will allow various mechanisms and optimizations based on the currently visible viewport rect.
This commit is contained in:
		
							parent
							
								
									85ac9705ba
								
							
						
					
					
						commit
						7e068565bc
					
				
					 4 changed files with 20 additions and 0 deletions
				
			
		|  | @ -30,10 +30,14 @@ public: | |||
|     void set_needs_display(const Rect&); | ||||
|     Function<void(const Rect&)> on_set_needs_display; | ||||
| 
 | ||||
|     void set_viewport_rect(const Rect&); | ||||
|     Rect viewport_rect() const { return m_viewport_rect; } | ||||
| 
 | ||||
| private: | ||||
|     explicit Frame(HtmlView&); | ||||
| 
 | ||||
|     WeakPtr<HtmlView> m_html_view; | ||||
|     RefPtr<Document> m_document; | ||||
|     Size m_size; | ||||
|     Rect m_viewport_rect; | ||||
| }; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling