summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Bindings/LegacyPlatformObject.cpp
AgeCommit message (Collapse)Author
2023-01-10LibWeb: Move passing of Web object prototypes out of constructorsTimothy Flynn
2023-01-09AK+Everywhere: Rename FlyString to DeprecatedFlyStringTimothy Flynn
DeprecatedFlyString relies heavily on DeprecatedString's StringImpl, so let's rename it to A) match the name of DeprecatedString, B) write a new FlyString class that is tied to String.
2022-12-07LibJS: Replace standalone js_string() with PrimitiveString::create()Linus Groh
Note that js_rope_string() has been folded into this, the old name was misleading - it would not always create a rope string, only if both sides are not empty strings. Use a three-argument create() overload instead.
2022-12-06AK+Everywhere: Rename String to DeprecatedStringLinus Groh
We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
2022-10-29LibWeb: Ensure dom_exception_to_throw_completion() always takes a VMLinus Groh
The combination of template + auto&& parameter + constexpr if statements allowed one caller to pass in a GlobalObject, without the compiler complaining.
2022-10-01LibWeb: Cleanup unecessary uses and includes of HTML::WindowAndrew Kaster
The big global refactor left some stragglers behind for atomicity. Clean up the rest, and remove a ton of includes of LibWeb/HTML/Window.h
2022-09-06LibWeb: Add Bindings::LegacyPlatformObject base classAndreas Kling
This will be inherited by "legacy platform objects", i.e objects that need to hijack indexed and/or named property access as described in the IDL spec: https://webidl.spec.whatwg.org/#dfn-legacy-platform-object Instead of overriding JS::Object virtuals, subclasses only need to implement a very simple interface for property queries. Note that this code is taken verbatim from code generator output. I didn't write any of this now, so it's effectively "moved" code.