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

layout: Improve the interaction between baseline-offset-of-last-line-in-flow logic and inline absolute hypothetical boxes. #13470

Merged

Conversation

pcwalton
Copy link
Contributor

@pcwalton pcwalton commented Sep 28, 2016

See commits for details. These changes place the heart icon on Twitter in the right place.

r? @notriddle


This change is Reviewable

and an inline flow has no applicable lines, continue checking previous
sibling flows.

Improves Twitter by placing the favorite icon in the right place.
@highfive
Copy link

warning Warning warning

  • These commits include an empty title element (<title></title>). Consider adding appropriate metadata.

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Sep 28, 2016
None
} else {
Some(last_line.bounds.start.b + last_line.bounds.size.block -
last_line.inline_metrics.depth_below_baseline)
Copy link
Contributor

@notriddle notriddle Sep 28, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In cases like this:

Some text<br><span style="position:absolute">la la la</span>

I would expect the last line to be made up entirely of hypothetical boxes ("la la la"), so baseline_offset_of_last_line should, in this case, return the baseline offset of "Some text", not None, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yes, of course. I'll fix.

determining the baseline offset of the last line.

Improves Twitter by placing the favorite icon in the right place
vertically.
@pcwalton pcwalton force-pushed the inline-absolute-hypothetical-baseline branch from e26d260 to b021952 Compare September 28, 2016 20:04
@pcwalton
Copy link
Contributor Author

Addressed. r? @notriddle

}
}
None
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a massive improvement!

@notriddle
Copy link
Contributor

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit b021952 has been approved by notriddle

@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 Sep 28, 2016
@bors-servo
Copy link
Contributor

📌 Commit b021952 has been approved by notriddle

@bors-servo
Copy link
Contributor

⌛ Testing commit b021952 with merge ccfc601...

bors-servo pushed a commit that referenced this pull request Sep 29, 2016
…, r=notriddle

layout: Improve the interaction between baseline-offset-of-last-line-in-flow logic and inline absolute hypothetical boxes.

See commits for details. These changes place the heart icon on Twitter in the right place.

r? @notriddle

<!-- 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/13470)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows-dev

@bors-servo bors-servo merged commit b021952 into servo:master Sep 29, 2016
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Sep 29, 2016
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.

None yet

4 participants