mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
script: Rename bounding_content_box to bounding_content_box_or_zero.
And make bounding_content_box preserve whether the element is rendered.
This commit is contained in:
parent
485fe874e8
commit
bdd7cb9753
6 changed files with 11 additions and 8 deletions
|
@ -625,7 +625,7 @@ impl Document {
|
|||
// Really what needs to happen is that this needs to go through layout to ask which
|
||||
// layer the element belongs to, and have it send the scroll message to the
|
||||
// compositor.
|
||||
let rect = element.upcast::<Node>().bounding_content_box();
|
||||
let rect = element.upcast::<Node>().bounding_content_box_or_zero();
|
||||
|
||||
// In order to align with element edges, we snap to unscaled pixel boundaries, since
|
||||
// the paint thread currently does the same for drawing elements. This is important
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue