mirror of
https://github.com/servo/servo.git
synced 2025-08-14 18:05:36 +01:00
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:
parent
9f64630eaa
commit
c348d5afb3
2 changed files with 7 additions and 8 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue