Luce packages
LuceLuce BaseLuciaOS

dymokomi/luce-browser-engine

Source of release 0.6.0

0.6.0 / src / web / initialize_strings.lucb

#==============================================================================================
#
#   initialize_strings - web_initialize_strings: the startup step that interns LibWeb's
#                        static FlyStrings
#
#   DESCRIPTION:
#       C++ initializes LibWeb's namespace-scope FlyStrings (Namespace::HTML, the tag, attribute
#       and event names, ...) before main. In the port a FlyString longer than a short string is
#       interned at run time, so each group has an initializer and this function runs them all;
#       the embedder calls it once before creating a page (DESIGN.md ยง2.6). Each region that
#       ports a group of FlyStrings adds its initializer here.
#
#==============================================================================================

## Interns every static FlyString of the module. Safe to call more than once.
pub func web_initialize_strings():
    namespace_initialize_strings()
    html_tag_names_initialize_strings()
    html_attribute_names_initialize_strings()
    svg_tag_names_initialize_strings()
    svg_attribute_names_initialize_strings()
    math_ml_tag_names_initialize_strings()
    math_ml_attribute_names_initialize_strings()
    aria_attribute_names_initialize_strings()
    x_link_attribute_names_initialize_strings()
    html_stack_of_open_elements_initialize_strings()
    html_event_names_initialize_strings()
    ui_events_event_names_initialize_strings()
    performance_timeline_initialize_strings()
    gamepad_event_names_initialize_strings()
    dom_mutation_type_initialize_strings()
    trusted_types_initialize_strings()
    content_security_policy_directives_names_initialize_strings()
    content_security_policy_directives_keyword_sources_initialize_strings()
    content_security_policy_directives_keyword_trusted_types_initialize_strings()