mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 23:09:08 +00:00
LibWeb: Reduce SelectItemOption struct from 40 to 32 bytes
This commit is contained in:
parent
566870b2bd
commit
1bdc41faa1
Notes:
github-actions[bot]
2024-11-11 16:07:12 +00:00
Author: https://github.com/shlyakpavel
Commit: 1bdc41faa1
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2280
3 changed files with 5 additions and 5 deletions
|
@ -27,7 +27,7 @@ ErrorOr<Web::HTML::SelectItemOption> IPC::decode(Decoder& decoder)
|
|||
auto value = TRY(decoder.decode<String>());
|
||||
auto selected = TRY(decoder.decode<bool>());
|
||||
auto disabled = TRY(decoder.decode<bool>());
|
||||
return Web::HTML::SelectItemOption { id, move(label), move(value), selected, disabled };
|
||||
return Web::HTML::SelectItemOption { id, selected, disabled, {}, move(label), move(value) };
|
||||
}
|
||||
|
||||
template<>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue