Skip to content

Commit

Permalink
Merge pull request #416 from jaytaph/rendertree-fixups
Browse files Browse the repository at this point in the history
Rendertree fixups
  • Loading branch information
jaytaph authored Mar 24, 2024
2 parents 7cf851e + 91c47c0 commit 4fad003
Show file tree
Hide file tree
Showing 9 changed files with 417 additions and 252 deletions.
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ opt-level = 3
codegen-units = 1

[lib]
crate-type = ["staticlib"]
crate-type = ["staticlib"]
2 changes: 1 addition & 1 deletion crates/gosub_html5/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4272,7 +4272,7 @@ impl<'chars> Html5Parser<'chars> {
}
}
};
println!("loading external stylesheet: {}", css_url);
// println!("loading external stylesheet: {}", css_url);

if let Some(stylesheet) = self.load_external_stylesheet(CssOrigin::Author, css_url)
{
Expand Down
2 changes: 1 addition & 1 deletion crates/gosub_html5/src/parser/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ impl Document {
}

// Walk the document tree with the given visitor
pub fn visit(doc: &DocumentHandle, visitor: &mut Box<dyn Visitor<Node>>) {
pub fn walk_document_tree(doc: &DocumentHandle, visitor: &mut Box<dyn Visitor<Node>>) {
let binding = doc.get();
let root = binding.get_root();
internal_visit(doc, root, visitor);
Expand Down
1 change: 1 addition & 0 deletions crates/gosub_styling/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ gosub_html5 = { path = "../gosub_html5" }
lazy_static = "1.4"
anyhow = "1.0.81"
regex = "1.10.3"
colors-transform = "0.2.11"
Loading

0 comments on commit 4fad003

Please sign in to comment.