mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Wrap SharedLayoutContext::stylist in a wrapper to make it Sync.
This commit is contained in:
parent
e9b77628ce
commit
647232a495
3 changed files with 10 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue