mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibHTML: Get rid of the style tree
We now create a layout tree directly from the DOM tree. This way we don't actually lose text nodes ^)
This commit is contained in:
parent
a9ebd676e5
commit
fd0aa5dd43
Notes:
sideshowbarker
2024-07-19 11:57:10 +09:00
Author: https://github.com/bugaevc
Commit: fd0aa5dd43
Pull-request: https://github.com/SerenityOS/serenity/pull/609
Reviewed-by: https://github.com/awesomekling ✅
22 changed files with 126 additions and 261 deletions
|
@ -1,15 +1,16 @@
|
|||
#pragma once
|
||||
|
||||
#include <LibHTML/Layout/LayoutBlock.h>
|
||||
#include <LibHTML/DOM/Document.h>
|
||||
#include <LibHTML/Layout/LayoutBlock.h>
|
||||
|
||||
class LayoutDocument final : public LayoutBlock {
|
||||
public:
|
||||
LayoutDocument(const Document&, const StyledNode&);
|
||||
LayoutDocument(const Document&, StyleProperties&&);
|
||||
virtual ~LayoutDocument() override;
|
||||
|
||||
const Document& node() const { return static_cast<const Document&>(*LayoutNode::node()); }
|
||||
virtual const char* class_name() const override { return "LayoutDocument"; }
|
||||
virtual void layout() override;
|
||||
|
||||
private:
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue