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

Limit visited cascade for reparenting #18844

Merged
merged 1 commit into from Oct 12, 2017

Conversation

@jryans
Copy link
Contributor

jryans commented Oct 12, 2017

The specialized cascade flow in stylist::compute_style_with_inputs (used with
reparenting) currently computes all properties for visited styles, but we only
need visited-dependent properties.

This adds the cascade flag to reduce the work to visited-dependent properties
only, like we do for the regular cascade flow.

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


This change is Reviewable

The specialized cascade flow in `stylist::compute_style_with_inputs` (used with
reparenting) currently computes all properties for visited styles, but we only
need visited-dependent properties.

This adds the cascade flag to reduce the work to visited-dependent properties
only, like we do for the regular cascade flow.

MozReview-Commit-ID: FGCj6GPnQOB
@highfive
Copy link

highfive commented Oct 12, 2017

Heads up! This PR modifies the following files:

@highfive
Copy link

highfive commented Oct 12, 2017

warning Warning warning

  • These commits modify style code, but no tests are modified. Please consider adding a test!
@jryans
Copy link
Contributor Author

jryans commented Oct 12, 2017

@bors-servo r=emilio

@bors-servo
Copy link
Contributor

bors-servo commented Oct 12, 2017

📌 Commit 0eb7d65 has been approved by emilio

@highfive highfive assigned emilio and unassigned jdm Oct 12, 2017
@bors-servo
Copy link
Contributor

bors-servo commented Oct 12, 2017

Testing commit 0eb7d65 with merge 82a013a...

bors-servo added a commit that referenced this pull request Oct 12, 2017
Limit visited cascade for reparenting

The specialized cascade flow in `stylist::compute_style_with_inputs` (used with
reparenting) currently computes all properties for visited styles, but we only
need visited-dependent properties.

This adds the cascade flag to reduce the work to visited-dependent properties
only, like we do for the regular cascade flow.

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

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

bors-servo commented Oct 12, 2017

@bors-servo bors-servo merged commit 0eb7d65 into servo:master Oct 12, 2017
3 checks passed
3 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@bors-servo bors-servo mentioned this pull request Oct 12, 2017
3 of 3 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.