mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +01:00
Remove unused Fragment::needs_clip method
This commit is contained in:
parent
f7e371fdfd
commit
946d135a1d
1 changed files with 0 additions and 8 deletions
|
@ -1395,14 +1395,6 @@ impl Fragment {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns true if the contents should be clipped (i.e. if `overflow` is not `visible`).
|
|
||||||
pub fn needs_clip(&self) -> bool {
|
|
||||||
match self.style().get_box().overflow {
|
|
||||||
overflow::visible => true,
|
|
||||||
overflow::hidden | overflow::auto | overflow::scroll => false,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// A helper function to return a debug string describing the side offsets for one of the rect
|
/// A helper function to return a debug string describing the side offsets for one of the rect
|
||||||
/// box model properties (border, padding, or margin).
|
/// box model properties (border, padding, or margin).
|
||||||
fn side_offsets_debug_fmt(&self, name: &str,
|
fn side_offsets_debug_fmt(&self, name: &str,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue