mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00: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
Notes:
sideshowbarker
2024-07-16 23:08:48 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/7d757fefeb Pull-request: https://github.com/SerenityOS/serenity/pull/22323 Reviewed-by: https://github.com/awesomekling
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