diff options
author | Manish Goregaokar <manishearth@gmail.com> | 2017-07-17 11:41:52 -0700 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2017-07-17 18:02:25 -0700 |
commit | 808b1f509b7e1524cfc49f7cc1fc89fd5f8e5737 (patch) | |
tree | b6f4e04c1d0a4e427b2360d60abb02eea8e5aec8 /components/layout/text.rs | |
parent | 04b0ae64f2fe606744142e353388749fe283a8ad (diff) | |
download | servo-808b1f509b7e1524cfc49f7cc1fc89fd5f8e5737.tar.gz servo-808b1f509b7e1524cfc49f7cc1fc89fd5f8e5737.zip |
stylo: Use ComputedValuesInner instead of ComputedValues when we don't need it
Diffstat (limited to 'components/layout/text.rs')
-rw-r--r-- | components/layout/text.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/text.rs b/components/layout/text.rs index 10093f251b8..ab2f941fc03 100644 --- a/components/layout/text.rs +++ b/components/layout/text.rs @@ -26,7 +26,7 @@ use std::sync::Arc; use style::computed_values::{text_rendering, text_transform}; use style::computed_values::{word_break, white_space}; use style::logical_geometry::{LogicalSize, WritingMode}; -use style::properties::ServoComputedValues; +use style::properties::ComputedValues; use style::properties::style_structs; use style::values::generics::text::LineHeight; use unicode_bidi as bidi; @@ -445,7 +445,7 @@ pub fn font_metrics_for_style(font_context: &mut FontContext, font_style: ::Styl } /// Returns the line block-size needed by the given computed style and font size. -pub fn line_height_from_style(style: &ServoComputedValues, metrics: &FontMetrics) -> Au { +pub fn line_height_from_style(style: &ComputedValues, metrics: &FontMetrics) -> Au { let font_size = style.get_font().font_size; match style.get_inheritedtext().line_height { LineHeight::Normal => metrics.line_gap, |