diff options
author | Brendan Zabarauskas <bjzaba@yahoo.com.au> | 2014-06-02 14:21:44 -0700 |
---|---|---|
committer | Brendan Zabarauskas <bjzaba@yahoo.com.au> | 2014-06-02 14:37:04 -0700 |
commit | fe8e0ac06f4c8545467706a042305ef5679ebac1 (patch) | |
tree | 2d2f44b9e13724080d305a8221a94ad1ba2ca42d /src/components/main/layout/construct.rs | |
parent | 2b23a2ca944d627f06ef39cc696feadf81fbb04b (diff) | |
download | servo-fe8e0ac06f4c8545467706a042305ef5679ebac1.tar.gz servo-fe8e0ac06f4c8545467706a042305ef5679ebac1.zip |
Remove last methods from InlineFragmentMap
Diffstat (limited to 'src/components/main/layout/construct.rs')
-rw-r--r-- | src/components/main/layout/construct.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/main/layout/construct.rs b/src/components/main/layout/construct.rs index af9ee53169d..e84fa3e7350 100644 --- a/src/components/main/layout/construct.rs +++ b/src/components/main/layout/construct.rs @@ -185,7 +185,7 @@ impl InlineFragmentsAccumulator { fn from_inline_node(node: &ThreadSafeLayoutNode) -> InlineFragmentsAccumulator { let mut fragments = InlineFragments::new(); - fragments.map.push(node.style().clone(), Range::empty()); + fragments.push_range(node.style().clone(), Range::empty()); InlineFragmentsAccumulator { fragments: fragments, has_enclosing_range: true, @@ -200,7 +200,7 @@ impl InlineFragmentsAccumulator { if has_enclosing_range { let len = FragmentIndex(fragments.len() as int); - fragments.map.get_mut(FragmentIndex(0)).range.extend_to(len); + fragments.get_mut_range(FragmentIndex(0)).range.extend_to(len); } fragments } |