mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Remove pointless join_layout calls.
Code on the script thread can only observe self.layout_join_port being Some() between the time it is set in force_reflow, and the join_layout call later in that function, and no significant code is called in that code. As join_layout does nothing when called if self.layout_join_port is None, these two calls are useless.
This commit is contained in:
parent
04c574967f
commit
af448374f9
1 changed files with 0 additions and 2 deletions
|
@ -1009,7 +1009,6 @@ impl Window {
|
|||
self.reflow(ReflowGoal::ForScriptQuery,
|
||||
ReflowQueryType::ContentBoxQuery(content_box_request),
|
||||
ReflowReason::Query);
|
||||
self.join_layout(); //FIXME: is this necessary, or is layout_rpc's mutex good enough?
|
||||
let ContentBoxResponse(rect) = self.layout_rpc.content_box();
|
||||
rect
|
||||
}
|
||||
|
@ -1018,7 +1017,6 @@ impl Window {
|
|||
self.reflow(ReflowGoal::ForScriptQuery,
|
||||
ReflowQueryType::ContentBoxesQuery(content_boxes_request),
|
||||
ReflowReason::Query);
|
||||
self.join_layout(); //FIXME: is this necessary, or is layout_rpc's mutex good enough?
|
||||
let ContentBoxesResponse(rects) = self.layout_rpc.content_boxes();
|
||||
rects
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue