mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
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:
commit
3f8f34ed13
1 changed files with 1 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue