Speed up retained rendering and honor PDF backgrounds

This commit is contained in:
SGavrl committed 2026-08-03 22:08:44 +00:00
1 parent 222b50e480
commit ede14b7740
9 files changed
+1385 -92

No files matched your search

+5 -3
View File
@@ -28,7 +28,7 @@ pub use border::{
pub mod dom;
pub use dom::{
layout_dom, layout_dom_with_images, layout_dom_with_resources, AttributeStyleMutation,
DomLayout, StickyLayout,
DomLayout, RetainedStyleMutation, StickyLayout, TreeStyleMutation,
};
/// Whether an image MIME type names a format supported by the renderer build.
@@ -100,8 +100,10 @@ pub use paint::{
paint_dom, paint_dom_scrolled, paint_prepared, paint_prepared_region_with_scroll,
paint_prepared_with_scroll, prepare_dom, prepare_dom_with_dynamic_fonts,
prepare_dom_with_dynamic_fonts_and_stylesheet_cache, screenshot_png, screenshot_png_scrolled,
prepare_dom_with_retained_attribute_styles, screenshot_prepared,
screenshot_prepared_region_with_scroll, screenshot_prepared_with_scroll,
prepare_dom_with_retained_attribute_styles, prepare_dom_with_retained_styles,
screenshot_prepared,
screenshot_prepared_region_with_scroll,
screenshot_prepared_region_with_scroll_and_backgrounds, screenshot_prepared_with_scroll,
validate_capture_region, CaptureError, CaptureRegion, DynamicFontFace, ElementScrollMetrics,
PreparedRender, RenderResourceCache, RenderResourceLoader, ResolvedScrollState, SelectedImage,
MAX_CAPTURE_DIMENSION, MAX_CAPTURE_PIXELS,