mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
layout: Expose whether the element was rendered in content_box_query to script.
But don't change the API yet.
This commit is contained in:
parent
8159dac506
commit
485fe874e8
5 changed files with 13 additions and 12 deletions
|
@ -464,7 +464,7 @@ impl LayoutThread {
|
|||
constellation_chan: constellation_chan,
|
||||
display_list: None,
|
||||
stylist: stylist,
|
||||
content_box_response: Rect::zero(),
|
||||
content_box_response: None,
|
||||
content_boxes_response: Vec::new(),
|
||||
client_rect_response: Rect::zero(),
|
||||
hit_test_response: (None, false),
|
||||
|
@ -1012,7 +1012,7 @@ impl LayoutThread {
|
|||
debug!("layout: No root node: bailing");
|
||||
match data.query_type {
|
||||
ReflowQueryType::ContentBoxQuery(_) => {
|
||||
rw_data.content_box_response = Rect::zero();
|
||||
rw_data.content_box_response = None;
|
||||
},
|
||||
ReflowQueryType::ContentBoxesQuery(_) => {
|
||||
rw_data.content_boxes_response = Vec::new();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue