Skip to content

layout: Only take nonnegative margins into account when estimating inline placement of floats. - #10248

Merged
bors-servo merged 1 commit into
servo:masterfrom
pcwalton:float-speculation-with-negative-margins
Mar 29, 2016
Merged

bors-servo merged 1 commit into
servo:masterfrom
pcwalton:float-speculation-with-negative-margins

Conversation

@pcwalton

Copy link
Copy Markdown
Contributor

Otherwise, the heuristics can pass even when there are no floats,
causing block formatting contexts to be speculated to be flowing around
floats that don't exist!

Closes #10237.

r? @mbrubeck


This change is Reviewable

@highfive

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

  • @jgraham: tests/wpt/mozilla/meta/MANIFEST.json, tests/wpt/mozilla/tests/css/float_speculation_negative_inline_margins_a.html, tests/wpt/mozilla/tests/css/float_speculation_negative_inline_margins_ref.html

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Mar 28, 2016
@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 Mar 28, 2016
@mbrubeck

Copy link
Copy Markdown
Contributor

r=mbrubeck, with one question: Is a similar check needed in compute_floats_out?

-S-awaiting-review +S-awaiting-answer


Reviewed 4 of 4 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.


Comments from the review on Reviewable.io

@pcwalton
pcwalton force-pushed the float-speculation-with-negative-margins branch from cbc6650 to 6eb58e2 Compare March 29, 2016 00:36
@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Mar 29, 2016
inline placement of floats.

Otherwise, the heuristics can pass even when there are no floats,
causing block formatting contexts to be speculated to be flowing around
floats that don't exist!

Closes servo#10237.
@pcwalton

Copy link
Copy Markdown
Contributor Author

@mbrubeck Yes, I stared at the code for a bit and I believe it should also not add in space for negative margins in compute_floats_out. r?

@pcwalton

Copy link
Copy Markdown
Contributor Author

Also I fixed the incorrect comment.

@mbrubeck

Copy link
Copy Markdown
Contributor

@bors-servo r+

-S-awaiting-answer


Reviewed 1 of 1 files at r2.
Review status: all files reviewed at latest revision, all discussions resolved.


Comments from the review on Reviewable.io

@mbrubeck mbrubeck removed the S-awaiting-answer Someone asked a question that requires an answer. label Mar 29, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 6eb58e2 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 Mar 29, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 6eb58e2 with merge 3f73321...

bors-servo pushed a commit that referenced this pull request Mar 29, 2016
…ns, r=mbrubeck

layout: Only take nonnegative margins into account when estimating inline placement of floats.

Otherwise, the heuristics can pass even when there are no floats,
causing block formatting contexts to be speculated to be flowing around
floats that don't exist!

Closes #10237.

r? @mbrubeck

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10248)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, arm32, gonk, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, status-appveyor

@bors-servo
bors-servo merged commit 6eb58e2 into servo:master Mar 29, 2016
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.

4 participants