Skip to content

Commit

Permalink
Move CSS text-overflow property from InheritedText to Text
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricioc committed Apr 5, 2016
1 parent b568b72 commit 347cf05
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/layout/incremental.rs
Expand Up @@ -185,7 +185,7 @@ pub fn compute_damage(old: Option<&Arc<ServoComputedValues>>, new: &ServoCompute
get_inheritedtext.letter_spacing, get_inheritedtext.text_rendering,
get_inheritedtext.text_transform, get_inheritedtext.word_spacing,
get_inheritedtext.overflow_wrap, get_inheritedtext.text_justify,
get_inheritedtext.white_space, get_inheritedtext.word_break, get_inheritedtext.text_overflow,
get_inheritedtext.white_space, get_inheritedtext.word_break, get_text.text_overflow,
get_font.font_family, get_font.font_style, get_font.font_variant, get_font.font_weight,
get_font.font_size, get_font.font_stretch,
get_inheritedbox.direction, get_inheritedbox.writing_mode,
Expand Down
2 changes: 1 addition & 1 deletion components/layout/inline.rs
Expand Up @@ -671,7 +671,7 @@ impl LineBreaker {
let mut need_ellipsis = false;
let available_inline_size = self.pending_line.green_zone.inline -
self.pending_line.bounds.size.inline - indentation;
match (fragment.style().get_inheritedtext().text_overflow,
match (fragment.style().get_text().text_overflow,
fragment.style().get_box().overflow_x) {
(text_overflow::T::clip, _) | (_, overflow_x::T::visible) => {}
(text_overflow::T::ellipsis, _) => {
Expand Down
4 changes: 2 additions & 2 deletions components/style/properties.mako.rs
Expand Up @@ -2162,8 +2162,6 @@ pub mod longhands {
// TODO(pcwalton): Support `word-break: keep-all` once we have better CJK support.
${single_keyword("word-break", "normal break-all")}

${single_keyword("text-overflow", "clip ellipsis")}

// TODO(pcwalton): Support `text-justify: distribute`.
${single_keyword("text-justify", "auto none inter-word")}

Expand All @@ -2172,6 +2170,8 @@ pub mod longhands {
Method("has_overline", "bool"),
Method("has_line_through", "bool")])}

${single_keyword("text-overflow", "clip ellipsis")}

${single_keyword("unicode-bidi", "normal embed isolate bidi-override isolate-override plaintext")}

<%self:longhand name="text-decoration" custom_cascade="True">
Expand Down

0 comments on commit 347cf05

Please sign in to comment.