Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upstyle: Kill some style sharing code. #17713
Conversation
highfive
commented
Jul 13, 2017
|
Heads up! This PR modifies the following files:
|
highfive
commented
Jul 13, 2017
|
r? @heycam or @SimonSapin |
|
The failures in the above try run are fixed by #17710 |
|
|
||
| // This is only relevant for animations as of right now. | ||
| important_rules_changed = true; |
This comment has been minimized.
This comment has been minimized.
heycam
Jul 14, 2017
Member
Hmm, was this a bug that we weren't setting this if we got the styles from the cache?
This comment has been minimized.
This comment has been minimized.
emilio
Jul 14, 2017
Author
Member
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. | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| @@ -584,14 +525,7 @@ impl<E: TElement> StyleSharingCandidateCache<E> { | |||
|
|
|||
| match sharing_result { | |||
| Ok(shared_styles) => { | |||
| // Yay, cache hit. Share the style. | |||
| let child_cascade_requirement = | |||
| target.accumulate_damage_when_sharing(shared_context, | |||
This comment has been minimized.
This comment has been minimized.
heycam
Jul 14, 2017
Member
Can you explain for me when we no longer need to do this? (I assume it's already done elsewhere.)
This comment has been minimized.
This comment has been minimized.
emilio
Jul 14, 2017
Author
Member
Right, with this patch se arrive to finish_restyle instead of early-returning, which does all this :)
|
@bors-servo r+ |
|
|
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 |
|
|
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 -->
|
|
emilio commentedJul 13, 2017
•
edited by larsbergstrom
It's trivial to do so after #17688.
This change is