File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -961,7 +961,8 @@ extern "C" {
961
961
}
962
962
extern "C" {
963
963
pub fn Gecko_CalcStyleDifference ( oldstyle : * mut nsStyleContext ,
964
- newstyle : ServoComputedValuesBorrowed )
964
+ newstyle : ServoComputedValuesBorrowed ,
965
+ any_style_changed : * mut bool )
965
966
-> nsChangeHint ;
966
967
}
967
968
extern "C" {
Original file line number Diff line number Diff line change @@ -49,9 +49,11 @@ impl GeckoRestyleDamage {
49
49
new_style : & Arc < ComputedValues > ) -> Self {
50
50
// TODO(emilio): Const-ify this?
51
51
let context = source as * const nsStyleContext as * mut nsStyleContext ;
52
+ let mut any_style_changed: bool = false ;
52
53
let hint = unsafe {
53
54
bindings:: Gecko_CalcStyleDifference ( context,
54
- new_style. as_borrowed_opt ( ) . unwrap ( ) )
55
+ new_style. as_borrowed_opt ( ) . unwrap ( ) ,
56
+ & mut any_style_changed)
55
57
} ;
56
58
GeckoRestyleDamage ( hint)
57
59
}
You can’t perform that action at this time.
0 commit comments