mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 04:42:44 +00:00 
			
		
		
		
	Browser+LibWeb: Add an Element size preview widget to inspector
This Adds an element size preview widget to the inspector widget in a new tab. This functions similar to chrome and firefox and shows the margin, border, padding, and content size of the selected element in the inspector. The colors for the size preview widget are taken from the chrome browser.
This commit is contained in:
		
							parent
							
								
									3b22fd9a9f
								
							
						
					
					
						commit
						39a5076f40
					
				
					 14 changed files with 234 additions and 18 deletions
				
			
		|  | @ -146,9 +146,9 @@ void WebContentClient::did_get_dom_tree(String const& dom_tree) | |||
|     m_view.notify_server_did_get_dom_tree(dom_tree); | ||||
| } | ||||
| 
 | ||||
| void WebContentClient::did_get_dom_node_properties(i32 node_id, String const& specified_style, String const& computed_style, String const& custom_properties) | ||||
| void WebContentClient::did_get_dom_node_properties(i32 node_id, String const& specified_style, String const& computed_style, String const& custom_properties, String const& node_box_sizing) | ||||
| { | ||||
|     m_view.notify_server_did_get_dom_node_properties(node_id, specified_style, computed_style, custom_properties); | ||||
|     m_view.notify_server_did_get_dom_node_properties(node_id, specified_style, computed_style, custom_properties, node_box_sizing); | ||||
| } | ||||
| 
 | ||||
| void WebContentClient::did_output_js_console_message(i32 message_index) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Vrins
						Vrins