LibHTML: Create some subdirectories.

This commit is contained in:
Andreas Kling 2019-06-15 23:41:15 +02:00
parent 0522a8f71c
commit 1f51c2b7da
Notes: sideshowbarker 2024-07-19 13:35:25 +09:00
25 changed files with 49 additions and 50 deletions

View File

@ -1,6 +1,6 @@
#include <LibHTML/Document.h>
#include <LibHTML/Element.h>
#include <LibHTML/LayoutDocument.h>
#include <LibHTML/DOM/Document.h>
#include <LibHTML/DOM/Element.h>
#include <LibHTML/Layout/LayoutDocument.h>
#include <stdio.h>
Document::Document()

View File

@ -1,7 +1,7 @@
#pragma once
#include <AK/AKString.h>
#include <LibHTML/ParentNode.h>
#include <LibHTML/DOM/ParentNode.h>
class LayoutNode;

View File

@ -1,6 +1,6 @@
#include <LibHTML/Element.h>
#include <LibHTML/LayoutBlock.h>
#include <LibHTML/LayoutInline.h>
#include <LibHTML/DOM/Element.h>
#include <LibHTML/Layout/LayoutBlock.h>
#include <LibHTML/Layout/LayoutInline.h>
Element::Element(const String& tag_name)
: ParentNode(NodeType::ELEMENT_NODE)

View File

@ -1,6 +1,6 @@
#pragma once
#include <LibHTML/ParentNode.h>
#include <LibHTML/DOM/ParentNode.h>
#include <AK/AKString.h>
class Attribute {

View File

@ -1,5 +1,5 @@
#include <LibHTML/Node.h>
#include <LibHTML/LayoutNode.h>
#include <LibHTML/DOM/Node.h>
#include <LibHTML/Layout/LayoutNode.h>
Node::Node(NodeType type)
: m_type(type)

View File

@ -1,4 +1,4 @@
#include <LibHTML/ParentNode.h>
#include <LibHTML/DOM/ParentNode.h>
void ParentNode::append_child(Retained<Node> node)
{

View File

@ -1,6 +1,6 @@
#pragma once
#include <LibHTML/Node.h>
#include <LibHTML/DOM/Node.h>
class ParentNode : public Node {
public:

View File

@ -1,5 +1,5 @@
#include <LibHTML/Text.h>
#include <LibHTML/LayoutText.h>
#include <LibHTML/DOM/Text.h>
#include <LibHTML/Layout/LayoutText.h>
Text::Text(const String& data)
: Node(NodeType::TEXT_NODE)

View File

@ -1,7 +1,7 @@
#pragma once
#include <AK/AKString.h>
#include <LibHTML/Node.h>
#include <LibHTML/DOM/Node.h>
class Text final : public Node {
public:

View File

@ -1,9 +1,9 @@
#include <LibHTML/Document.h>
#include <LibHTML/DOM/Document.h>
#include <LibHTML/DOM/Element.h>
#include <LibHTML/DOM/Text.h>
#include <LibHTML/Dump.h>
#include <LibHTML/Element.h>
#include <LibHTML/LayoutNode.h>
#include <LibHTML/LayoutText.h>
#include <LibHTML/Text.h>
#include <LibHTML/Layout/LayoutNode.h>
#include <LibHTML/Layout/LayoutText.h>
#include <stdio.h>
void dump_tree(const Node& node)

View File

@ -1,5 +1,5 @@
#include <LibHTML/Element.h>
#include <LibHTML/LayoutBlock.h>
#include <LibHTML/DOM/Element.h>
#include <LibHTML/Layout/LayoutBlock.h>
LayoutBlock::LayoutBlock(Element& element)
: LayoutNode(&element)

View File

@ -1,6 +1,6 @@
#pragma once
#include <LibHTML/LayoutNode.h>
#include <LibHTML/Layout/LayoutNode.h>
class Element;

View File

@ -1,4 +1,4 @@
#include <LibHTML/LayoutDocument.h>
#include <LibHTML/Layout/LayoutDocument.h>
LayoutDocument::LayoutDocument(const Document& document)
: LayoutNode(&document)

View File

@ -1,7 +1,7 @@
#pragma once
#include <LibHTML/LayoutNode.h>
#include <LibHTML/Document.h>
#include <LibHTML/Layout/LayoutNode.h>
#include <LibHTML/DOM/Document.h>
class LayoutDocument : public LayoutNode {
public:

View File

@ -1,5 +1,5 @@
#include <LibHTML/Element.h>
#include <LibHTML/LayoutInline.h>
#include <LibHTML/DOM/Element.h>
#include <LibHTML/Layout/LayoutInline.h>
LayoutInline::LayoutInline(Element& element)
: LayoutNode(&element)

View File

@ -1,6 +1,6 @@
#pragma once
#include <LibHTML/LayoutNode.h>
#include <LibHTML/Layout/LayoutNode.h>
class Element;

View File

@ -1,4 +1,4 @@
#include <LibHTML/LayoutNode.h>
#include <LibHTML/Layout/LayoutNode.h>
LayoutNode::LayoutNode(const Node* node)
: m_node(node)

View File

@ -1,4 +1,4 @@
#include <LibHTML/LayoutText.h>
#include <LibHTML/Layout/LayoutText.h>
#include <ctype.h>
LayoutText::LayoutText(const Text& text)

View File

@ -1,7 +1,7 @@
#pragma once
#include <LibHTML/LayoutNode.h>
#include <LibHTML/Text.h>
#include <LibHTML/Layout/LayoutNode.h>
#include <LibHTML/DOM/Text.h>
class LayoutText : public LayoutNode {
public:

View File

@ -1,17 +1,17 @@
include ../Makefile.common
LIBHTML_OBJS = \
Node.o \
ParentNode.o \
Element.o \
Document.o \
Text.o \
Parser.o \
LayoutNode.o \
LayoutText.o \
LayoutBlock.o \
LayoutInline.o \
LayoutDocument.o \
DOM/Node.o \
DOM/ParentNode.o \
DOM/Element.o \
DOM/Document.o \
DOM/Text.o \
Parser/Parser.o \
Layout/LayoutNode.o \
Layout/LayoutText.o \
Layout/LayoutBlock.o \
Layout/LayoutInline.o \
Layout/LayoutDocument.o \
Dump.o
TEST_OBJS = test.o

View File

@ -1,6 +1,6 @@
#include <LibHTML/Element.h>
#include <LibHTML/Parser.h>
#include <LibHTML/Text.h>
#include <LibHTML/DOM/Element.h>
#include <LibHTML/DOM/Text.h>
#include <LibHTML/Parser/Parser.h>
#include <ctype.h>
#include <stdio.h>

View File

@ -1,7 +1,7 @@
#pragma once
#include <AK/Retained.h>
#include <LibHTML/Document.h>
#include <LibHTML/DOM/Document.h>
Retained<Document> parse(const String& html);

View File

@ -1,7 +1,6 @@
#include <LibCore/CFile.h>
#include <LibHTML/Dump.h>
#include <LibHTML/Element.h>
#include <LibHTML/Parser.h>
#include <LibHTML/Parser/Parser.h>
#include <stdio.h>
int main(int argc, char** argv)