Add some comments and remove obsolete allow attributes

This commit is contained in:
Anthony Ramine 2020-04-01 11:36:25 +02:00
parent d9e4f7a0ba
commit 4e64a1c682
2 changed files with 9 additions and 3 deletions

View file

@ -271,6 +271,8 @@ impl<'dom> LayoutShadowRootHelpers<'dom> for LayoutDom<'dom, ShadowRoot> {
unsafe { &self.unsafe_get().author_styles.borrow_for_layout().data }
}
// FIXME(nox): This uses the dreaded borrow_mut_for_layout so this should
// probably be revisited.
#[inline]
#[allow(unsafe_code)]
unsafe fn flush_stylesheets<E: TElement>(