@@ -75,9 +75,9 @@ use layout::incremental::{LayoutDamageComputation, RelayoutMode, SpecialRestyleD
7575use layout:: layout_debug;
7676use layout:: parallel;
7777use layout:: query:: { LayoutRPCImpl , LayoutThreadData , process_content_box_request, process_content_boxes_request} ;
78- use layout:: query:: { process_margin_style_query, process_node_overflow_request, process_resolved_style_request} ;
7978use layout:: query:: { process_node_geometry_request, process_node_scroll_area_request} ;
80- use layout:: query:: { process_node_scroll_root_id_request, process_offset_parent_query} ;
79+ use layout:: query:: { process_node_scroll_root_id_request, process_offset_parent_query, process_resolved_style_request} ;
80+ use layout:: query:: process_style_query;
8181use layout:: sequential;
8282use layout:: traversal:: { ComputeStackingRelativePositions , PreorderFlowTraversal , RecalcStyleAndConstructFlows } ;
8383use layout:: wrapper:: LayoutNodeLayoutData ;
@@ -94,7 +94,7 @@ use profile_traits::time::{self, TimerMetadata, profile};
9494use profile_traits:: time:: { TimerMetadataFrameType , TimerMetadataReflowType } ;
9595use script_layout_interface:: message:: { Msg , NewLayoutThreadInfo , NodesFromPointQueryType , Reflow } ;
9696use script_layout_interface:: message:: { ReflowComplete , ReflowGoal , ScriptReflow } ;
97- use script_layout_interface:: rpc:: { LayoutRPC , MarginStyleResponse , NodeOverflowResponse , OffsetParentResponse } ;
97+ use script_layout_interface:: rpc:: { LayoutRPC , StyleResponse , OffsetParentResponse } ;
9898use script_layout_interface:: rpc:: TextIndexResponse ;
9999use script_layout_interface:: wrapper_traits:: LayoutNode ;
100100use script_traits:: { ConstellationControlMsg , LayoutControlMsg , LayoutMsg as ConstellationMsg } ;
@@ -519,10 +519,9 @@ impl LayoutThread {
519519 client_rect_response : Rect :: zero ( ) ,
520520 scroll_root_id_response : None ,
521521 scroll_area_response : Rect :: zero ( ) ,
522- overflow_response : NodeOverflowResponse ( None ) ,
523522 resolved_style_response : String :: new ( ) ,
524523 offset_parent_response : OffsetParentResponse :: empty ( ) ,
525- margin_style_response : MarginStyleResponse :: empty ( ) ,
524+ style_response : StyleResponse ( None ) ,
526525 scroll_offsets : HashMap :: new ( ) ,
527526 text_index_response : TextIndexResponse ( None ) ,
528527 nodes_from_point_response : vec ! [ ] ,
@@ -1092,9 +1091,6 @@ impl LayoutThread {
10921091 ReflowGoal :: NodeScrollGeometryQuery ( _) => {
10931092 rw_data. scroll_area_response = Rect :: zero ( ) ;
10941093 } ,
1095- ReflowGoal :: NodeOverflowQuery ( _) => {
1096- rw_data. overflow_response = NodeOverflowResponse ( None ) ;
1097- } ,
10981094 ReflowGoal :: NodeScrollRootIdQuery ( _) => {
10991095 rw_data. scroll_root_id_response = None ;
11001096 } ,
@@ -1104,8 +1100,8 @@ impl LayoutThread {
11041100 ReflowGoal :: OffsetParentQuery ( _) => {
11051101 rw_data. offset_parent_response = OffsetParentResponse :: empty ( ) ;
11061102 } ,
1107- ReflowGoal :: MarginStyleQuery ( _) => {
1108- rw_data. margin_style_response = MarginStyleResponse :: empty ( ) ;
1103+ ReflowGoal :: StyleQuery ( _) => {
1104+ rw_data. style_response = StyleResponse ( None ) ;
11091105 } ,
11101106 ReflowGoal :: TextIndexQuery ( ..) => {
11111107 rw_data. text_index_response = TextIndexResponse ( None ) ;
@@ -1379,10 +1375,6 @@ impl LayoutThread {
13791375 let node = unsafe { ServoLayoutNode :: new ( & node) } ;
13801376 rw_data. scroll_area_response = process_node_scroll_area_request ( node, root_flow) ;
13811377 } ,
1382- ReflowGoal :: NodeOverflowQuery ( node) => {
1383- let node = unsafe { ServoLayoutNode :: new ( & node) } ;
1384- rw_data. overflow_response = process_node_overflow_request ( node) ;
1385- } ,
13861378 ReflowGoal :: NodeScrollRootIdQuery ( node) => {
13871379 let node = unsafe { ServoLayoutNode :: new ( & node) } ;
13881380 rw_data. scroll_root_id_response = Some ( process_node_scroll_root_id_request ( self . id ,
@@ -1401,9 +1393,9 @@ impl LayoutThread {
14011393 let node = unsafe { ServoLayoutNode :: new ( & node) } ;
14021394 rw_data. offset_parent_response = process_offset_parent_query ( node, root_flow) ;
14031395 } ,
1404- ReflowGoal :: MarginStyleQuery ( node) => {
1396+ ReflowGoal :: StyleQuery ( node) => {
14051397 let node = unsafe { ServoLayoutNode :: new ( & node) } ;
1406- rw_data. margin_style_response = process_margin_style_query ( node) ;
1398+ rw_data. style_response = process_style_query ( node) ;
14071399 } ,
14081400 ReflowGoal :: NodesFromPointQuery ( client_point, ref reflow_goal) => {
14091401 let mut flags = match reflow_goal {
0 commit comments