Skip to content

Commit

Permalink
style: Merge ServoDeclarationBlock and DeclarationBlock.
Browse files Browse the repository at this point in the history
Bug: 1464496
Reviewed-by: emilio
MozReview-Commit-ID: By9fV70Oq0K
  • Loading branch information
canova authored and emilio committed Jun 2, 2018
1 parent 4108b1b commit 93472bc
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions components/style/gecko/wrapper.rs
Expand Up @@ -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(
Expand Down

0 comments on commit 93472bc

Please sign in to comment.