Invalidation should check all restyle hints.

This commit is contained in:
Wei-Cheng Pan 2017-09-12 17:07:25 +08:00
parent 7f4cb1861b
commit a646b9d559

View file

@ -3859,7 +3859,7 @@ pub extern "C" fn Servo_HasPendingRestyleAncestor(element: RawGeckoElementBorrow
let mut element = Some(GeckoElement(element));
while let Some(e) = element {
if let Some(data) = e.borrow_data() {
if data.restyle.hint.has_non_animation_invalidations() {
if !data.restyle.hint.is_empty() {
return true;
}
}