diff options
author | Brendan Zabarauskas <bjzaba@yahoo.com.au> | 2014-05-05 16:59:12 -0700 |
---|---|---|
committer | Brendan Zabarauskas <bjzaba@yahoo.com.au> | 2014-05-05 16:59:12 -0700 |
commit | 42bf406411065f958f9ef7943f951c2c905a6052 (patch) | |
tree | d77e389866cc278de5bc3bdc4b6a1bbf6f0c47ed /src/components/main/layout/construct.rs | |
parent | b24cc8072b4d74fe62d3a6e1f10c6bb701ef11bb (diff) | |
download | servo-42bf406411065f958f9ef7943f951c2c905a6052.tar.gz servo-42bf406411065f958f9ef7943f951c2c905a6052.zip |
Replace most of the SmallVec0 usages with std::vec::Vec
We can't replace the ones in the `style` crate because some functions expect generic `SmallVec`s.
Diffstat (limited to 'src/components/main/layout/construct.rs')
-rw-r--r-- | src/components/main/layout/construct.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/components/main/layout/construct.rs b/src/components/main/layout/construct.rs index 42a3d87ee0e..7d2f837ccce 100644 --- a/src/components/main/layout/construct.rs +++ b/src/components/main/layout/construct.rs @@ -57,7 +57,6 @@ use script::dom::node::{TextNodeTypeId}; use script::dom::text::Text; use servo_util::namespace; use servo_util::range::Range; -use servo_util::smallvec::{SmallVec, SmallVec0}; use servo_util::str::is_whitespace; use servo_util::url::{is_image_data, parse_url}; use std::mem; @@ -1226,7 +1225,7 @@ fn strip_ignorable_whitespace_from_start(boxes: &mut InlineBoxes) { // FIXME(#2264, pcwalton): This is slow because vector shift is broken. :( let mut found_nonwhitespace = false; - let mut new_boxes = SmallVec0::new(); + let mut new_boxes = Vec::new(); for fragment in old_boxes.iter() { if !found_nonwhitespace && fragment.is_whitespace_only() { debug!("stripping ignorable whitespace from start"); |