Skip to content

Commit

Permalink
fixed gosub_vello build
Browse files Browse the repository at this point in the history
  • Loading branch information
jaytaph committed Sep 29, 2024
1 parent 3dac2f9 commit 794510d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions crates/gosub_vello/src/vello_svg.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
use gosub_html5::node::NodeId;
use gosub_html5::parser::document::DocumentHandle;
use gosub_render_backend::svg::SvgRenderer;
use gosub_render_backend::ImageBuffer;
use gosub_shared::document::DocumentHandle;
use gosub_shared::node::NodeId;
use gosub_shared::traits::css3::CssSystem;
use gosub_shared::traits::document::Document;
use gosub_shared::types::{Result, Size};

use crate::render::window::WindowData;
use crate::VelloBackend;
use gosub_svg::SVGDocument;

Expand All @@ -21,7 +22,7 @@ impl SvgRenderer<VelloBackend> for VelloSVG {
SVGDocument::from_str(&data)
}

fn parse_internal(tree: DocumentHandle, id: NodeId) -> Result<Self::SvgDocument> {
fn parse_internal<D: Document<C>, C: CssSystem>(tree: DocumentHandle<D, C>, id: NodeId) -> Result<Self::SvgDocument> {
SVGDocument::from_html_doc(id, tree)
}

Expand Down

0 comments on commit 794510d

Please sign in to comment.