mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Return the result from match_element rather than using an outparam.
This commit is contained in:
parent
5c7dc4c633
commit
604601f1f4
2 changed files with 10 additions and 11 deletions
|
@ -177,10 +177,9 @@ impl<'a> PreorderDomTraversal for RecalcStyleForNode<'a> {
|
|||
if let Some(element) = node.as_element() {
|
||||
// Perform the CSS selector matching.
|
||||
let stylist = unsafe { &*self.layout_context.shared.stylist };
|
||||
element.match_element(stylist,
|
||||
Some(&*bf),
|
||||
&mut applicable_declarations,
|
||||
&mut shareable);
|
||||
shareable = element.match_element(stylist,
|
||||
Some(&*bf),
|
||||
&mut applicable_declarations);
|
||||
} else if node.has_changed() {
|
||||
ThreadSafeLayoutNode::new(&node).set_restyle_damage(
|
||||
incremental::rebuild_and_reflow())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue