mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Merge ServoDeclarationBlock and DeclarationBlock.
Bug: 1464496 Reviewed-by: emilio MozReview-Commit-ID: By9fV70Oq0K
This commit is contained in:
parent
4108b1b278
commit
93472bcdea
1 changed files with 1 additions and 8 deletions
|
@ -1215,16 +1215,9 @@ impl<'le> TElement for GeckoElement<'le> {
|
|||
unsafe {
|
||||
let slots = self.extended_slots()?;
|
||||
|
||||
let base_declaration: &structs::DeclarationBlock =
|
||||
let declaration: &structs::DeclarationBlock =
|
||||
slots.mSMILOverrideStyleDeclaration.mRawPtr.as_ref()?;
|
||||
|
||||
let declaration: &structs::ServoDeclarationBlock = mem::transmute(base_declaration);
|
||||
|
||||
debug_assert_eq!(
|
||||
&declaration._base as *const structs::DeclarationBlock,
|
||||
base_declaration as *const structs::DeclarationBlock
|
||||
);
|
||||
|
||||
let raw: &structs::RawServoDeclarationBlock = declaration.mRaw.mRawPtr.as_ref()?;
|
||||
|
||||
Some(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue