Skip to content

Commit

Permalink
Fixed SVG tesselation to have seperate functions for stroke and fill
Browse files Browse the repository at this point in the history
  • Loading branch information
fschutt committed Nov 16, 2018
1 parent 8586f0f commit 57b1bdf
Show file tree
Hide file tree
Showing 2 changed files with 181 additions and 164 deletions.
4 changes: 2 additions & 2 deletions src/display_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ impl ZOrderedRectangles {
// of children of that node, then add it to the self.z_index
if child_position == LayoutPosition::Absolute {
let root_id = NodeId::new(0);
let last_positioned_node = positioned_node_stack.last().unwrap_or(&root_id);
let z_off = get_total_num_children_of_node(*last_positioned_node, rectangles);
let last_positioned_node = positioned_node_stack.last().and_then(|last| rectangles[*last].parent()).unwrap_or(root_id);
let z_off = get_total_num_children_of_node(last_positioned_node, rectangles);
node_depths_of_absolute_nodes.insert(child_id, z_off);
}

Expand Down

0 comments on commit 57b1bdf

Please sign in to comment.