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

Skip empty fragments when justifying inline fragments. #6118

Merged
merged 1 commit into from
May 18, 2015

Conversation

Ryman
Copy link
Contributor

@Ryman Ryman commented May 18, 2015

Fixes #5856

This stops the panic, but the empty fragments tend to be non-empty if extended by info.range_end_including_stripped_whitespace, so I'm unsure if it's a requirement to include that instead of skipping for correctness? Perhaps there's a testcase needed for this behaviour?

Review on Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label May 18, 2015
@highfive
Copy link

Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @pcwalton (or someone else) soon.

@hoppipolla-critic-bot
Copy link

Critic review: https://critic.hoppipolla.co.uk/r/5038

This is an external review system which you may optionally use for the code review of your pull request.

In order to help critic track your changes, please do not make in-place history rewrites (e.g. via git rebase -i or git commit --amend) when updating this pull request.

@pcwalton
Copy link
Contributor

@bors-servo: r+

@bors-servo
Copy link
Contributor

📌 Commit dcf91d9 has been approved by pcwalton

@bors-servo
Copy link
Contributor

⌛ Testing commit dcf91d9 with merge 913c567...

bors-servo pushed a commit that referenced this pull request May 18, 2015
Fixes #5856 

This stops the panic, but the empty fragments tend to be non-empty if extended by `info.range_end_including_stripped_whitespace`, so I'm unsure if it's a requirement to include that instead of skipping for correctness? Perhaps there's a testcase needed for this behaviour?

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

💔 Test failed - linux1

@jdm
Copy link
Member

jdm commented May 18, 2015

@bors-servo
Copy link
Contributor

⚡ Previous build results for android, gonk, linux2, mac1, mac2 are reusable. Rebuilding only linux1...

@jdm jdm 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 May 18, 2015
@bors-servo
Copy link
Contributor

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

@bors-servo bors-servo merged commit dcf91d9 into servo:master May 18, 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.

Layout panic ("!self.range.is_empty()") on cat-v.org
6 participants