diff --git a/components/style/build_gecko.rs b/components/style/build_gecko.rs index ff9f9820f91..6f06ad44d98 100644 --- a/components/style/build_gecko.rs +++ b/components/style/build_gecko.rs @@ -400,6 +400,7 @@ mod bindings { "nsStyleFont", "nsStyleGradient", "nsStyleGradientStop", + "nsStyleGridTemplate", "nsStyleImage", "nsStyleImageLayers", "nsStyleList", @@ -657,6 +658,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 90f5c7c38b9..5ef68562b3d 100644 --- a/components/style/gecko_bindings/bindings.rs +++ b/components/style/gecko_bindings/bindings.rs @@ -97,6 +97,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 {} @@ -778,6 +781,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);