servo/components/layout
bors-servo f7d238d1f3 Auto merge of #18322 - glennw:update-wr-fonts-2, r=emilio
Update WR (font instance API).

WR now has a concept of font templates and font instances. This
makes the WR font interfaces closer to Cairo and Gecko, and also
makes some future performance optimizations possible.

A font template is the font family, and data backing the font.
A font instance is a reference to a font template and per-instance
options, such as font size, anti-aliasing settings etc.

To update Servo in a minimally invasive way, I added a new font
cache call, that creates a font instance. This means that when
a font is created, and doesn't exist in the cache there are now
two calls to the font cache thread. We could refactor the font
cache to make this work in one call, which we should do in the
future. However, refactoring the font cache is a large chunk of
work by itself. The extra call is only when a font doesn't already
exist in the font context cache, so it should have minimal
performance impact.

<!-- 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/18322)
<!-- Reviewable:end -->
2017-08-31 21:59:30 -05:00
..
animation.rs stylo: Remove a lot of the restyle damage related complexity. 2017-08-20 13:59:46 +02:00
block.rs Auto merge of #18175 - stshine:no-floats-in-flexbox, r=mbrubeck 2017-08-29 19:15:59 -05:00
Cargo.toml Updated h5e and x5e 2017-08-18 19:51:17 +05:30
construct.rs Use the is_absolute_containing_block method everywhere 2017-08-16 13:32:48 +02:00
context.rs Speculatively evaluate paint functions during style. 2017-07-31 13:02:28 -05:00
data.rs layout: Stop doing unsafe transmutes between refcell references. 2017-05-25 10:31:40 +02:00
display_list_builder.rs Allow overflow:scroll without a stacking context 2017-08-24 08:30:45 +02:00
flex.rs Auto merge of #18175 - stshine:no-floats-in-flexbox, r=mbrubeck 2017-08-29 19:15:59 -05:00
floats.rs order derivable traits lists 2017-08-23 21:38:44 +02:00
flow.rs Auto merge of #18175 - stshine:no-floats-in-flexbox, r=mbrubeck 2017-08-29 19:15:59 -05:00
flow_list.rs Untry 2017-06-18 13:21:51 +02:00
flow_ref.rs order derivable traits lists 2017-08-23 21:38:44 +02:00
fragment.rs Use generics for the vertical-align property 2017-08-30 23:01:12 +02:00
generated_content.rs Code organization: Move all generic traversal code to layout::traversal 2017-08-08 10:53:19 -07:00
incremental.rs Force reflow in the sequential fallback of block format context 2017-04-23 08:32:25 +08:00
inline.rs Use generics for the vertical-align property 2017-08-30 23:01:12 +02:00
layout_debug.rs Update serde to 0.9 (fixes #15325) 2017-02-18 21:09:46 +01:00
lib.rs Replace all uses of the style::stylearc alias with servo_arc. 2017-07-19 09:29:05 +02:00
linked_list.rs Move util::linked_list to layout 2016-06-29 17:23:04 +02:00
list_item.rs Improve containing block creation for position:absolute flows 2017-08-17 20:46:27 +02:00
model.rs Implement to_transform_3d_matrix for computing distance of mismatched transform lists. 2017-08-25 18:25:14 +08:00
multicol.rs Improve containing block creation for position:absolute flows 2017-08-17 20:46:27 +02:00
opaque_node.rs Introduce LayoutJS<Node>::opaque() to replace OpaqueNodeMethods::from_jsmanaged(). 2016-06-20 19:08:02 +02:00
parallel.rs Eliminate the sequential/traversal parallel distinction in favor of a unified adaptive driver. 2017-08-25 10:00:27 -07:00
persistent_list.rs Move util::persistent_list to layout 2016-02-20 19:20:38 +01:00
query.rs style: Only store applicable ::before / ::after pseudo styles during the traversal. 2017-08-25 08:46:22 +02:00
sequential.rs Eliminate the sequential/traversal parallel distinction in favor of a unified adaptive driver. 2017-08-25 10:00:27 -07:00
table.rs Remove border collapse argument from compute_border_and_padding 2017-08-25 23:41:55 -07:00
table_caption.rs Improve containing block creation for position:absolute flows 2017-08-17 20:46:27 +02:00
table_cell.rs Use generics for the vertical-align property 2017-08-30 23:01:12 +02:00
table_colgroup.rs Fix fixed position items with parents with CSS clips 2017-08-03 17:52:02 +02:00
table_row.rs order derivable traits lists 2017-08-23 21:38:44 +02:00
table_rowgroup.rs Improve containing block creation for position:absolute flows 2017-08-17 20:46:27 +02:00
table_wrapper.rs Remove border collapse argument from compute_border_and_padding 2017-08-25 23:41:55 -07:00
text.rs order derivable traits lists 2017-08-23 21:38:44 +02:00
traversal.rs Eliminate the sequential/traversal parallel distinction in favor of a unified adaptive driver. 2017-08-25 10:00:27 -07:00
webrender_helpers.rs Update WR (font instance API). 2017-08-31 16:10:30 +10:00
wrapper.rs script: Move the layout_wrapper outside of script. 2017-07-15 16:41:12 +02:00