mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-05 23:59:53 +00:00
LibWeb: Refactor int types in WebContentServer to DevicePixels
This commit is contained in:
parent
8730e56f62
commit
c069ab1ca0
Notes:
sideshowbarker
2024-07-16 22:11:09 +09:00
Author: https://github.com/bplaat
Commit: c069ab1ca0
Pull-request: https://github.com/SerenityOS/serenity/pull/22283
Reviewed-by: https://github.com/kalenikaliaksandr ✅
18 changed files with 169 additions and 69 deletions
|
@ -70,7 +70,7 @@ static bool is_primitive_type(DeprecatedString const& type)
|
|||
static bool is_simple_type(DeprecatedString const& type)
|
||||
{
|
||||
// Small types that it makes sense just to pass by value.
|
||||
return type.is_one_of("Gfx::Color", "Gfx::IntPoint", "Gfx::FloatPoint", "Gfx::IntSize", "Gfx::FloatSize", "Core::File::OpenMode");
|
||||
return type.is_one_of("Gfx::Color", "Gfx::IntPoint", "Gfx::FloatPoint", "Web::DevicePixelPoint", "Gfx::IntSize", "Gfx::FloatSize", "Web::DevicePixelSize", "Core::File::OpenMode");
|
||||
}
|
||||
|
||||
static bool is_primitive_or_simple_type(DeprecatedString const& type)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue