Skip to content

Commit

Permalink
Bug 1336863: Ensure we don't restyle with outdated rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed Apr 27, 2017
1 parent 8824a68 commit 7a88ca2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ports/geckolib/glue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 7a88ca2

Please sign in to comment.