aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/gecko/restyle_damage.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/style/gecko/restyle_damage.rs')
-rw-r--r--components/style/gecko/restyle_damage.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/components/style/gecko/restyle_damage.rs b/components/style/gecko/restyle_damage.rs
index 2af898a28aa..62865e06b79 100644
--- a/components/style/gecko/restyle_damage.rs
+++ b/components/style/gecko/restyle_damage.rs
@@ -48,14 +48,14 @@ impl GeckoRestyleDamage {
/// accessed from layout.
pub fn compute_style_difference(
source: &nsStyleContext,
- new_style: &Arc<ComputedValues>
+ old_style: &ComputedValues,
+ new_style: &Arc<ComputedValues>,
) -> StyleDifference {
- // TODO(emilio): Const-ify this?
- let context = source as *const nsStyleContext as *mut nsStyleContext;
let mut any_style_changed: bool = false;
let hint = unsafe {
- bindings::Gecko_CalcStyleDifference(context,
- &new_style,
+ bindings::Gecko_CalcStyleDifference(old_style.as_style_context(),
+ new_style.as_style_context(),
+ source.mBits,
&mut any_style_changed)
};
let change = if any_style_changed { StyleChange::Changed } else { StyleChange::Unchanged };