mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
stylo: Fix StyleSheetInner/Stylesheet mapping
The key of this patch is the split between Stylesheet and StylesheetContents. Gecko will use StylesheetContents, which maps to a ServoStyleSheetInner.
This commit is contained in:
parent
fd65ac8924
commit
1263075776
38 changed files with 3818 additions and 2931 deletions
|
@ -228,6 +228,18 @@ pub trait ToCssWithGuard {
|
|||
}
|
||||
}
|
||||
|
||||
/// Parameters needed for deep clones.
|
||||
#[cfg(feature = "gecko")]
|
||||
pub struct DeepCloneParams {
|
||||
/// The new sheet we're cloning rules into.
|
||||
pub reference_sheet: *const ::gecko_bindings::structs::ServoStyleSheet,
|
||||
}
|
||||
|
||||
/// Parameters needed for deep clones.
|
||||
#[cfg(feature = "servo")]
|
||||
pub struct DeepCloneParams;
|
||||
|
||||
|
||||
/// A trait to do a deep clone of a given CSS type. Gets a lock and a read
|
||||
/// guard, in order to be able to read and clone nested structures.
|
||||
pub trait DeepCloneWithLock : Sized {
|
||||
|
@ -235,7 +247,8 @@ pub trait DeepCloneWithLock : Sized {
|
|||
fn deep_clone_with_lock(
|
||||
&self,
|
||||
lock: &SharedRwLock,
|
||||
guard: &SharedRwLockReadGuard
|
||||
guard: &SharedRwLockReadGuard,
|
||||
params: &DeepCloneParams,
|
||||
) -> Self;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue