mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
stylo: Add a special case for marking something as dirty from invalidation code.
Bug: 1394935 Reviewed-by: bholley MozReview-Commit-ID: FHGmcoprN2Q Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This commit is contained in:
parent
3da3eb9be1
commit
0404bb0c7f
1 changed files with 3 additions and 1 deletions
|
@ -1004,7 +1004,9 @@ pub extern "C" fn Servo_StyleSet_FlushStyleSheets(
|
|||
if have_invalidations && doc_element.is_some() {
|
||||
// The invalidation machinery propagates the bits up, but we still
|
||||
// need to tell the gecko restyle root machinery about it.
|
||||
unsafe { bindings::Gecko_NoteDirtyElement(doc_element.unwrap().0); }
|
||||
unsafe {
|
||||
bindings::Gecko_NoteDirtySubtreeForInvalidation(doc_element.unwrap().0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue