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: Move the StyleSheetSet into the Stylist. #18170
Conversation
|
@bors-servo try |
highfive
commented
Aug 21, 2017
|
Heads up! This PR modifies the following files:
|
highfive
commented
Aug 21, 2017
|
|
|
@bors-servo try |
style: Move the StyleSheetSet into the Stylist. This will allow tracking whether there have been only additions to the stylesheet set, and in that case don't destroy and completely rebuild the invalidation map. This is on top of #18143. <!-- 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/18170) <!-- Reviewable:end -->
|
r? @SimonSapin (this is green on Gecko, and I expect too on Stylo) |
|
(or, @heycam, too) |
|
|
|
This is now rebased on top of #18143, and ready for review. |
|
Since @SimonSapin asked about the Thanks Simon :) |
|
I’d still like a couple sentences on that impl to say how it’s used etc. Reviewed 3 of 3 files at r1, 7 of 7 files at r2, 2 of 2 files at r3, 2 of 2 files at r4. components/style/stylist.rs, line 54 at r2 (raw file):
I think cfg over generics is fine. components/style/stylist.rs, line 330 at r2 (raw file):
components/style/stylist.rs, line 333 at r4 (raw file):
Please add a doc-comment here to explain why this impl is ok. Comments from Reviewable |
This will allow tracking whether there have been only additions to the stylesheet set, and in that case don't destroy and completely rebuild the invalidation map.
Also add a few comments and similar about pending invalidation work, and avoid passing a device in script, since the work it performs scanning the stylesheet is just thrown away in the `flush_without_invalidations` call.
…apper.
|
@bors-servo r+ Reviewed 2 of 2 files at r6, 2 of 2 files at r7. Comments from Reviewable |
|
|
|
@bors-servo p=1
|
style: Implement finer-grained stylist rebuilds. This is on top of #18170, and aims to resolve https://bugzilla.mozilla.org/show_bug.cgi?id=1386045. <!-- 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/18191) <!-- Reviewable:end -->
style: Move the StyleSheetSet into the Stylist. This will allow tracking whether there have been only additions to the stylesheet set, and in that case don't destroy and completely rebuild the invalidation map. This is on top of #18143. <!-- 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/18170) <!-- Reviewable:end -->
|
|
style: Implement finer-grained stylist rebuilds. This is on top of #18170, and aims to resolve https://bugzilla.mozilla.org/show_bug.cgi?id=1386045. <!-- 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/18191) <!-- Reviewable:end -->
style: Implement finer-grained stylist rebuilds. This is on top of #18170, and aims to resolve https://bugzilla.mozilla.org/show_bug.cgi?id=1386045. <!-- 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/18191) <!-- Reviewable:end -->
style: Implement finer-grained stylist rebuilds. This is on top of #18170, and aims to resolve https://bugzilla.mozilla.org/show_bug.cgi?id=1386045. <!-- 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/18191) <!-- Reviewable:end -->
style: Implement finer-grained stylist rebuilds. This is on top of #18170, and aims to resolve https://bugzilla.mozilla.org/show_bug.cgi?id=1386045. <!-- 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/18191) <!-- Reviewable:end -->
style: Implement finer-grained stylist rebuilds. This is on top of #18170, and aims to resolve https://bugzilla.mozilla.org/show_bug.cgi?id=1386045. <!-- 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/18191) <!-- Reviewable:end -->
emilio commentedAug 21, 2017
•
edited by SimonSapin
This will allow tracking whether there have been only additions to the
stylesheet set, and in that case don't destroy and completely rebuild the
invalidation map.
This is on top of #18143.
This change is