mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Rename is_replaced variable
Signed-off-by: Nico Burns <nico@nicoburns.com>
This commit is contained in:
parent
bed0a9db91
commit
9509a19dc7
1 changed files with 7 additions and 4 deletions
|
@ -12,12 +12,15 @@ use super::convert;
|
|||
/// implements Taffy's layout traits and can used with Taffy's layout algorithms.
|
||||
pub struct TaffyStyloStyle<T: Deref<Target = ComputedValues>> {
|
||||
pub style: T,
|
||||
pub is_replaced: bool,
|
||||
pub is_compressible_replaced: bool,
|
||||
}
|
||||
|
||||
impl<T: Deref<Target = ComputedValues>> TaffyStyloStyle<T> {
|
||||
pub fn new(style: T, is_replaced: bool) -> Self {
|
||||
Self { style, is_replaced }
|
||||
pub fn new(style: T, is_compressible_replaced: bool) -> Self {
|
||||
Self {
|
||||
style,
|
||||
is_compressible_replaced,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -34,7 +37,7 @@ impl<T: Deref<Target = ComputedValues>> taffy::CoreStyle for TaffyStyloStyle<T>
|
|||
|
||||
#[inline]
|
||||
fn is_compressible_replaced(&self) -> bool {
|
||||
self.is_replaced
|
||||
self.is_compressible_replaced
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue