mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 07:33:20 +00:00
LibWeb: Hook TrustedTypes to the Range Dom api
This commit is contained in:
parent
701ef22952
commit
bd4e3fd3e0
Notes:
github-actions[bot]
2025-10-13 12:23:37 +00:00
Author: https://github.com/tete17
Commit: bd4e3fd3e0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6424
Reviewed-by: https://github.com/Lubrsi ✅
Reviewed-by: https://github.com/tcl3
6 changed files with 43 additions and 22 deletions
|
@ -13,6 +13,7 @@
|
|||
#include <LibWeb/DOM/Node.h>
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/Selection/Selection.h>
|
||||
#include <LibWeb/TrustedTypes/TrustedHTML.h>
|
||||
#include <LibWeb/WebIDL/Types.h>
|
||||
|
||||
namespace Web::DOM {
|
||||
|
@ -91,7 +92,7 @@ public:
|
|||
|
||||
void set_associated_selection(Badge<Selection::Selection>, GC::Ptr<Selection::Selection>);
|
||||
|
||||
WebIDL::ExceptionOr<GC::Ref<DocumentFragment>> create_contextual_fragment(String const& fragment);
|
||||
WebIDL::ExceptionOr<GC::Ref<DocumentFragment>> create_contextual_fragment(TrustedTypes::TrustedHTMLOrString const& fragment);
|
||||
|
||||
template<typename Callback>
|
||||
void for_each_contained(Callback callback) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue