diff options
author | Keith Yeung <kungfukeith11@gmail.com> | 2015-11-16 01:32:27 -0800 |
---|---|---|
committer | Keith Yeung <kungfukeith11@gmail.com> | 2015-11-20 11:05:36 -0800 |
commit | 7de7cb47866d92ff96234f2da8a331ff655080ec (patch) | |
tree | 0d262b849ae1c33e0f7a382215c7baab01f0eb17 /components/layout/inline.rs | |
parent | a5babb89a02b9b84a8cd62554a5ceef9efb0d481 (diff) | |
download | servo-7de7cb47866d92ff96234f2da8a331ff655080ec.tar.gz servo-7de7cb47866d92ff96234f2da8a331ff655080ec.zip |
Extend whitespace::T with additional helper methods
Diffstat (limited to 'components/layout/inline.rs')
-rw-r--r-- | components/layout/inline.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/layout/inline.rs b/components/layout/inline.rs index 4cee4454620..2ddefea0392 100644 --- a/components/layout/inline.rs +++ b/components/layout/inline.rs @@ -534,7 +534,7 @@ impl LineBreaker { self.pending_line.green_zone = line_bounds.size; false } else { - fragment.white_space_allow_wrap() + fragment.white_space().allow_wrap() }; debug!("LineBreaker: trying to append to line {} (fragment size: {:?}, green zone: {:?}): \ @@ -564,7 +564,7 @@ impl LineBreaker { // If we must flush the line after finishing this fragment due to `white-space: pre`, // detect that. - let line_flush_mode = if fragment.white_space_preserve_newlines() { + let line_flush_mode = if fragment.white_space().preserve_newlines() { if fragment.requires_line_break_afterward_if_wrapping_on_newlines() { LineFlushMode::Flush } else { @@ -588,7 +588,7 @@ impl LineBreaker { // If the wrapping mode prevents us from splitting, then back up and split at the last // known good split point. - if !fragment.white_space_allow_wrap() { + if !fragment.white_space().allow_wrap() { debug!("LineBreaker: fragment can't split; falling back to last known good split point"); if !self.split_line_at_last_known_good_position() { // No line breaking opportunity exists at all for this line. Overflow. |