mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb: Use shape-rendering to control anti aliasing for SVG paths
Anti-aliasing is disabled if `shape-rendering` is set to `optimizeSpeed` or `crispEdges`.
This commit is contained in:
parent
1d745884be
commit
cfc6439c12
Notes:
github-actions[bot]
2025-08-19 08:48:50 +00:00
Author: https://github.com/tcl3
Commit: cfc6439c12
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5899
Reviewed-by: https://github.com/AtkinsSJ ✅
10 changed files with 43 additions and 4 deletions
16
Libraries/LibWeb/Painting/ShouldAntiAlias.h
Normal file
16
Libraries/LibWeb/Painting/ShouldAntiAlias.h
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* Copyright (c) 2025, Tim Ledbetter <tim.ledbetter@ladybird.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace Web::Painting {
|
||||
|
||||
enum class ShouldAntiAlias : bool {
|
||||
Yes,
|
||||
No,
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue