1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:38:12 +00:00

LibWeb: Make TextMetrics GC-allocated

This commit is contained in:
Andreas Kling 2022-09-02 23:58:31 +02:00
parent 2704bcdaaa
commit 6b7a1d13e9
7 changed files with 28 additions and 18 deletions

View file

@ -19,7 +19,7 @@ public:
virtual void fill_text(String const&, float x, float y, Optional<double> max_width) = 0;
virtual void stroke_text(String const&, float x, float y, Optional<double> max_width) = 0;
virtual RefPtr<TextMetrics> measure_text(String const& text) = 0;
virtual JS::NonnullGCPtr<TextMetrics> measure_text(String const& text) = 0;
protected:
CanvasText() = default;