mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
LibWeb: Do not allocate mask bitmap for CSS "clip-path" property
Instead, it could be applied directly as a clip path in Skia painter. As a side bonus, we get rid of some DeprecatedPath and AntiAliasingPainter usage.
This commit is contained in:
parent
2dbf846ff8
commit
bc20e3ac6c
Notes:
github-actions[bot]
2024-08-20 18:01:47 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: bc20e3ac6c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1143
10 changed files with 25 additions and 32 deletions
|
@ -20,7 +20,7 @@ struct Polygon {
|
|||
LengthPercentage y;
|
||||
};
|
||||
|
||||
Gfx::DeprecatedPath to_path(CSSPixelRect reference_box, Layout::Node const&) const;
|
||||
Gfx::Path to_path(CSSPixelRect reference_box, Layout::Node const&) const;
|
||||
String to_string() const;
|
||||
|
||||
bool operator==(Polygon const&) const = default;
|
||||
|
@ -46,7 +46,7 @@ public:
|
|||
|
||||
bool properties_equal(BasicShapeStyleValue const& other) const { return m_basic_shape == other.m_basic_shape; }
|
||||
|
||||
Gfx::DeprecatedPath to_path(CSSPixelRect reference_box, Layout::Node const&) const;
|
||||
Gfx::Path to_path(CSSPixelRect reference_box, Layout::Node const&) const;
|
||||
|
||||
private:
|
||||
BasicShapeStyleValue(BasicShape basic_shape)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue