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:
Aliaksandr Kalenik 2024-08-20 17:27:08 +02:00 committed by Alexander Kalenik
commit bc20e3ac6c
Notes: github-actions[bot] 2024-08-20 18:01:47 +00:00
10 changed files with 25 additions and 32 deletions

View file

@ -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)