mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
Do a second pass on the sharing cache to reuse style by rule node identity.
MozReview-Commit-ID: H67j3Sbt3gr
This commit is contained in:
parent
7a7070e075
commit
1c9b39a8e8
6 changed files with 122 additions and 8 deletions
|
@ -46,8 +46,7 @@ pub fn parents_allow_sharing<E>(
|
|||
// invalidation logic explicitly flag elements for which it ellided styling.
|
||||
let parent_data = parent.borrow_data().unwrap();
|
||||
let candidate_parent_data = candidate_parent.borrow_data().unwrap();
|
||||
if parent_data.traversed_without_styling() ||
|
||||
candidate_parent_data.traversed_without_styling() {
|
||||
if !parent_data.safe_for_cousin_sharing() || !candidate_parent_data.safe_for_cousin_sharing() {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue