diff --git a/components/style/build_gecko.rs b/components/style/build_gecko.rs index 671314ee894..deffa87ce96 100644 --- a/components/style/build_gecko.rs +++ b/components/style/build_gecko.rs @@ -401,6 +401,7 @@ mod bindings { "nsStyleFont", "nsStyleGradient", "nsStyleGradientStop", + "nsStyleGridTemplate", "nsStyleImage", "nsStyleImageLayers", "nsStyleList", @@ -659,6 +660,7 @@ mod bindings { "nsStyleFont", "nsStyleGradient", "nsStyleGradientStop", + "nsStyleGridTemplate", "nsStyleImage", "nsStyleImageLayers", "nsStyleImageLayers_Layer", diff --git a/components/style/gecko_bindings/bindings.rs b/components/style/gecko_bindings/bindings.rs index 8ced3ca4c35..2420617ab34 100644 --- a/components/style/gecko_bindings/bindings.rs +++ b/components/style/gecko_bindings/bindings.rs @@ -98,6 +98,9 @@ unsafe impl Sync for nsStyleGradient {} use gecko_bindings::structs::nsStyleGradientStop; unsafe impl Send for nsStyleGradientStop {} unsafe impl Sync for nsStyleGradientStop {} +use gecko_bindings::structs::nsStyleGridTemplate; +unsafe impl Send for nsStyleGridTemplate {} +unsafe impl Sync for nsStyleGridTemplate {} use gecko_bindings::structs::nsStyleImage; unsafe impl Send for nsStyleImage {} unsafe impl Sync for nsStyleImage {} @@ -779,6 +782,12 @@ extern "C" { extern "C" { pub fn Gecko_DropElementSnapshot(snapshot: ServoElementSnapshotOwned); } +extern "C" { + pub fn Gecko_CopyStyleGridTemplateValues(grid_template: + *mut nsStyleGridTemplate, + other: + *const nsStyleGridTemplate); +} extern "C" { pub fn Gecko_ClearAndResizeStyleContents(content: *mut nsStyleContent, how_many: u32);