1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-23 19:37:34 +00:00
serenity/Libraries/LibWeb
Andreas Kling 1d468ed6d3 AK: Stop allowing implicit downcast with RefPtr and NonnullRefPtr
We were allowing this dangerous kind of thing:

RefPtr<Base> base;
RefPtr<Derived> derived = base;

This patch changes the {Nonnull,}RefPtr constructors so this is no
longer possible.

To downcast one of these pointers, there is now static_ptr_cast<T>:

RefPtr<Derived> derived = static_ptr_cast<Derived>(base);

Fixing this exposed a ton of cowboy-downcasts in various places,
which we're now forced to fix. :^)
2020-04-05 11:19:00 +02:00
..
Bindings LibWeb: Add window.setTimeout() 2020-04-05 00:56:16 +02:00
CodeGenerators AK: Add FlyString, a simple flyweight string class 2020-03-22 13:03:43 +01:00
CSS LibWeb: CSS: Add "position: absolute" with top and left 2020-03-23 20:17:29 +01:00
DOM AK: Stop allowing implicit downcast with RefPtr and NonnullRefPtr 2020-04-05 11:19:00 +02:00
Layout LibWeb: Implement <script src> support for synchronous scripts 2020-04-03 23:06:09 +02:00
Parser AK: Stop allowing implicit downcast with RefPtr and NonnullRefPtr 2020-04-05 11:19:00 +02:00
Scripts LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
DOMTreeModel.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
DOMTreeModel.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
Dump.cpp LibWeb: Support more advanced selectors in document.querySelectorAll() 2020-03-30 11:35:39 +02:00
Dump.h LibWeb: Add naive support for document.querySelectorAll() 2020-03-30 11:35:39 +02:00
FontCache.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
FontCache.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
Forward.h LibWeb+LibJS: Move DOM Window object to dedicated classes 2020-04-01 18:57:00 +02:00
Frame.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
Frame.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
HtmlView.cpp LibWeb: Handle javascript: URLs inside LibWeb :^) 2020-04-04 22:12:37 +02:00
HtmlView.h LibWeb: Handle javascript: URLs inside LibWeb :^) 2020-04-04 22:12:37 +02:00
Makefile LibWeb: Add NavigatorObject to Makefile 2020-04-03 20:04:21 +02:00
RenderingContext.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
ResourceLoader.cpp ProtocolServer+LibProtocol: Reject unhandled URLs instead of asserting 2020-04-04 20:01:36 +02:00
ResourceLoader.h LibWeb: Add ResourceLoader::load_sync() 2020-04-03 22:58:05 +02:00
StylePropertiesModel.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
StylePropertiesModel.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
TreeNode.h LibWeb: Implement <script src> support for synchronous scripts 2020-04-03 23:06:09 +02:00