Skip to content

Commit

Permalink
Auto merge of servo#16629 - emilio:dirty-doc, r=heycam
Browse files Browse the repository at this point in the history
Bug 1336863: Ensure we don't restyle with outdated rules.

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16629)
<!-- Reviewable:end -->
  • Loading branch information
bors-servo authored Apr 27, 2017
2 parents 8824a68 + 7a88ca2 commit 3f8f34e
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 3f8f34e

Please sign in to comment.