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:
Aliaksandr Kalenik 2023-12-16 15:53:29 +01:00 committed by Andreas Kling
parent 8f8ec37d58
commit 7d757fefeb
Notes: sideshowbarker 2024-07-16 23:08:48 +09:00

View file

@ -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();
}