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

layout: Stop mutating the style data from layout. #16985

Merged
merged 2 commits into from May 23, 2017
Merged

Conversation

@emilio
Copy link
Member

emilio commented May 21, 2017

This is part of #16982.

Right now we have some code that tries to cache stuff in the style data during
layout.

This code is extremely rarely executed, only for <details> and <summary>.

I think if we really really want to cache these, we should find a place in the
layout data for it.

For now, let's move it away (and all the other layout code) from mutating the
style data from layout.


This change is Reviewable

emilio added 2 commits May 21, 2017
This is part of #16982.

Right now we have some code that tries to cache stuff in the style data during
layout.

This code is extremely rarely executed, only for `<details>` and `<summary>`.

I think if we really really want to cache these, we should find a place in the
layout data for it.

For now, let's move it away (and all the other layout code) from mutating the
style data from layout.
@highfive
Copy link

highfive commented May 21, 2017

Heads up! This PR modifies the following files:

  • @bholley: components/style/data.rs
  • @fitzgen: components/script_layout_interface/wrapper_traits.rs, components/script/layout_wrapper.rs
  • @KiChjang: components/script_layout_interface/wrapper_traits.rs, components/script/layout_wrapper.rs
@highfive
Copy link

highfive commented May 21, 2017

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!
  • These commits modify style and script code, but no tests are modified. Please consider adding a test!
@emilio
Copy link
Member Author

emilio commented May 21, 2017

r? @jdm or @bholley

@emilio
Copy link
Member Author

emilio commented May 21, 2017

@bors-servo
Copy link
Contributor

bors-servo commented May 21, 2017

Trying commit e17e001 with merge b797936...

bors-servo added a commit that referenced this pull request May 21, 2017
layout: Stop mutating the style data from layout.

This is part of #16982.

Right now we have some code that tries to cache stuff in the style data during
layout.

This code is extremely rarely executed, only for `<details>` and `<summary>`.

I think if we really really want to cache these, we should find a place in the
layout data for it.

For now, let's move it away (and all the other layout code) from mutating the
style data from layout.

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

bors-servo commented May 21, 2017

@bholley
Copy link
Contributor

bholley commented May 22, 2017

@bors-servo
Copy link
Contributor

bors-servo commented May 22, 2017

📌 Commit e17e001 has been approved by bholley

@highfive highfive assigned bholley and unassigned jdm May 22, 2017
@bors-servo
Copy link
Contributor

bors-servo commented May 23, 2017

Testing commit e17e001 with merge 84c1f90...

bors-servo added a commit that referenced this pull request May 23, 2017
layout: Stop mutating the style data from layout.

This is part of #16982.

Right now we have some code that tries to cache stuff in the style data during
layout.

This code is extremely rarely executed, only for `<details>` and `<summary>`.

I think if we really really want to cache these, we should find a place in the
layout data for it.

For now, let's move it away (and all the other layout code) from mutating the
style data from layout.

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

bors-servo commented May 23, 2017

☀️ 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 84c1f90 to master...

@bors-servo bors-servo merged commit e17e001 into servo:master May 23, 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
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

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