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:
parent
2704bcdaaa
commit
6b7a1d13e9
7 changed files with 28 additions and 18 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue