diff options
author | bors-servo <release+servo@mozilla.com> | 2014-05-05 21:01:24 -0400 |
---|---|---|
committer | bors-servo <release+servo@mozilla.com> | 2014-05-05 21:01:24 -0400 |
commit | b6c785692645b22c8b6119cb28109e85e703e430 (patch) | |
tree | f7f6b1680383b6014724deed7382842e9aebcd5b /src/components/main/layout/construct.rs | |
parent | b14b2eca372ea91dc40af66b1f8a9cd510c37abf (diff) | |
parent | 42bf406411065f958f9ef7943f951c2c905a6052 (diff) | |
download | servo-b6c785692645b22c8b6119cb28109e85e703e430.tar.gz servo-b6c785692645b22c8b6119cb28109e85e703e430.zip |
auto merge of #2337 : bjz/servo/smallvec, r=pcwalton
We can't replace the ones in the `style` crate because some functions expect generic `SmallVec`s.
I also did some reorganisation of the `smallvec` macros.
cc @pcwalton
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 b5aeaa65d2b..e7523039551 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; @@ -1163,7 +1162,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"); |