Slightly more expressive method name

This commit is contained in:
Laurenz 2021-07-26 00:29:41 +02:00
parent 7aa3d2c2d6
commit 39a561f2bb
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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(), &regions);
frame.constraints.inflate(padding.size(), &regions);
if self.padding.left.is_relative() || self.padding.right.is_relative() {
frame.constraints.base.horizontal = Some(regions.base.width);