Skip to content

style: Split style resolution and dynamic change computation. - #17688

Merged
bors-servo merged 11 commits into
servo:masterfrom
emilio:split-style-resolution
Jul 12, 2017
Merged

bors-servo merged 11 commits into
servo:masterfrom
emilio:split-style-resolution

Conversation

@emilio

@emilio emilio commented Jul 12, 2017 •

Copy link
Copy Markdown
Member

This is the Servo side of Mozilla bug 1379505.


This change is Reviewable

emilio added 11 commits July 12, 2017 08:37
MozReview-Commit-ID: HkTtrV5CcF0
…yle data.

This is unfortunate, but for now it complicates things, I would like not needing
a ElementData to get the style of an Element in order to fix all the
getDefaultComputedStyle bugs.

MozReview-Commit-ID: LZvsdFEqrDE
…nter.

There's no reason it wasn't done before.

MozReview-Commit-ID: G0lMLWmfHbS
This still doesn't make use of it so far, but I prefer introducing it
atomically, then introduce its usage.

MozReview-Commit-ID: 9dRUsl3srHp
Removing the ugly.

MozReview-Commit-ID: BvahbMKS7QU
…ng changes.

MozReview-Commit-ID: 4BzjbLbFebF
…element.

Before this refactoring, getComputedStyle could have side effects, and left the
style data in the element, so we could never arrive there without data.

There are a few crashtests that caught this, but this was already broken if you
called animate() on an element deep in a display: none subtree.

MozReview-Commit-ID: 1AvOvhAyOP3
They're unused now. We can add them back if needed.

MozReview-Commit-ID: 92Y2Na0ZbVn
@highfive

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

  • @bholley: components/style/lib.rs, components/style/gecko/generated/structs_debug.rs, components/style/gecko/generated/structs_release.rs, components/style/data.rs, components/style/stylist.rs and 11 more
  • @canaltinova: components/style/lib.rs, components/style/gecko/generated/structs_debug.rs, components/style/gecko/generated/structs_release.rs, components/style/data.rs, components/style/stylist.rs and 11 more

@highfive

Copy link
Copy Markdown

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!
  • These commits modify style and layout code, but no tests are modified. Please consider adding a test!

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jul 12, 2017
@emilio

emilio commented Jul 12, 2017

Copy link
Copy Markdown
Member Author

@bors-servo r=heycam,BorisChiou p=10

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit e24d81d has been approved by heycam,BorisChiou

@highfive highfive assigned heycam and unassigned asajeffrey Jul 12, 2017
@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 Jul 12, 2017
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit e24d81d with merge 16d6dc1...

bors-servo pushed a commit that referenced this pull request Jul 12, 2017
…hiou

style: Split style resolution and dynamic change computation.

This is the Servo side of Mozilla bug 1379505.
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, windows-msvc-dev
Approved by: heycam,BorisChiou
Pushing 16d6dc1 to master...

@bors-servo
bors-servo merged commit e24d81d into servo:master Jul 12, 2017
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jul 12, 2017
@emilio
emilio deleted the split-style-resolution branch July 12, 2017 08:22
bors-servo pushed a commit that referenced this pull request Jul 14, 2017
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 pushed a commit that referenced this pull request Jul 14, 2017
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 -->
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