Skip to content

Reduce LayoutTaskData to the fields used for RPC. - #8378

Merged
bors-servo merged 19 commits into
servo:masterfrom
Ms2ger:rwdata
Nov 10, 2015
Merged

bors-servo merged 19 commits into
servo:masterfrom
Ms2ger:rwdata

Conversation

@Ms2ger

@Ms2ger Ms2ger commented Nov 6, 2015

Copy link
Copy Markdown
Contributor

Review on Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Nov 6, 2015
@highfive

highfive commented Nov 6, 2015

Copy link
Copy Markdown

warning Warning warning

  • These commits modify layout code, but no reftests are modified. Please consider adding a reftest!

@eefriedman

Copy link
Copy Markdown
Contributor

Nice simplification... except that I'll have to redo large chunks of it to rebase #7524 on top of this.

The problem is that if you have an &mut LayoutTask floating around, it's impossible to borrow the Stylist... and SharedLayoutContext does precisely that. The borrow checker just can't see it at the moment because SharedLayoutContext uses a raw pointer.


Review status: 0 of 9 files reviewed at latest revision, 1 unresolved discussion.


components/layout/layout_task.rs, line 332 [r1] (raw file):
Accidentally left this in?


Comments from the review on Reviewable.io

@eefriedman eefriedman self-assigned this Nov 6, 2015
@Ms2ger

Ms2ger commented Nov 6, 2015

Copy link
Copy Markdown
Contributor Author

I think anything that prevents us from using &mut LayoutTask is problematic; you see how much pointless locking I'm removing. I'll see if I can think of something for Stylist.


Review status: 0 of 9 files reviewed at latest revision, 1 unresolved discussion.


components/layout/layout_task.rs, line 332 [r1] (raw file):
No, I believe it should be used in some places where it isn't: #8358


Comments from the review on Reviewable.io

@bors-servo

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #8330) made this pull request unmergeable. Please resolve the merge conflicts.

@highfive highfive added S-needs-rebase There are merge conflict errors. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Nov 6, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #8355) made this pull request unmergeable. Please resolve the merge conflicts.

@highfive highfive added S-needs-rebase There are merge conflict errors. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Nov 7, 2015
Ms2ger added 16 commits November 9, 2015 09:03
There is no good reason to have the two types.

This also means that the result of LayoutTask::profiler_metadata no longer
borrows the LayoutTask, which I'll need later.
…tTask::handle_request.

This ensures no fields of the LayoutTask are borrowed when calling repaint or
handle_request_helper, which I'll need later.
As the LayoutTask is uniquely owned, and we no longer have borrows of its
fields hanging around, we can use mutable references to simplify some code.
This matches LayoutTask::solve_constraints, and will be necessary when we
borrow parallel_traversal directly from the LayoutTask.
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 1919e19 with merge d24530a...

@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 Nov 9, 2015
bors-servo pushed a commit that referenced this pull request Nov 9, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac-rel-wpt

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Nov 9, 2015
@jdm

jdm commented Nov 9, 2015

Copy link
Copy Markdown
Member

Looking at the failure in the reftest analyzer, the screenshot is blank. Can you reproduce this failure?

@eefriedman

Copy link
Copy Markdown
Contributor

The failed test is blank, white; given that the test has a green background, most likely reflow didn't finish before the screenshot was taken. Probably just an intermittent failure which happened to show up here, but I'll look a little more.

@eefriedman

Copy link
Copy Markdown
Contributor

@bors-servo retry #8435

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 1919e19 with merge 894ad95...

bors-servo pushed a commit that referenced this pull request Nov 10, 2015
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-tests-failed The changes caused existing tests to fail. labels Nov 10, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - gonk

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Nov 10, 2015
@eefriedman

Copy link
Copy Markdown
Contributor

@bors-servo retry

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 1919e19 with merge 0d21158...

bors-servo pushed a commit that referenced this pull request Nov 10, 2015
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-tests-failed The changes caused existing tests to fail. labels Nov 10, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt

@bors-servo
bors-servo merged commit 1919e19 into servo:master Nov 10, 2015
@Ms2ger
Ms2ger deleted the rwdata branch November 10, 2015 09:18
simartin added a commit to simartin/servo that referenced this pull request Dec 12, 2015
simartin added a commit to simartin/servo that referenced this pull request Dec 12, 2015
simartin added a commit to simartin/servo that referenced this pull request Dec 12, 2015
simartin added a commit to simartin/servo that referenced this pull request Dec 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants