mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +00:00
LibWeb: Make factory method of HTML::TextMetrics fallible
This commit is contained in:
committed by
Linus Groh
parent
d9845bb24b
commit
c5de2c3348
@@ -377,7 +377,7 @@ JS::NonnullGCPtr<TextMetrics> CanvasRenderingContext2D::measure_text(DeprecatedS
|
||||
// TextMetrics object with members behaving as described in the following
|
||||
// list:
|
||||
auto prepared_text = prepare_text(text);
|
||||
auto metrics = TextMetrics::create(realm());
|
||||
auto metrics = TextMetrics::create(realm()).release_value_but_fixme_should_propagate_errors();
|
||||
// FIXME: Use the font that was used to create the glyphs in prepared_text.
|
||||
auto& font = Platform::FontPlugin::the().default_font();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user