diff options
author | Jack Moffitt <jack@metajack.im> | 2015-03-12 16:32:49 -0600 |
---|---|---|
committer | Jack Moffitt <jack@metajack.im> | 2015-03-16 12:53:16 -0600 |
commit | 237150fa49b050cdc0b8d46bb80170127503cfcb (patch) | |
tree | bc85f4f97602320fdf9727fcbc233e3eb3978ed2 /components/script/parse/html.rs | |
parent | 660ea05ddb3b17b0bb914cb09968cbcf7c6b1aec (diff) | |
download | servo-237150fa49b050cdc0b8d46bb80170127503cfcb.tar.gz servo-237150fa49b050cdc0b8d46bb80170127503cfcb.zip |
Fix memory leak in flow tree by adding weak refs.
Cycles were being created in the flow tree since absolutely positioned
descendants had pointers to their containing blocks. This adds
WeakFlowRef (based on Weak<T>) and makes these backpointers weak
references. This also harmonizes our custom Arc<T>, FlowRef, to be
consistent with the upstream implementation.
Fixes #4915.
Diffstat (limited to 'components/script/parse/html.rs')
0 files changed, 0 insertions, 0 deletions