Auto merge of #16629 - emilio:dirty-doc, r=heycam

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 -->
This commit is contained in:
bors-servo 2017-04-27 06:45:49 -05:00 committed by GitHub
commit 3f8f34ed13

View file

@ -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() {