Rename content_rect to rect in TextFragment and ImageFragment

Since they don’t have padding etc.
This commit is contained in:
Simon Sapin 2019-12-07 14:05:37 +01:00
parent ce9fc3e651
commit 6d91d77fba
4 changed files with 7 additions and 7 deletions

View file

@ -45,7 +45,7 @@ impl ReplacedContent {
.map(|image_key| {
Fragment::Image(ImageFragment {
style: style.clone(),
content_rect: flow_relative::Rect {
rect: flow_relative::Rect {
start_corner: flow_relative::Vec2::zero(),
size,
},