mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
Rename content_rect to rect in TextFragment and ImageFragment
Since they don’t have padding etc.
This commit is contained in:
parent
ce9fc3e651
commit
6d91d77fba
4 changed files with 7 additions and 7 deletions
|
@ -53,7 +53,7 @@ impl Fragment {
|
|||
Fragment::Text(t) => {
|
||||
is_contentful.0 = true;
|
||||
let rect = t
|
||||
.content_rect
|
||||
.rect
|
||||
.to_physical(t.parent_style.writing_mode, containing_block)
|
||||
.translate(&containing_block.top_left);
|
||||
let mut baseline_origin = rect.top_left.clone();
|
||||
|
@ -79,7 +79,7 @@ impl Fragment {
|
|||
use style::computed_values::image_rendering::T as ImageRendering;
|
||||
is_contentful.0 = true;
|
||||
let rect = i
|
||||
.content_rect
|
||||
.rect
|
||||
.to_physical(i.style.writing_mode, containing_block)
|
||||
.translate(&containing_block.top_left);
|
||||
let common = CommonItemProperties {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue