diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-07-26 00:29:41 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-07-26 00:29:41 +0200 |
| commit | 39a561f2bbb0b37eb5ce67e9735b01d0b75477cf (patch) | |
| tree | 7c8de0c2213528fecc8748106b124958e65b0d88 /src | |
| parent | 7aa3d2c2d6c60c9d4696bf2fb91982a5be64f9b0 (diff) | |
Slightly more expressive method name
Diffstat (limited to 'src')
| -rw-r--r-- | src/layout/incremental.rs | 2 | ||||
| -rw-r--r-- | src/layout/pad.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/layout/incremental.rs b/src/layout/incremental.rs index 60486d2f..cbd55330 100644 --- a/src/layout/incremental.rs +++ b/src/layout/incremental.rs @@ -251,7 +251,7 @@ impl Constraints { } /// Changes all constraints by adding the `size` to them if they are `Some`. - pub fn mutate(&mut self, size: Size, regions: &Regions) { + pub fn inflate(&mut self, size: Size, regions: &Regions) { for spec in [ &mut self.min, &mut self.max, diff --git a/src/layout/pad.rs b/src/layout/pad.rs index 619bee41..31571bb3 100644 --- a/src/layout/pad.rs +++ b/src/layout/pad.rs @@ -31,7 +31,7 @@ impl Layout for PadNode { let prev = std::mem::take(&mut frame.item); new.push_frame(origin, prev); - frame.constraints.mutate(padding.size(), ®ions); + frame.constraints.inflate(padding.size(), ®ions); if self.padding.left.is_relative() || self.padding.right.is_relative() { frame.constraints.base.horizontal = Some(regions.base.width); |
