mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 02:27:19 +02:00
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:
Notes:
github-actions[bot]
2026-02-17 15:49:30 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/e87f889e31a
@@ -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>;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user