1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:57:35 +00:00

LibWeb: Remove StyleValue::has_rect()

This behaves identically to `is_rect()`
This commit is contained in:
Sam Atkins 2023-05-26 17:04:10 +01:00 committed by Andreas Kling
parent f60446bbfe
commit 5f755d721e
3 changed files with 1 additions and 3 deletions

View file

@ -357,7 +357,7 @@ Optional<CSS::ImageRendering> StyleProperties::image_rendering() const
CSS::Clip StyleProperties::clip() const
{
auto value = property(CSS::PropertyID::Clip);
if (!value->has_rect())
if (!value->is_rect())
return CSS::Clip::make_auto();
return CSS::Clip(value->as_rect().rect());
}