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:
Emilio Cobos Álvarez 2017-08-31 09:42:26 +02:00
parent 3da3eb9be1
commit 0404bb0c7f
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -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);
}
}
}