LibGfx: Rename Path => DeprecatedPath

This commit is contained in:
Andreas Kling 2024-08-08 10:22:03 +02:00 committed by Andreas Kling
commit c8f09312f7
Notes: github-actions[bot] 2024-08-20 07:38:22 +00:00
61 changed files with 216 additions and 216 deletions

View file

@ -8,9 +8,9 @@
namespace Web::CSS {
Gfx::Path Polygon::to_path(CSSPixelRect reference_box, Layout::Node const& node) const
Gfx::DeprecatedPath Polygon::to_path(CSSPixelRect reference_box, Layout::Node const& node) const
{
Gfx::Path path;
Gfx::DeprecatedPath path;
bool first = true;
for (auto const& point : points) {
Gfx::FloatPoint resolved_point {
@ -44,7 +44,7 @@ String Polygon::to_string() const
BasicShapeStyleValue::~BasicShapeStyleValue() = default;
Gfx::Path BasicShapeStyleValue::to_path(CSSPixelRect reference_box, Layout::Node const& node) const
Gfx::DeprecatedPath BasicShapeStyleValue::to_path(CSSPixelRect reference_box, Layout::Node const& node) const
{
return m_basic_shape.visit([&](auto const& shape) {
return shape.to_path(reference_box, node);

View file

@ -7,7 +7,7 @@
#pragma once
#include <AK/Variant.h>
#include <LibGfx/Path.h>
#include <LibGfx/DeprecatedPath.h>
#include <LibWeb/CSS/CSSStyleValue.h>
#include <LibWeb/CSS/PercentageOr.h>
@ -20,7 +20,7 @@ struct Polygon {
LengthPercentage y;
};
Gfx::Path to_path(CSSPixelRect reference_box, Layout::Node const&) const;
Gfx::DeprecatedPath 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::Path to_path(CSSPixelRect reference_box, Layout::Node const&) const;
Gfx::DeprecatedPath to_path(CSSPixelRect reference_box, Layout::Node const&) const;
private:
BasicShapeStyleValue(BasicShape basic_shape)