mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibWeb: Remove StyleValue::has_rect()
This behaves identically to `is_rect()`
This commit is contained in:
parent
f60446bbfe
commit
5f755d721e
Notes:
sideshowbarker
2024-07-17 04:49:48 +09:00
Author: https://github.com/AtkinsSJ
Commit: 5f755d721e
Pull-request: https://github.com/SerenityOS/serenity/pull/19084
3 changed files with 1 additions and 3 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue