mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
Merge pull request #3500 from glennw/warning-fix
Fix some mutable variable warnings. Reviewed-by: pcwalton
This commit is contained in:
commit
f7e5d29518
1 changed files with 2 additions and 2 deletions
|
@ -540,7 +540,7 @@ impl Fragment {
|
|||
/// `border_padding`. Other consumers of this information should simply consult that field.
|
||||
#[inline]
|
||||
fn border_width(&self) -> LogicalMargin<Au> {
|
||||
let mut style_border_width = match self.specific {
|
||||
let style_border_width = match self.specific {
|
||||
ScannedTextFragment(_) => LogicalMargin::zero(self.style.writing_mode),
|
||||
_ => self.style().logical_border_width(),
|
||||
};
|
||||
|
@ -584,7 +584,7 @@ impl Fragment {
|
|||
TableColumnFragment(_) | TableRowFragment |
|
||||
TableWrapperFragment => LogicalMargin::zero(self.style.writing_mode),
|
||||
_ => {
|
||||
let mut style_padding = match self.specific {
|
||||
let style_padding = match self.specific {
|
||||
ScannedTextFragment(_) => LogicalMargin::zero(self.style.writing_mode),
|
||||
_ => model::padding_from_style(self.style(), containing_block_inline_size),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue