From 7a88ca284df51fd83624e634c01e546f20a7b52a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Thu, 27 Apr 2017 13:08:27 +0200 Subject: [PATCH] Bug 1336863: Ensure we don't restyle with outdated rules. --- ports/geckolib/glue.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/ports/geckolib/glue.rs b/ports/geckolib/glue.rs index 71e05739818e2..cb532b47f237d 100644 --- a/ports/geckolib/glue.rs +++ b/ports/geckolib/glue.rs @@ -178,6 +178,7 @@ fn traverse_subtree(element: GeckoElement, raw_data: RawServoStyleSetBorrowed, } let per_doc_data = PerDocumentStyleData::from_ffi(raw_data).borrow(); + debug_assert!(!per_doc_data.stylesheets.has_changed()); let token = RecalcStyleOnly::pre_traverse(element, &per_doc_data.stylist, traversal_flags); if !token.should_traverse() {