Wrap SharedLayoutContext::stylist in a wrapper to make it Sync.

This commit is contained in:
Ms2ger 2015-11-06 23:15:41 +01:00
parent e9b77628ce
commit 647232a495
3 changed files with 10 additions and 5 deletions

View file

@ -188,7 +188,7 @@ impl<'a> PreorderDomTraversal for RecalcStyleForNode<'a> {
let shareable_element = match node.as_element() {
Some(element) => {
// Perform the CSS selector matching.
let stylist = unsafe { &*self.layout_context.shared.stylist };
let stylist = unsafe { &*self.layout_context.shared.stylist.0 };
if element.match_element(stylist,
Some(&*bf),
&mut applicable_declarations) {