Skip to content

Commit

Permalink
rename html/dom.rs to html/parser.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
d0iasm committed Jun 2, 2024
1 parent 2ebc6ba commit 3b3329d
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions core/src/renderer/dom/activation_behavior.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
//! https://dom.spec.whatwg.org/#eventtarget-activation-behavior
use crate::renderer::dom::event::Event;
use crate::renderer::html::dom::ElementKind;
use crate::renderer::html::dom::Node;
use crate::renderer::html::dom::NodeKind;
use crate::renderer::html::parser::ElementKind;
use crate::renderer::html::parser::Node;
use crate::renderer::html::parser::NodeKind;
use alloc::rc::Rc;
use core::cell::RefCell;

Expand Down
2 changes: 1 addition & 1 deletion core/src/renderer/dom/api.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::renderer::html::dom::{Element, ElementKind, Node, NodeKind};
use crate::renderer::html::parser::{Element, ElementKind, Node, NodeKind};
use alloc::rc::Rc;
use alloc::string::String;
use alloc::string::ToString;
Expand Down
2 changes: 1 addition & 1 deletion core/src/renderer/dom/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//! DOM Living Standard: https://dom.spec.whatwg.org/#events
//! UI Events W3C Working Draft: https://www.w3.org/TR/uievents/
use crate::renderer::html::dom::NodeKind;
use crate::renderer::html::parser::NodeKind;
use alloc::boxed::Box;
use alloc::string::String;

Expand Down
4 changes: 2 additions & 2 deletions core/src/renderer/dom/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//! https://html.spec.whatwg.org/multipage/nav-history-apis.html#window
use crate::browser::Browser;
use crate::renderer::html::dom::Node;
use crate::renderer::html::dom::NodeKind;
use crate::renderer::html::parser::Node;
use crate::renderer::html::parser::NodeKind;
use crate::renderer::page::Page;
use alloc::rc::Rc;
use alloc::rc::Weak;
Expand Down
2 changes: 1 addition & 1 deletion core/src/renderer/html/html_builder.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! This is a helper function to construct HTML string from DOM tree.
use crate::alloc::string::ToString;
use crate::renderer::html::dom::{Node, NodeKind};
use crate::renderer::html::parser::{Node, NodeKind};
use alloc::rc::Rc;
use alloc::string::String;
use core::cell::RefCell;
Expand Down
2 changes: 1 addition & 1 deletion core/src/renderer/html/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pub mod attribute;
pub mod dom;
pub mod html_builder;
pub mod parser;
pub mod token;
File renamed without changes.
4 changes: 2 additions & 2 deletions core/src/renderer/js/runtime.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::renderer::dom::api::get_element_by_id;
use crate::renderer::html::dom::Node as DomNode;
use crate::renderer::html::dom::NodeKind as DomNodeKind;
use crate::renderer::html::parser::Node as DomNode;
use crate::renderer::html::parser::NodeKind as DomNodeKind;
use crate::renderer::js::ast::Node;
use crate::renderer::js::ast::Program;
use alloc::format;
Expand Down
2 changes: 1 addition & 1 deletion core/src/renderer/layout/computed_style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//! https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/style/computed_style.h
//! https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Cascade_and_inheritance
use crate::renderer::html::dom::{ElementKind, Node, NodeKind};
use crate::renderer::html::parser::{ElementKind, Node, NodeKind};
use crate::renderer::layout::color::*;
use alloc::rc::Rc;
use core::cell::RefCell;
Expand Down
2 changes: 1 addition & 1 deletion core/src/renderer/layout/layout_object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::browser::Browser;
use crate::display_item::DisplayItem;
use crate::renderer::css::cssom::*;
use crate::renderer::css::token::CssToken;
use crate::renderer::html::dom::*;
use crate::renderer::html::parser::*;
use crate::renderer::layout::color::*;
use crate::renderer::layout::computed_style::*;
use crate::renderer::layout::layout_point::LayoutPoint;
Expand Down
2 changes: 1 addition & 1 deletion core/src/renderer/layout/layout_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::browser::Browser;
use crate::display_item::DisplayItem;
use crate::renderer::css::cssom::*;
use crate::renderer::dom::api::get_target_element_node;
use crate::renderer::html::dom::{ElementKind, Node, NodeKind};
use crate::renderer::html::parser::{ElementKind, Node, NodeKind};
use crate::renderer::layout::computed_style::*;
use crate::renderer::layout::layout_object::LayoutObject;
use crate::renderer::layout::layout_point::LayoutPoint;
Expand Down
2 changes: 1 addition & 1 deletion core/src/renderer/page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ use crate::renderer::css::cssom::StyleSheet;
use crate::renderer::css::token::CssTokenizer;
use crate::renderer::dom::api::{get_js_content, get_style_content};
use crate::renderer::dom::window::Window;
use crate::renderer::html::dom::HtmlParser;
use crate::renderer::html::html_builder::dom_to_html;
use crate::renderer::html::parser::HtmlParser;
use crate::renderer::html::token::HtmlTokenizer;
use crate::renderer::js::ast::JsParser;
use crate::renderer::js::runtime::JsRuntime;
Expand Down

0 comments on commit 3b3329d

Please sign in to comment.