mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
CanGc changes from fontfaceset.rs (#33920)
* CanGc changes from fontfaceset.rs Signed-off-by: L Ashwin B <lashwinib@gmail.com> * Update components/script/dom/bindings/codegen/Bindings.conf Co-authored-by: Josh Matthews <josh@joshmatthews.net> Signed-off-by: chickenleaf <lashwinib@gmail.com> --------- Signed-off-by: L Ashwin B <lashwinib@gmail.com> Signed-off-by: chickenleaf <lashwinib@gmail.com> Co-authored-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
66695d2f7e
commit
9acb25521e
32 changed files with 425 additions and 274 deletions
|
@ -354,7 +354,7 @@ pub fn handle_get_layout(
|
|||
position: String::from(computed_style.Position()),
|
||||
z_index: String::from(computed_style.ZIndex()),
|
||||
box_sizing: String::from(computed_style.BoxSizing()),
|
||||
auto_margins: determine_auto_margins(&node),
|
||||
auto_margins: determine_auto_margins(&node, can_gc),
|
||||
margin_top: String::from(computed_style.MarginTop()),
|
||||
margin_right: String::from(computed_style.MarginRight()),
|
||||
margin_bottom: String::from(computed_style.MarginBottom()),
|
||||
|
@ -373,8 +373,8 @@ pub fn handle_get_layout(
|
|||
.unwrap();
|
||||
}
|
||||
|
||||
fn determine_auto_margins(node: &Node) -> AutoMargins {
|
||||
let style = node.style().unwrap();
|
||||
fn determine_auto_margins(node: &Node, can_gc: CanGc) -> AutoMargins {
|
||||
let style = node.style(can_gc).unwrap();
|
||||
let margin = style.get_margin();
|
||||
AutoMargins {
|
||||
top: margin.margin_top.is_auto(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue