mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-13 01:59:14 +03:00
LibHTML: Create some subdirectories.
This commit is contained in:
parent
0522a8f71c
commit
1f51c2b7da
Notes:
sideshowbarker
2024-07-19 13:35:25 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/1f51c2b7daf
@ -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()
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <AK/AKString.h>
|
||||
#include <LibHTML/ParentNode.h>
|
||||
#include <LibHTML/DOM/ParentNode.h>
|
||||
|
||||
class LayoutNode;
|
||||
|
@ -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)
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <LibHTML/ParentNode.h>
|
||||
#include <LibHTML/DOM/ParentNode.h>
|
||||
#include <AK/AKString.h>
|
||||
|
||||
class Attribute {
|
@ -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)
|
@ -1,4 +1,4 @@
|
||||
#include <LibHTML/ParentNode.h>
|
||||
#include <LibHTML/DOM/ParentNode.h>
|
||||
|
||||
void ParentNode::append_child(Retained<Node> node)
|
||||
{
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <LibHTML/Node.h>
|
||||
#include <LibHTML/DOM/Node.h>
|
||||
|
||||
class ParentNode : public Node {
|
||||
public:
|
@ -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)
|
@ -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:
|
@ -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)
|
||||
|
@ -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)
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <LibHTML/LayoutNode.h>
|
||||
#include <LibHTML/Layout/LayoutNode.h>
|
||||
|
||||
class Element;
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include <LibHTML/LayoutDocument.h>
|
||||
#include <LibHTML/Layout/LayoutDocument.h>
|
||||
|
||||
LayoutDocument::LayoutDocument(const Document& document)
|
||||
: LayoutNode(&document)
|
@ -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:
|
@ -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)
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <LibHTML/LayoutNode.h>
|
||||
#include <LibHTML/Layout/LayoutNode.h>
|
||||
|
||||
class Element;
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include <LibHTML/LayoutNode.h>
|
||||
#include <LibHTML/Layout/LayoutNode.h>
|
||||
|
||||
LayoutNode::LayoutNode(const Node* node)
|
||||
: m_node(node)
|
@ -1,4 +1,4 @@
|
||||
#include <LibHTML/LayoutText.h>
|
||||
#include <LibHTML/Layout/LayoutText.h>
|
||||
#include <ctype.h>
|
||||
|
||||
LayoutText::LayoutText(const Text& text)
|
@ -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:
|
@ -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
|
||||
|
@ -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>
|
||||
|
@ -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);
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user