Everywhere: Abandon Swift adoption

After making no progress on this for a very long time, let's acknowledge
it's not going anywhere and remove it from the codebase.
This commit is contained in:
Andreas Kling
2026-02-17 14:23:39 +01:00
committed by Tim Flynn
parent b3231ea2a0
commit e87f889e31
Notes: github-actions[bot] 2026-02-17 15:49:30 +00:00
84 changed files with 22 additions and 4747 deletions

View File

@@ -15,16 +15,6 @@
#include <LibWeb/HTML/Parser/StackOfOpenElements.h>
#include <LibWeb/MimeSniff/MimeType.h>
#ifdef LIBWEB_USE_SWIFT
# include <LibGC/ForeignCell.h>
namespace Web {
class SpeculativeHTMLParser;
}
#endif
namespace Web::HTML {
#define ENUMERATE_INSERTION_MODES \
@@ -221,22 +211,14 @@ private:
GC::Ptr<HTMLFormElement> m_form_element;
GC::Ptr<DOM::Element> m_context_element;
#ifdef LIBWEB_USE_SWIFT
GC::ForeignPtr<Web::SpeculativeHTMLParser> m_speculative_parser;
#endif
Vector<HTMLToken> m_pending_table_character_tokens;
GC::Ptr<DOM::Text> m_character_insertion_node;
StringBuilder m_character_insertion_builder { StringBuilder::Mode::UTF16 };
} SWIFT_UNSAFE_REFERENCE;
};
RefPtr<CSS::StyleValue const> parse_dimension_value(StringView);
RefPtr<CSS::StyleValue const> parse_nonzero_dimension_value(StringView);
Optional<Color> parse_legacy_color_value(StringView);
// Swift interop
using HTMLParserGCPtr = GC::Ptr<HTMLParser>;
using HTMLParserGCRef = GC::Ref<HTMLParser>;
}