mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 09:49:15 +03:00
LibGfx: Add a function that adds two paths together
This will be used by Path2D#addPath in LibWeb.
This commit is contained in:
parent
a90667e79c
commit
1f97adbee8
Notes:
sideshowbarker
2024-07-16 23:40:16 +09:00
Author: https://github.com/Lubrsi Commit: https://github.com/SerenityOS/serenity/commit/1f97adbee8 Pull-request: https://github.com/SerenityOS/serenity/pull/17649
@ -376,4 +376,10 @@ Path Path::copy_transformed(Gfx::AffineTransform const& transform) const
|
||||
return result;
|
||||
}
|
||||
|
||||
void Path::add_path(Path const& other)
|
||||
{
|
||||
m_segments.extend(other.m_segments);
|
||||
invalidate_split_lines();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -252,6 +252,7 @@ public:
|
||||
}
|
||||
|
||||
Path copy_transformed(AffineTransform const&) const;
|
||||
void add_path(Path const&);
|
||||
|
||||
DeprecatedString to_deprecated_string() const;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user