From a646b9d559af5ff2b00d5f694f17ff8359ea07e3 Mon Sep 17 00:00:00 2001 From: Wei-Cheng Pan Date: Tue, 12 Sep 2017 17:07:25 +0800 Subject: [PATCH] Invalidation should check all restyle hints. --- ports/geckolib/glue.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/geckolib/glue.rs b/ports/geckolib/glue.rs index cf0842ac856..6233ffc7526 100644 --- a/ports/geckolib/glue.rs +++ b/ports/geckolib/glue.rs @@ -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; } }