Repository navigation
style: Kill some style sharing code. - #17713
Conversation
|
Heads up! This PR modifies the following files:
|
|
r? @heycam or @SimonSapin |
MozReview-Commit-ID: 42MyHx3QHuu
We can take it straight from the validation target.
bd84ea0 to
62310d9
Compare
|
The failures in the above try run are fixed by #17710 |
| context.thread_local.statistics.elements_matched += 1; | ||
|
|
||
| // This is only relevant for animations as of right now. | ||
| important_rules_changed = true; |
There was a problem hiding this comment.
Hmm, was this a bug that we weren't setting this if we got the styles from the cache?
There was a problem hiding this comment.
Well, we never cache styles with animations, so it was probably OK (except for web animations maybe?)
| @@ -773,48 +773,52 @@ where | |||
|
|
|||
| // Now that our bloom filter is set up, try the style sharing | |||
| // cache. If we get a match we can skip the rest of the work. | |||
There was a problem hiding this comment.
Nit: Maybe move this comment down to just before we look up the cache?
| Ok(shared_styles) => { | ||
| // Yay, cache hit. Share the style. | ||
| let child_cascade_requirement = | ||
| target.accumulate_damage_when_sharing(shared_context, |
There was a problem hiding this comment.
Can you explain for me when we no longer need to do this? (I assume it's already done elsewhere.)
There was a problem hiding this comment.
Right, with this patch se arrive to finish_restyle instead of early-returning, which does all this :)
|
@bors-servo r+ |
|
📌 Commit 62310d9 has been approved by |
style: Kill some style sharing code. It's trivial to do so after #17688. <!-- 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/17713) <!-- Reviewable:end -->
|
@bors-servo r=heycam p=1 Moved the comment |
|
📌 Commit bd10081 has been approved by |
style: Kill some style sharing code. It's trivial to do so after #17688. <!-- 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/17713) <!-- Reviewable:end -->
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, windows-msvc-dev |
It's trivial to do so after #17688.
This change is