Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: Account for cousin sharing in the revalidation logic. #16670

Merged
merged 2 commits into from
May 1, 2017

Conversation

emilio
Copy link
Member

@emilio emilio commented May 1, 2017

@highfive
Copy link

highfive commented May 1, 2017

Heads up! This PR modifies the following files:

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label May 1, 2017
@emilio
Copy link
Member Author

emilio commented May 1, 2017

r? @bholley

cc @heycam

@highfive highfive assigned bholley and unassigned Manishearth May 1, 2017
@emilio emilio force-pushed the sharing-is-sometimes-hard branch from 359f9e1 to fde41bf Compare May 1, 2017 10:26
Copy link
Contributor

@bholley bholley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me with that changed. Thanks for fixing this!

@@ -375,10 +376,7 @@ impl Stylist {
#[inline]
fn note_for_revalidation(&mut self, selector: &Selector<SelectorImpl>) {
if needs_revalidation(selector) {
// For revalidation, we can skip everything left of the first ancestor
// combinator.
let revalidation_sel = selector.inner.slice_to_first_ancestor_combinator();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably get rid of the slice_to_first_ancestor_combinator() API while we're at it. I don't think we use it for anything else.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I'd bet I had done that... Probably stashed it on the way, huh. Will do

@bholley
Copy link
Contributor

bholley commented May 1, 2017

@bors-servo delegate+

@bors-servo
Copy link
Contributor

✌️ @emilio can now approve this pull request

@emilio emilio force-pushed the sharing-is-sometimes-hard branch from fde41bf to f879140 Compare May 1, 2017 18:22
@emilio
Copy link
Member Author

emilio commented May 1, 2017

@bors-servo r=bholley

@bors-servo
Copy link
Contributor

📌 Commit f879140 has been approved by bholley

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels May 1, 2017
@bors-servo
Copy link
Contributor

⌛ Testing commit f879140 with merge e92a796...

bors-servo pushed a commit that referenced this pull request May 1, 2017
style: Account for cousin sharing in the revalidation logic.

Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1361013

<!-- 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/16670)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css, mac-rel-wpt1, mac-rel-wpt2, windows-msvc-dev
Approved by: bholley
Pushing e92a796 to master...

@bors-servo bors-servo merged commit f879140 into servo:master May 1, 2017
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label May 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants