mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Hoist flags out of RestyleData.
MozReview-Commit-ID: 8emE83lykh3
This commit is contained in:
parent
9d0f8b9d52
commit
61cad869d9
6 changed files with 103 additions and 114 deletions
|
@ -40,8 +40,7 @@ pub fn can_share_style_across_parents<E>(first: Option<E>, second: Option<E>) ->
|
|||
//
|
||||
// This is a somewhat conservative check. We could tighten it by having the
|
||||
// invalidation logic explicitly flag elements for which it ellided styling.
|
||||
if first_data.restyle.traversed_without_styling() ||
|
||||
second_data.restyle.traversed_without_styling() {
|
||||
if first_data.traversed_without_styling() || second_data.traversed_without_styling() {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue