servo/components/layout
Oriol Brufau 668c4c8aba Round text decoration thickness to >= 1 device pixels
Previously the thickness coming from font metrics could be something
like 0.7px, so with 1dppx it would be painted as either 1 or 0 device
pixels.

Enforcing at least 1 device pixel ensures that the decoration will be
visible, and rounding to an integral amount of device pixels ensures
that the thickness won't vary depending on the position.

The specification requires this behavior when text-decoration-thickness
is set to a length or percentage. It's not clear if it should also
happen by default, but this seems to match other browsers (except for
WebKit rounding up instead of to the nearest integer).

The test text-decoration-thickness-from-zero-sized-font.html is now
failing because of #29675.
2023-04-27 23:48:53 +02:00
..
display_list Round text decoration thickness to >= 1 device pixels 2023-04-27 23:48:53 +02:00
tests Adjust size test for debug/release differences. 2021-02-26 04:20:23 -05:00
block.rs Actually check if root is absolute positioned 2022-04-19 17:43:43 +08:00
Cargo.toml Bump euclid to 0.22 2023-01-26 08:59:21 +01:00
construct.rs Miscellaneous build / tidy fixes. 2021-02-26 17:53:55 +01:00
context.rs Move most animation processing to script 2020-05-12 10:22:14 +02:00
data.rs Replace OpaqueStyleAndLayoutData by StyleAndOpaqueLayoutData 2020-04-06 23:06:13 +02:00
flex.rs Servo build fixes. 2019-12-16 14:23:56 +01:00
floats.rs Update nightly rustc. 2021-11-01 08:46:18 -04:00
flow.rs Bump euclid to 0.22 2023-01-26 08:59:21 +01:00
flow_list.rs Some further removals 2019-05-30 20:27:19 +02:00
flow_ref.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
fragment.rs Bump euclid to 0.22 2023-01-26 08:59:21 +01:00
generated_content.rs Fix Servo build and unify display representation. 2019-08-15 17:11:08 +02:00
incremental.rs Remove LayoutDamageComputation 2019-01-14 16:10:26 +01:00
inline.rs layout: Don't built stacking contexts or display lists for empty blocks. 2020-06-09 11:27:23 -04:00
layout_debug.rs Fix deprecation warnings 2019-01-28 11:32:40 +01:00
lib.rs Move most animation processing to script 2020-05-12 10:22:14 +02:00
linked_list.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
list_item.rs Update euclid. 2019-07-23 23:09:55 +02:00
model.rs Servo build fixes. 2019-12-16 14:23:56 +01:00
multicol.rs Add trace logs when assigning inline/block sizes 2022-04-17 16:18:32 +08:00
opaque_node.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
parallel.rs Update rayon to dedupe crossbeam-epoch 2019-07-12 21:01:33 +02:00
persistent_list.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
query.rs Bump euclid to 0.22 2023-01-26 08:59:21 +01:00
sequential.rs Fix some typos 2022-12-17 03:22:34 +01:00
table.rs Add trace logs when assigning inline/block sizes 2022-04-17 16:18:32 +08:00
table_caption.rs Add trace logs when assigning inline/block sizes 2022-04-17 16:18:32 +08:00
table_cell.rs Add trace logs when assigning inline/block sizes 2022-04-17 16:18:32 +08:00
table_colgroup.rs Servo build fixes. 2019-12-16 14:23:56 +01:00
table_row.rs style: Miscellaneous Servo build fixes. 2020-02-12 02:43:23 +01:00
table_rowgroup.rs Add trace logs when assigning inline/block sizes 2022-04-17 16:18:32 +08:00
table_wrapper.rs Add trace logs when assigning inline/block sizes 2022-04-17 16:18:32 +08:00
text.rs Revert "Revert "Update font-kit and freetype and unicode-script."" 2020-08-10 13:30:51 -04:00
traversal.rs Fix some typos 2022-12-17 03:22:34 +01:00
wrapper.rs Implement concept of dirty root 2020-05-19 16:26:36 +02:00