mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Store resolved font style in canvas context state
This commit is contained in:
parent
5493424d9a
commit
15fd256302
11 changed files with 81 additions and 49 deletions
|
@ -914,7 +914,9 @@ impl LayoutThread {
|
|||
&QueryMsg::ResolvedStyleQuery(_, _, _) => {
|
||||
rw_data.resolved_style_response = String::new();
|
||||
},
|
||||
&QueryMsg::ParseFontQuery(_, _, _) => unimplemented!(),
|
||||
&QueryMsg::ResolvedFontStyleQuery(_, _, _) => {
|
||||
rw_data.resolved_font_style_response = None;
|
||||
},
|
||||
&QueryMsg::OffsetParentQuery(_) => {
|
||||
rw_data.offset_parent_response = OffsetParentResponse::empty();
|
||||
},
|
||||
|
@ -1207,7 +1209,7 @@ impl LayoutThread {
|
|||
fragment_tree,
|
||||
);
|
||||
},
|
||||
&QueryMsg::ParseFontQuery(_, _, _) => unimplemented!(),
|
||||
&QueryMsg::ResolvedFontStyleQuery(_, _, _) => unimplemented!(),
|
||||
&QueryMsg::OffsetParentQuery(node) => {
|
||||
rw_data.offset_parent_response = process_offset_parent_query(node);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue