servo/components/layout
Emilio Cobos Álvarez 5ac12b5df4
style: Make the TElement type arrive to the cascade function.
Not super-proud of this one, but it's the easiest way I could think of.

The changeset looks bigger than what it is, because while at it I've rewrapped a
fair amount of functions around to use proper block indentation.

Alternatives are parameterizing Stylist by <E>, which is not fun, or moving the
concrete element from layout_thread to layout, but that implies layout depending
on script, which isn't fun either.

Other alternative is implementing an empty enum and making anon boxes work on
it. It has the advantage of removing the annoying type parameter, but the
disadvantage of instantiating `cascade` twice, which isn't great, and having to
maintain all the boilerplate of a `TElement` implementation that just does
nothing.
2018-01-23 00:57:54 +01:00
..
display_list style: Move cursor property out of mako 2018-01-20 19:06:29 +02:00
tests Merge layout and layout_tests 2018-01-20 15:33:39 +01:00
animation.rs style: Make the TElement type arrive to the cascade function. 2018-01-23 00:57:54 +01:00
block.rs Introduce MaxRect trait 2018-01-17 23:29:57 +01:00
Cargo.toml Merge layout and layout_tests 2018-01-20 15:33:39 +01:00
construct.rs style: Make the TElement type arrive to the cascade function. 2018-01-23 00:57:54 +01:00
context.rs Replace all uses of the heapsize crate with malloc_size_of. 2017-10-18 22:20:37 +11:00
data.rs Bump bitflags to 1.0 in every servo crate 2017-10-30 23:36:06 +01:00
flex.rs Create own file for background calculations in layout 2018-01-06 20:19:32 +01:00
floats.rs Turn flow::base and friends into methods 2017-12-14 12:16:45 -06:00
flow.rs Merge layout and layout_tests 2018-01-20 15:33:39 +01:00
flow_list.rs Remove usage of unstable feature conservative_impl_trait in layout 2017-10-13 11:11:06 +02:00
flow_ref.rs order derivable traits lists 2017-08-23 21:38:44 +02:00
fragment.rs layout: Remove type parameter from PseudoElementType. 2018-01-14 21:45:39 +01:00
generated_content.rs layout: Remove type parameter from PseudoElementType. 2018-01-14 21:45:39 +01:00
incremental.rs Turn flow::base and friends into methods 2017-12-14 12:16:45 -06:00
inline.rs Do not leave space below baseline when it is not needed (i.e.there is no text) 2018-01-22 11:38:39 +01:00
layout_debug.rs Turn flow::base and friends into methods 2017-12-14 12:16:45 -06:00
lib.rs Create own file for background calculations in layout 2018-01-06 20:19:32 +01:00
linked_list.rs Move util::linked_list to layout 2016-06-29 17:23:04 +02:00
list_item.rs Create own file for background calculations in layout 2018-01-06 20:19:32 +01:00
model.rs Fix some "unnecessary parentheses" warnings 2018-01-22 17:41:25 +01:00
multicol.rs Create own file for background calculations in layout 2018-01-06 20:19:32 +01:00
opaque_node.rs Introduce LayoutJS<Node>::opaque() to replace OpaqueNodeMethods::from_jsmanaged(). 2016-06-20 19:08:02 +02:00
parallel.rs Turn flow::base and friends into methods 2017-12-14 12:16:45 -06:00
persistent_list.rs Use try syntax for Option where appropriate 2017-10-20 08:25:35 -07:00
query.rs Fix some "unnecessary parentheses" warnings 2018-01-22 17:41:25 +01:00
sequential.rs Create own file for background calculations in layout 2018-01-06 20:19:32 +01:00
table.rs Create own file for background calculations in layout 2018-01-06 20:19:32 +01:00
table_caption.rs Create own file for background calculations in layout 2018-01-06 20:19:32 +01:00
table_cell.rs Create own file for background calculations in layout 2018-01-06 20:19:32 +01:00
table_colgroup.rs Create own file for background calculations in layout 2018-01-06 20:19:32 +01:00
table_row.rs Create own file for background calculations in layout 2018-01-06 20:19:32 +01:00
table_rowgroup.rs Create own file for background calculations in layout 2018-01-06 20:19:32 +01:00
table_wrapper.rs Create own file for background calculations in layout 2018-01-06 20:19:32 +01:00
text.rs style: Make all keywords CamelCase for consistency. 2017-12-06 02:35:10 +01:00
traversal.rs Create own file for background calculations in layout 2018-01-06 20:19:32 +01:00
wrapper.rs Replace NonZero<*{const,mut} _> with std::ptr::NonNull 2018-01-22 17:41:25 +01:00