mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Stylo: replace product={gecko,servo} with engine={gecko,servo-2013,servo-2020}
Renaming the variable helped make sure I looked at every use.
This commit is contained in:
parent
f1300bb98b
commit
ddb4e369dd
52 changed files with 870 additions and 469 deletions
|
@ -172,17 +172,16 @@ impl TextDecorationsInEffect {
|
|||
/// Computes the text-decorations in effect for a given style.
|
||||
#[cfg(feature = "servo")]
|
||||
pub fn from_style(style: &StyleBuilder) -> Self {
|
||||
use crate::values::computed::Display;
|
||||
|
||||
// Start with no declarations if this is an atomic inline-level box;
|
||||
// otherwise, start with the declarations in effect and add in the text
|
||||
// decorations that this block specifies.
|
||||
let mut result = match style.get_box().clone_display() {
|
||||
Display::InlineBlock | Display::InlineTable => Self::default(),
|
||||
_ => style
|
||||
let mut result = if style.get_box().clone_display().is_atomic_inline_level() {
|
||||
Self::default()
|
||||
} else {
|
||||
style
|
||||
.get_parent_inherited_text()
|
||||
.text_decorations_in_effect
|
||||
.clone(),
|
||||
.clone()
|
||||
};
|
||||
|
||||
let line = style.get_text().clone_text_decoration_line();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue