Make DomRefCell not mutate the borrow flag non-atomically

This commit is contained in:
Anthony Ramine 2020-04-27 10:59:38 +02:00
parent 45f1316c62
commit 15db31769c
2 changed files with 6 additions and 5 deletions

View file

@ -281,7 +281,7 @@ impl<'dom> LayoutShadowRootHelpers<'dom> for LayoutDom<'dom, ShadowRoot> {
quirks_mode: QuirksMode,
guard: &SharedRwLockReadGuard,
) {
let mut author_styles = (*self.unsafe_get()).author_styles.borrow_mut_for_layout();
let author_styles = self.unsafe_get().author_styles.borrow_mut_for_layout();
if author_styles.stylesheets.dirty() {
author_styles.flush::<E>(device, quirks_mode, guard);
}