1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:47:35 +00:00

LibWeb: Implement the rest of the Adoption Agency Algorithm

This gets us 2 points on html5test.com :^)
- Before: https://html5te.st/4cf57659bc08272e (208)
- After: https://html5te.st/fb8a9259bda1c115 (210)
This commit is contained in:
Simon Wanner 2022-03-20 02:11:42 +01:00 committed by Andreas Kling
parent e165ae5b60
commit 1d95745901
6 changed files with 226 additions and 30 deletions

View file

@ -28,6 +28,9 @@ public:
void add(DOM::Element& element);
void add_marker();
void insert_at(size_t index, DOM::Element& element);
void replace(DOM::Element& to_remove, DOM::Element& to_add);
void remove(DOM::Element&);
@ -38,6 +41,8 @@ public:
void clear_up_to_the_last_marker();
Optional<size_t> find_index(DOM::Element const&) const;
private:
Vector<Entry> m_entries;
};