mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 01:41:59 -05:00
LibWeb: Remove FIXME if paintable is missing in getBoundingClientRect()
We should not print FIXME when paintable is missing (display: none) because that means actually we can't to get a rect.
This commit is contained in:
parent
8f8ec37d58
commit
7d757fefeb
1 changed files with 4 additions and 1 deletions
|
@ -852,7 +852,10 @@ JS::NonnullGCPtr<Geometry::DOMRect> Element::get_bounding_client_rect() const
|
|||
return Geometry::DOMRect::create(realm(), absolute_rect.to_type<float>());
|
||||
}
|
||||
|
||||
dbgln("FIXME: Failed to get bounding client rect for element ({})", debug_description());
|
||||
if (paintable) {
|
||||
dbgln("FIXME: Failed to get bounding client rect for element ({})", debug_description());
|
||||
}
|
||||
|
||||
return Geometry::DOMRect::construct_impl(realm(), 0, 0, 0, 0).release_value_but_fixme_should_propagate_errors();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue