mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
layout: to_string() -> into_string()
This commit is contained in:
parent
e9d1740e19
commit
c7dfb1d24b
5 changed files with 9 additions and 9 deletions
|
@ -451,7 +451,7 @@ impl<'a> FlowConstructor<'a> {
|
|||
// Add whitespace results. They will be stripped out later on when
|
||||
// between block elements, and retained when between inline elements.
|
||||
let fragment_info =
|
||||
SpecificFragmentInfo::UnscannedText(UnscannedTextFragmentInfo::from_text(" ".to_string()));
|
||||
SpecificFragmentInfo::UnscannedText(UnscannedTextFragmentInfo::from_text(" ".into_string()));
|
||||
let fragment = Fragment::from_opaque_node_and_style(whitespace_node,
|
||||
whitespace_style,
|
||||
whitespace_damage,
|
||||
|
@ -648,7 +648,7 @@ impl<'a> FlowConstructor<'a> {
|
|||
whitespace_damage)) => {
|
||||
// Instantiate the whitespace fragment.
|
||||
let fragment_info = SpecificFragmentInfo::UnscannedText(UnscannedTextFragmentInfo::from_text(
|
||||
" ".to_string()));
|
||||
" ".into_string()));
|
||||
let fragment = Fragment::from_opaque_node_and_style(whitespace_node,
|
||||
whitespace_style,
|
||||
whitespace_damage,
|
||||
|
@ -959,7 +959,7 @@ impl<'a> FlowConstructor<'a> {
|
|||
.list_style_type) {
|
||||
None => None,
|
||||
Some(text) => {
|
||||
let text = text.to_string();
|
||||
let text = text.into_string();
|
||||
let mut unscanned_marker_fragments = DList::new();
|
||||
unscanned_marker_fragments.push_back(Fragment::new_from_specific_info(
|
||||
node,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue