Skip to content

layout: Centralize the logic that determines whether fragments get layers in the fragment. - #7291

Merged
bors-servo merged 1 commit into
servo:masterfrom
pcwalton:has-layer-flag
Aug 22, 2015
Merged

bors-servo merged 1 commit into
servo:masterfrom
pcwalton:has-layer-flag

Conversation

@pcwalton

Copy link
Copy Markdown
Contributor

…so that it can be activated when we're forcing
the creation of extra layers due to positioned descendants that
themselves have layers.

The newly failing tests were tests that accidentally passed due to
incorrect stacking order.

Closes #7281.

r? @mbrubeck

Review on Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Aug 19, 2015
@mbrubeck mbrubeck self-assigned this Aug 19, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #7265) 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 Aug 20, 2015
@mbrubeck

Copy link
Copy Markdown
Contributor

Reviewed 13 of 13 files at r1.
Review status: all files reviewed at latest revision, 1 unresolved discussion, some commit checks failed.


components/layout/block.rs, line 1570 [r1] (raw file):
This function could return early after each flags.insert call; not sure if the optimization is worth the extra code. Or just return true and move the insert to the calling function (which would let this method take immutable &self).


Comments from the review on Reviewable.io

@mbrubeck

Copy link
Copy Markdown
Contributor

r=mbrubeck with one optional review suggestion (above).

@mbrubeck mbrubeck added S-awaiting-answer Someone asked a question that requires an answer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Aug 20, 2015
@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Aug 21, 2015
@pcwalton

Copy link
Copy Markdown
Contributor Author

@bors-servo: r=mbrubeck

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit eb70fdb has been approved by mbrubeck

@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. S-needs-rebase There are merge conflict errors. S-awaiting-answer Someone asked a question that requires an answer. labels Aug 21, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit eb70fdb with merge 5c88def...

@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux1

@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 Aug 21, 2015
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-tests-failed The changes caused existing tests to fail. labels Aug 21, 2015
@pcwalton

Copy link
Copy Markdown
Contributor Author

@bors-servo: r=mbrubeck

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit b93cfa4 has been approved by mbrubeck

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit b93cfa4 with merge ea22ffd...

@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 Aug 21, 2015
bors-servo pushed a commit that referenced this pull request Aug 22, 2015
layout: Centralize the logic that determines whether fragments get layers in the fragment.

…so that it can be activated when we're forcing
the creation of extra layers due to positioned descendants that
themselves have layers.

The newly failing tests were tests that accidentally passed due to
incorrect stacking order.

Closes #7281.

r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7291)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux2

@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 Aug 22, 2015
@Ms2ger

Ms2ger commented Aug 22, 2015

Copy link
Copy Markdown
Contributor
/css21_dev/html4/abspos-overflow-010.htm
----------------------------------------
FAIL [Parent]

on linux and

/home/servo/buildbot/slave/linux2/build/components/layout/display_list_builder.rs:17:60: 17:71 warning: unused import, #[warn(unused_imports)] on by default
/home/servo/buildbot/slave/linux2/build/components/layout/display_list_builder.rs:17 use flow::{self, BaseFlow, Flow, IS_ABSOLUTELY_POSITIONED, NEEDS_LAYER};
                                                                                                                                                ^~~~~~~~~~~

@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-tests-failed The changes caused existing tests to fail. labels Aug 22, 2015
@pcwalton

Copy link
Copy Markdown
Contributor Author

@bors-servo: r=mbrubeck

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit ddf598f has been approved by mbrubeck

@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 Aug 22, 2015
layers in the fragment, so that it can be activated when we're forcing
the creation of extra layers due to positioned descendants that
themselves have layers.

The newly failing tests were tests that accidentally passed due to
incorrect stacking order.

Closes servo#7281.
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit ddf598f with merge 09cd54b...

bors-servo pushed a commit that referenced this pull request Aug 22, 2015
layout: Centralize the logic that determines whether fragments get layers in the fragment.

…so that it can be activated when we're forcing
the creation of extra layers due to positioned descendants that
themselves have layers.

The newly failing tests were tests that accidentally passed due to
incorrect stacking order.

Closes #7281.

r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7291)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux2

@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 Aug 22, 2015
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-tests-failed The changes caused existing tests to fail. labels Aug 22, 2015
@pcwalton

Copy link
Copy Markdown
Contributor Author

Oops! Forgot to push my latest changes before retrying on the bots. Sorry about that.

@pcwalton

Copy link
Copy Markdown
Contributor Author

@bors-servo: r=mbrubeck

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit ec1c90d has been approved by mbrubeck

@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 Aug 22, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit ec1c90d with merge 7945c17...

bors-servo pushed a commit that referenced this pull request Aug 22, 2015
layout: Centralize the logic that determines whether fragments get layers in the fragment.

…so that it can be activated when we're forcing
the creation of extra layers due to positioned descendants that
themselves have layers.

The newly failing tests were tests that accidentally passed due to
incorrect stacking order.

Closes #7281.

r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7291)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux1, linux2, mac1, mac2, mac3

@bors-servo
bors-servo merged commit ec1c90d into servo:master Aug 22, 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