diff --git a/servo/components/style/gecko/generated/bindings.rs b/servo/components/style/gecko/generated/bindings.rs index 8bfbd705c24b..df7f5f2a0dba 100644 --- a/servo/components/style/gecko/generated/bindings.rs +++ b/servo/components/style/gecko/generated/bindings.rs @@ -1929,7 +1929,9 @@ extern "C" { extra_data: *mut RawGeckoURLExtraData, line_number_offset: u32, - quirks_mode: nsCompatibility) + quirks_mode: nsCompatibility, + reusable_sheets: + *mut LoaderReusableStyleSheets) -> RawServoStyleSheetContentsStrong; } extern "C" { diff --git a/servo/ports/geckolib/glue.rs b/servo/ports/geckolib/glue.rs index 0270c30bcf43..ec4dd2371215 100644 --- a/servo/ports/geckolib/glue.rs +++ b/servo/ports/geckolib/glue.rs @@ -69,7 +69,8 @@ use style::gecko_bindings::bindings::nsTArrayBorrowed_uintptr_t; use style::gecko_bindings::bindings::nsTimingFunctionBorrowed; use style::gecko_bindings::bindings::nsTimingFunctionBorrowedMut; use style::gecko_bindings::structs; -use style::gecko_bindings::structs::{CSSPseudoElementType, CompositeOperation, Loader}; +use style::gecko_bindings::structs::{CSSPseudoElementType, CompositeOperation}; +use style::gecko_bindings::structs::{Loader, LoaderReusableStyleSheets}; use style::gecko_bindings::structs::{RawServoStyleRule, ServoStyleContextStrong}; use style::gecko_bindings::structs::{ServoStyleSheet, SheetParsingMode, nsIAtom, nsCSSPropertyID}; use style::gecko_bindings::structs::{nsCSSFontFaceRule, nsCSSCounterStyleRule}; @@ -867,7 +868,8 @@ pub extern "C" fn Servo_StyleSheet_FromUTF8Bytes( mode: SheetParsingMode, extra_data: *mut URLExtraData, line_number_offset: u32, - quirks_mode: nsCompatibility + quirks_mode: nsCompatibility, + reusable_sheets: *mut LoaderReusableStyleSheets ) -> RawServoStyleSheetContentsStrong { let global_style_data = &*GLOBAL_STYLE_DATA; let input = unsafe { data.as_ref().unwrap().as_str_unchecked() }; @@ -884,7 +886,7 @@ pub extern "C" fn Servo_StyleSheet_FromUTF8Bytes( let loader = if loader.is_null() { None } else { - Some(StylesheetLoader::new(loader, stylesheet, ptr::null_mut())) + Some(StylesheetLoader::new(loader, stylesheet, reusable_sheets)) }; // FIXME(emilio): loader.as_ref() doesn't typecheck for some reason?