mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Remove dead code from layout.
This commit is contained in:
parent
de23fef9ca
commit
5ec1cdea9b
11 changed files with 4 additions and 116 deletions
|
@ -37,7 +37,7 @@ use std::sync::{Arc, Mutex};
|
|||
use string_cache::Atom;
|
||||
use style::computed_values::content::ContentItem;
|
||||
use style::computed_values::{border_collapse, clear, display, mix_blend_mode, overflow_wrap};
|
||||
use style::computed_values::{overflow_x, position, text_align, text_decoration, transform_style};
|
||||
use style::computed_values::{overflow_x, position, text_decoration, transform_style};
|
||||
use style::computed_values::{white_space, word_break, z_index};
|
||||
use style::properties::ComputedValues;
|
||||
use style::values::computed::{LengthOrPercentage, LengthOrPercentageOrAuto};
|
||||
|
@ -812,11 +812,6 @@ impl Fragment {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn reset_inline_sizes(&mut self) {
|
||||
self.border_padding = LogicalMargin::zero(self.style.writing_mode);
|
||||
self.margin = LogicalMargin::zero(self.style.writing_mode);
|
||||
}
|
||||
|
||||
/// Returns a debug ID of this fragment. This ID should not be considered stable across
|
||||
/// multiple layouts or fragment manipulations.
|
||||
pub fn debug_id(&self) -> u16 {
|
||||
|
@ -1239,12 +1234,6 @@ impl Fragment {
|
|||
&*self.style
|
||||
}
|
||||
|
||||
/// Returns the text alignment of the computed style of the nearest ancestor-or-self `Element`
|
||||
/// node.
|
||||
pub fn text_align(&self) -> text_align::T {
|
||||
self.style().get_inheritedtext().text_align
|
||||
}
|
||||
|
||||
pub fn white_space(&self) -> white_space::T {
|
||||
self.style().get_inheritedtext().white_space
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue