mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
Documentation: Add missing step when creating a new IDL type
If you use your new IDL class as a type in an IDL file without doing this, you'll get confusing error messages.
This commit is contained in:
parent
9075dea3a8
commit
5fbcda950b
Notes:
sideshowbarker
2024-07-17 08:17:38 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/5fbcda950b Pull-request: https://github.com/SerenityOS/serenity/pull/14839
1 changed files with 3 additions and 0 deletions
|
@ -44,3 +44,6 @@ interface CSSRule {
|
|||
- Elements: [`LibWeb/Bindings/NodeWrapperFactory.cpp`](../../Userland/Libraries/LibWeb/Bindings/NodeWrapperFactory.cpp)
|
||||
|
||||
Open the relevant wrapper factory file, and add `#include` directives and an `if` statement for your new type.
|
||||
|
||||
8. If your type isn't an Event or Element, you will need to add it to [`is_wrappable_type()`](../../Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator/IDLGenerators.cpp)
|
||||
so that it can be accepted as an IDL parameter, attribute or return type.
|
||||
|
|
Loading…
Reference in a new issue