layout: Stop storing PrecomputedStyleData in LayoutNode

Use the SharedStyleContext instead.
This commit is contained in:
Emilio Cobos Álvarez 2016-04-24 18:34:36 +02:00
parent 979c3a54b9
commit 2a499d5a0b
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
15 changed files with 176 additions and 190 deletions

View file

@ -129,7 +129,7 @@ pub fn recalc_style_at<'a, N, C>(context: &'a C,
//
// FIXME(pcwalton): Stop allocating here. Ideally this should just be done by the HTML
// parser.
node.initialize_data(context.shared_context().stylist.get_precomputed_data());
node.initialize_data();
// Get the parent node.
let parent_opt = node.layout_parent_node(root);