aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/fragment.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/fragment.rs')
-rw-r--r--components/layout/fragment.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/layout/fragment.rs b/components/layout/fragment.rs
index 309522ab43b..faa2dd4d610 100644
--- a/components/layout/fragment.rs
+++ b/components/layout/fragment.rs
@@ -724,7 +724,7 @@ impl UnscannedTextFragmentInfo {
#[inline]
pub fn from_text(text: String) -> UnscannedTextFragmentInfo {
UnscannedTextFragmentInfo {
- text: text.into_boxed_slice(),
+ text: text.into_boxed_str(),
}
}
}
@@ -2160,7 +2160,7 @@ impl Fragment {
break
}
if modified {
- unscanned_text_fragment_info.text = new_text_string.into_boxed_slice();
+ unscanned_text_fragment_info.text = new_text_string.into_boxed_str();
}
WhitespaceStrippingResult::from_unscanned_text_fragment_info(
@@ -2238,7 +2238,7 @@ impl Fragment {
for character in trailing_bidi_control_characters_to_retain.iter().rev() {
text.push(*character);
}
- unscanned_text_fragment_info.text = text.into_boxed_slice();
+ unscanned_text_fragment_info.text = text.into_boxed_str();
}
WhitespaceStrippingResult::from_unscanned_text_fragment_info(