mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00:00
LibHTML: Create some subdirectories.
This commit is contained in:
parent
0522a8f71c
commit
1f51c2b7da
25 changed files with 49 additions and 50 deletions
|
@ -1,6 +1,6 @@
|
||||||
#include <LibHTML/Document.h>
|
#include <LibHTML/DOM/Document.h>
|
||||||
#include <LibHTML/Element.h>
|
#include <LibHTML/DOM/Element.h>
|
||||||
#include <LibHTML/LayoutDocument.h>
|
#include <LibHTML/Layout/LayoutDocument.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
Document::Document()
|
Document::Document()
|
|
@ -1,7 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <AK/AKString.h>
|
#include <AK/AKString.h>
|
||||||
#include <LibHTML/ParentNode.h>
|
#include <LibHTML/DOM/ParentNode.h>
|
||||||
|
|
||||||
class LayoutNode;
|
class LayoutNode;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include <LibHTML/Element.h>
|
#include <LibHTML/DOM/Element.h>
|
||||||
#include <LibHTML/LayoutBlock.h>
|
#include <LibHTML/Layout/LayoutBlock.h>
|
||||||
#include <LibHTML/LayoutInline.h>
|
#include <LibHTML/Layout/LayoutInline.h>
|
||||||
|
|
||||||
Element::Element(const String& tag_name)
|
Element::Element(const String& tag_name)
|
||||||
: ParentNode(NodeType::ELEMENT_NODE)
|
: ParentNode(NodeType::ELEMENT_NODE)
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <LibHTML/ParentNode.h>
|
#include <LibHTML/DOM/ParentNode.h>
|
||||||
#include <AK/AKString.h>
|
#include <AK/AKString.h>
|
||||||
|
|
||||||
class Attribute {
|
class Attribute {
|
|
@ -1,5 +1,5 @@
|
||||||
#include <LibHTML/Node.h>
|
#include <LibHTML/DOM/Node.h>
|
||||||
#include <LibHTML/LayoutNode.h>
|
#include <LibHTML/Layout/LayoutNode.h>
|
||||||
|
|
||||||
Node::Node(NodeType type)
|
Node::Node(NodeType type)
|
||||||
: m_type(type)
|
: m_type(type)
|
|
@ -1,4 +1,4 @@
|
||||||
#include <LibHTML/ParentNode.h>
|
#include <LibHTML/DOM/ParentNode.h>
|
||||||
|
|
||||||
void ParentNode::append_child(Retained<Node> node)
|
void ParentNode::append_child(Retained<Node> node)
|
||||||
{
|
{
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <LibHTML/Node.h>
|
#include <LibHTML/DOM/Node.h>
|
||||||
|
|
||||||
class ParentNode : public Node {
|
class ParentNode : public Node {
|
||||||
public:
|
public:
|
|
@ -1,5 +1,5 @@
|
||||||
#include <LibHTML/Text.h>
|
#include <LibHTML/DOM/Text.h>
|
||||||
#include <LibHTML/LayoutText.h>
|
#include <LibHTML/Layout/LayoutText.h>
|
||||||
|
|
||||||
Text::Text(const String& data)
|
Text::Text(const String& data)
|
||||||
: Node(NodeType::TEXT_NODE)
|
: Node(NodeType::TEXT_NODE)
|
|
@ -1,7 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <AK/AKString.h>
|
#include <AK/AKString.h>
|
||||||
#include <LibHTML/Node.h>
|
#include <LibHTML/DOM/Node.h>
|
||||||
|
|
||||||
class Text final : public Node {
|
class Text final : public Node {
|
||||||
public:
|
public:
|
|
@ -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/Dump.h>
|
||||||
#include <LibHTML/Element.h>
|
#include <LibHTML/Layout/LayoutNode.h>
|
||||||
#include <LibHTML/LayoutNode.h>
|
#include <LibHTML/Layout/LayoutText.h>
|
||||||
#include <LibHTML/LayoutText.h>
|
|
||||||
#include <LibHTML/Text.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
void dump_tree(const Node& node)
|
void dump_tree(const Node& node)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include <LibHTML/Element.h>
|
#include <LibHTML/DOM/Element.h>
|
||||||
#include <LibHTML/LayoutBlock.h>
|
#include <LibHTML/Layout/LayoutBlock.h>
|
||||||
|
|
||||||
LayoutBlock::LayoutBlock(Element& element)
|
LayoutBlock::LayoutBlock(Element& element)
|
||||||
: LayoutNode(&element)
|
: LayoutNode(&element)
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <LibHTML/LayoutNode.h>
|
#include <LibHTML/Layout/LayoutNode.h>
|
||||||
|
|
||||||
class Element;
|
class Element;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include <LibHTML/LayoutDocument.h>
|
#include <LibHTML/Layout/LayoutDocument.h>
|
||||||
|
|
||||||
LayoutDocument::LayoutDocument(const Document& document)
|
LayoutDocument::LayoutDocument(const Document& document)
|
||||||
: LayoutNode(&document)
|
: LayoutNode(&document)
|
|
@ -1,7 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <LibHTML/LayoutNode.h>
|
#include <LibHTML/Layout/LayoutNode.h>
|
||||||
#include <LibHTML/Document.h>
|
#include <LibHTML/DOM/Document.h>
|
||||||
|
|
||||||
class LayoutDocument : public LayoutNode {
|
class LayoutDocument : public LayoutNode {
|
||||||
public:
|
public:
|
|
@ -1,5 +1,5 @@
|
||||||
#include <LibHTML/Element.h>
|
#include <LibHTML/DOM/Element.h>
|
||||||
#include <LibHTML/LayoutInline.h>
|
#include <LibHTML/Layout/LayoutInline.h>
|
||||||
|
|
||||||
LayoutInline::LayoutInline(Element& element)
|
LayoutInline::LayoutInline(Element& element)
|
||||||
: LayoutNode(&element)
|
: LayoutNode(&element)
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <LibHTML/LayoutNode.h>
|
#include <LibHTML/Layout/LayoutNode.h>
|
||||||
|
|
||||||
class Element;
|
class Element;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include <LibHTML/LayoutNode.h>
|
#include <LibHTML/Layout/LayoutNode.h>
|
||||||
|
|
||||||
LayoutNode::LayoutNode(const Node* node)
|
LayoutNode::LayoutNode(const Node* node)
|
||||||
: m_node(node)
|
: m_node(node)
|
|
@ -1,4 +1,4 @@
|
||||||
#include <LibHTML/LayoutText.h>
|
#include <LibHTML/Layout/LayoutText.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
LayoutText::LayoutText(const Text& text)
|
LayoutText::LayoutText(const Text& text)
|
|
@ -1,7 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <LibHTML/LayoutNode.h>
|
#include <LibHTML/Layout/LayoutNode.h>
|
||||||
#include <LibHTML/Text.h>
|
#include <LibHTML/DOM/Text.h>
|
||||||
|
|
||||||
class LayoutText : public LayoutNode {
|
class LayoutText : public LayoutNode {
|
||||||
public:
|
public:
|
|
@ -1,17 +1,17 @@
|
||||||
include ../Makefile.common
|
include ../Makefile.common
|
||||||
|
|
||||||
LIBHTML_OBJS = \
|
LIBHTML_OBJS = \
|
||||||
Node.o \
|
DOM/Node.o \
|
||||||
ParentNode.o \
|
DOM/ParentNode.o \
|
||||||
Element.o \
|
DOM/Element.o \
|
||||||
Document.o \
|
DOM/Document.o \
|
||||||
Text.o \
|
DOM/Text.o \
|
||||||
Parser.o \
|
Parser/Parser.o \
|
||||||
LayoutNode.o \
|
Layout/LayoutNode.o \
|
||||||
LayoutText.o \
|
Layout/LayoutText.o \
|
||||||
LayoutBlock.o \
|
Layout/LayoutBlock.o \
|
||||||
LayoutInline.o \
|
Layout/LayoutInline.o \
|
||||||
LayoutDocument.o \
|
Layout/LayoutDocument.o \
|
||||||
Dump.o
|
Dump.o
|
||||||
|
|
||||||
TEST_OBJS = test.o
|
TEST_OBJS = test.o
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include <LibHTML/Element.h>
|
#include <LibHTML/DOM/Element.h>
|
||||||
#include <LibHTML/Parser.h>
|
#include <LibHTML/DOM/Text.h>
|
||||||
#include <LibHTML/Text.h>
|
#include <LibHTML/Parser/Parser.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <AK/Retained.h>
|
#include <AK/Retained.h>
|
||||||
#include <LibHTML/Document.h>
|
#include <LibHTML/DOM/Document.h>
|
||||||
|
|
||||||
Retained<Document> parse(const String& html);
|
Retained<Document> parse(const String& html);
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#include <LibCore/CFile.h>
|
#include <LibCore/CFile.h>
|
||||||
#include <LibHTML/Dump.h>
|
#include <LibHTML/Dump.h>
|
||||||
#include <LibHTML/Element.h>
|
#include <LibHTML/Parser/Parser.h>
|
||||||
#include <LibHTML/Parser.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue