mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
net: Do not print SVG tree in Debug
implementation of VectorImageData
(#37846)
Manually implement Debug LoadResult so that VectorImageData doesn't get logged. Testing: N/A Fixes: #37771 Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
This commit is contained in:
parent
86ea2641f8
commit
e10466b4c4
1 changed files with 7 additions and 1 deletions
|
@ -267,13 +267,19 @@ impl CompletedLoad {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug, MallocSizeOf)]
|
#[derive(Clone, MallocSizeOf)]
|
||||||
struct VectorImageData {
|
struct VectorImageData {
|
||||||
#[conditional_malloc_size_of]
|
#[conditional_malloc_size_of]
|
||||||
svg_tree: Arc<usvg::Tree>,
|
svg_tree: Arc<usvg::Tree>,
|
||||||
cors_status: CorsStatus,
|
cors_status: CorsStatus,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl std::fmt::Debug for VectorImageData {
|
||||||
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||||
|
f.debug_struct("VectorImageData").finish()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
enum DecodedImage {
|
enum DecodedImage {
|
||||||
Raster(RasterImage),
|
Raster(RasterImage),
|
||||||
Vector(VectorImageData),
|
Vector(VectorImageData),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue