Move FragmentOrElement::mAttrs to Element.

Bug: 1512256
Reviewed-by: ehsan
This commit is contained in:
Olli Pettay 2018-12-06 15:58:40 +02:00 committed by Emilio Cobos Álvarez
parent 27322abeda
commit 28719f2455

View file

@ -581,7 +581,7 @@ impl<'le> GeckoElement<'le> {
#[inline(always)]
fn attrs(&self) -> &[structs::AttrArray_InternalAttr] {
unsafe {
let attrs = match self.0._base.mAttrs.mImpl.mPtr.as_ref() {
let attrs = match self.0.mAttrs.mImpl.mPtr.as_ref() {
Some(attrs) => attrs,
None => return &[],
};