mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 03:57:15 +02:00
Userland: Prefer _string over _short_string
As `_string` can't fail anymore (since 3434412), there are no real
benefits to use the short variant in most cases.
This commit is contained in:
committed by
Andreas Kling
parent
a5edc9cdfc
commit
3f35ffb648
Notes:
sideshowbarker
2024-07-17 06:00:02 +09:00
Author: https://github.com/LucasChollet Commit: https://github.com/SerenityOS/serenity/commit/3f35ffb648 Pull-request: https://github.com/SerenityOS/serenity/pull/20418
@@ -15,7 +15,7 @@ namespace Web::IntersectionObserver {
|
||||
|
||||
struct IntersectionObserverInit {
|
||||
Optional<Variant<JS::Handle<DOM::Element>, JS::Handle<DOM::Document>>> root;
|
||||
String root_margin { "0px"_short_string };
|
||||
String root_margin { "0px"_string };
|
||||
Variant<double, Vector<double>> threshold { 0 };
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user