servo/components/gfx/text
Patrick Walton ae378a8c3e layout: Rewrite whitespace stripping.
This patch makes Servo unconditionally strip whitespace before text run
scanning (assuming that the `white-space` property allows it). Whitespace
stripping during reflow is now only used for handling whitespace at the ends of
lines; reflow now never attempts to handle ignorable whitespace.

Many CSS tests pass now. There are some new failures, however.

The following reference tests now fail due to a pre-existing bug whereby
whitespace is used to calculate the position of inline hypothetical boxes for
elements with `display: inline; position: absolute`:

* `absolute-replaced-height-036.htm`
* `vertical-align-sub-001.htm`
* `vertical-align-super-001.htm`

The following reference tests fail due to a pre-existing bug whereby we don't
handle `font-size: 0` properly in inline reflow:

* `font-size-zero-1.htm`
* `font-size-zero-2.htm`

The following reference test fails due to the fact that it relied on our
incorrect insertion of whitespace to make room for the black background:

* `inline-formatting-context-007.htm`
2015-08-11 11:42:20 -07:00
..
shaping Warning police. 2015-08-04 15:16:15 +02:00
glyph.rs Implement the unicode-bidi property 2015-08-03 14:12:33 -07:00
mod.rs Remove dead code from gfx/text 2015-07-14 14:32:45 -07:00
text_run.rs Basic support for bidirectional text 2015-07-23 20:05:55 -07:00
util.rs layout: Rewrite whitespace stripping. 2015-08-11 11:42:20 -07:00