mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-05 18:52:56 +00:00
LibWeb+LibGC: Import GC swift module into LibWeb and an initial user
Start work on a speculative HTML Parser in Swift. This component will walk ahead of the normal HTML parser looking for fetch() requests to make while the normal parser is blocked. This work exposed many holes in the Swift C++ interop component, which have been reported upstream.
This commit is contained in:
parent
8554ee386e
commit
9ee2473aa4
Notes:
github-actions[bot]
2025-04-03 22:49:20 +00:00
Author: https://github.com/ADKaster
Commit: 9ee2473aa4
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4053
5 changed files with 70 additions and 4 deletions
|
@ -214,10 +214,14 @@ private:
|
|||
|
||||
GC::Ptr<DOM::Text> m_character_insertion_node;
|
||||
StringBuilder m_character_insertion_builder;
|
||||
};
|
||||
} SWIFT_UNSAFE_REFERENCE;
|
||||
|
||||
RefPtr<CSS::CSSStyleValue> parse_dimension_value(StringView);
|
||||
RefPtr<CSS::CSSStyleValue> parse_nonzero_dimension_value(StringView);
|
||||
Optional<Color> parse_legacy_color_value(StringView);
|
||||
|
||||
// Swift interop
|
||||
using HTMLParserGCPtr = GC::Ptr<HTMLParser>;
|
||||
using HTMLParserGCRef = GC::Ref<HTMLParser>;
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue