style: pass a borrow instead of an Arc

https://bugzilla.mozilla.org/show_bug.cgi?id=1380133 has landed,
permitting us to pass a plain borrow into Gecko_CalcStyleDifference;
propagate this through style.

Closes #17795.
This commit is contained in:
Tamir Duberstein 2017-08-18 20:21:17 -07:00
parent 9f64630eaa
commit c348d5afb3
No known key found for this signature in database
GPG key ID: 1C1E98CC8E17BB89
2 changed files with 7 additions and 8 deletions

View file

@ -9,7 +9,6 @@ use gecko_bindings::structs;
use gecko_bindings::structs::{nsChangeHint, nsStyleContext, nsStyleStructID};
use matching::{StyleChange, StyleDifference};
use properties::ComputedValues;
use servo_arc::Arc;
use std::ops::{BitAnd, BitOr, BitOrAssign, Not};
/// The representation of Gecko's restyle damage is just a wrapper over
@ -49,7 +48,7 @@ impl GeckoRestyleDamage {
pub fn compute_style_difference(
source: &nsStyleContext,
old_style: &ComputedValues,
new_style: &Arc<ComputedValues>,
new_style: &ComputedValues,
) -> StyleDifference {
let mut any_style_changed: bool = false;
let hint = unsafe {