mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Remove Traceable from element.rs
This commit is contained in:
parent
4f362ab5e6
commit
96f6c2fd67
2 changed files with 5 additions and 6 deletions
|
@ -390,7 +390,7 @@ pub struct LayoutElement<'le> {
|
|||
impl<'le> LayoutElement<'le> {
|
||||
pub fn style_attribute(&self) -> &'le Option<PropertyDeclarationBlock> {
|
||||
let style: &Option<PropertyDeclarationBlock> = unsafe {
|
||||
let style: &RefCell<Option<PropertyDeclarationBlock>> = self.element.style_attribute.deref();
|
||||
let style: &RefCell<Option<PropertyDeclarationBlock>> = &self.element.style_attribute;
|
||||
// cast to the direct reference to T placed on the head of RefCell<T>
|
||||
mem::transmute(style)
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue