aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/shadowroot.rs
diff options
context:
space:
mode:
authorAnthony Ramine <nox@nox.paris>2020-04-27 10:59:38 +0200
committerAnthony Ramine <nox@nox.paris>2020-05-18 10:23:46 +0200
commit15db31769cb0172be610fe2d731533c30c40fa76 (patch)
tree8b81d25bb09a6add9159a9cc89506543bc035e45 /components/script/dom/shadowroot.rs
parent45f1316c62a5382d4615988c682b713032ee9ab4 (diff)
downloadservo-15db31769cb0172be610fe2d731533c30c40fa76.tar.gz
servo-15db31769cb0172be610fe2d731533c30c40fa76.zip
Make DomRefCell not mutate the borrow flag non-atomically
Diffstat (limited to 'components/script/dom/shadowroot.rs')
-rw-r--r--components/script/dom/shadowroot.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/shadowroot.rs b/components/script/dom/shadowroot.rs
index f1c0567a399..c70c13d8cef 100644
--- a/components/script/dom/shadowroot.rs
+++ b/components/script/dom/shadowroot.rs
@@ -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);
}