mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-31 05:10:57 +00:00 
			
		
		
		
	LibHTML+Browser: Show target URL of hovered links in Browser statusbar
HtmlView will now invoke the on_link_hover hook when the cursor enters or leaves a DOM node that has an enclosing link element. This patch also updates the meaning of Node::enclosing_link_element() to find the nearest HTMLAnchorElementAncestor *with an href attribute*.
This commit is contained in:
		
							parent
							
								
									73af2f8d02
								
							
						
					
					
						commit
						884ae80699
					
				
				
				Notes:
				
					sideshowbarker
				
				2024-07-19 11:37:36 +09:00 
				
			
			Author: https://github.com/awesomekling
Commit: 884ae80699
			
					 6 changed files with 31 additions and 4 deletions
				
			
		|  | @ -29,6 +29,7 @@ public: | |||
|     void set_should_show_line_box_borders(bool value) { m_should_show_line_box_borders = value; } | ||||
| 
 | ||||
|     Function<void(const String&)> on_link_click; | ||||
|     Function<void(const String&)> on_link_hover; | ||||
|     Function<void(const String&)> on_title_change; | ||||
|     Function<void(const URL&)> on_load_start; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling