@@ -688,8 +688,8 @@ static void set_property_expanding_shorthands(StyleProperties& style, CSS::Prope
688
688
y_positions.unchecked_append (layer);
689
689
}
690
690
}
691
- set_longhand_property (CSS::PropertyID::BackgroundPositionX, StyleValueList::create (move (x_positions), values_list.separator ()). release_value_but_fixme_should_propagate_errors () );
692
- set_longhand_property (CSS::PropertyID::BackgroundPositionY, StyleValueList::create (move (y_positions), values_list.separator ()). release_value_but_fixme_should_propagate_errors () );
691
+ set_longhand_property (CSS::PropertyID::BackgroundPositionX, StyleValueList::create (move (x_positions), values_list.separator ()));
692
+ set_longhand_property (CSS::PropertyID::BackgroundPositionY, StyleValueList::create (move (y_positions), values_list.separator ()));
693
693
} else {
694
694
set_longhand_property (CSS::PropertyID::BackgroundPositionX, value);
695
695
set_longhand_property (CSS::PropertyID::BackgroundPositionY, value);
@@ -2320,8 +2320,8 @@ void StyleComputer::compute_font(StyleProperties& style, DOM::Element const* ele
2320
2320
2321
2321
auto found_font = compute_font_for_style_values (element, pseudo_element, font_family, font_size, font_style, font_weight, font_stretch);
2322
2322
2323
- style.set_property (CSS::PropertyID::FontSize, LengthStyleValue::create (CSS::Length::make_px (found_font->pixel_size ())). release_value_but_fixme_should_propagate_errors () , nullptr );
2324
- style.set_property (CSS::PropertyID::FontWeight, NumberStyleValue::create (font_weight->to_font_weight ()). release_value_but_fixme_should_propagate_errors () );
2323
+ style.set_property (CSS::PropertyID::FontSize, LengthStyleValue::create (CSS::Length::make_px (found_font->pixel_size ())), nullptr );
2324
+ style.set_property (CSS::PropertyID::FontWeight, NumberStyleValue::create (font_weight->to_font_weight ()));
2325
2325
2326
2326
style.set_computed_font (found_font.release_nonnull ());
2327
2327
@@ -2370,16 +2370,16 @@ ErrorOr<void> StyleComputer::absolutize_values(StyleProperties& style, DOM::Elem
2370
2370
// because most percentages are relative to containing block metrics.
2371
2371
auto line_height_value_slot = style.m_property_values [to_underlying (CSS::PropertyID::LineHeight)].map ([](auto & x) -> auto & { return x.style ; });
2372
2372
if (line_height_value_slot.has_value () && (*line_height_value_slot)->is_percentage ()) {
2373
- *line_height_value_slot = TRY ( LengthStyleValue::create (
2374
- Length::make_px (font_size * static_cast <double >((*line_height_value_slot)->as_percentage ().percentage ().as_fraction ())))) ;
2373
+ *line_height_value_slot = LengthStyleValue::create (
2374
+ Length::make_px (font_size * static_cast <double >((*line_height_value_slot)->as_percentage ().percentage ().as_fraction ())));
2375
2375
}
2376
2376
2377
2377
auto line_height = style.line_height (viewport_rect (), font_metrics, m_root_element_font_metrics);
2378
2378
font_metrics.line_height = line_height;
2379
2379
2380
2380
// NOTE: line-height might be using lh which should be resolved against the parent line height (like we did here already)
2381
2381
if (line_height_value_slot.has_value () && (*line_height_value_slot)->is_length ())
2382
- (*line_height_value_slot) = TRY ( LengthStyleValue::create (Length::make_px (line_height) ));
2382
+ (*line_height_value_slot) = LengthStyleValue::create (Length::make_px (line_height));
2383
2383
2384
2384
for (size_t i = 0 ; i < style.m_property_values .size (); ++i) {
2385
2385
auto & value_slot = style.m_property_values [i];
@@ -2479,7 +2479,7 @@ void StyleComputer::transform_box_type_if_needed(StyleProperties& style, DOM::El
2479
2479
}
2480
2480
2481
2481
if (new_display != display)
2482
- style.set_property (CSS::PropertyID::Display, DisplayStyleValue::create (new_display). release_value_but_fixme_should_propagate_errors () , style.property_source_declaration (CSS::PropertyID::Display));
2482
+ style.set_property (CSS::PropertyID::Display, DisplayStyleValue::create (new_display), style.property_source_declaration (CSS::PropertyID::Display));
2483
2483
}
2484
2484
2485
2485
NonnullRefPtr<StyleProperties> StyleComputer::create_document_style () const
@@ -2488,9 +2488,9 @@ NonnullRefPtr<StyleProperties> StyleComputer::create_document_style() const
2488
2488
compute_font (style, nullptr , {});
2489
2489
compute_defaulted_values (style, nullptr , {});
2490
2490
absolutize_values (style, nullptr , {}).release_value_but_fixme_should_propagate_errors ();
2491
- style->set_property (CSS::PropertyID::Width, CSS::LengthStyleValue::create (CSS::Length::make_px (viewport_rect ().width ())). release_value_but_fixme_should_propagate_errors () , nullptr );
2492
- style->set_property (CSS::PropertyID::Height, CSS::LengthStyleValue::create (CSS::Length::make_px (viewport_rect ().height ())). release_value_but_fixme_should_propagate_errors () , nullptr );
2493
- style->set_property (CSS::PropertyID::Display, CSS::DisplayStyleValue::create (CSS::Display::from_short (CSS::Display::Short::Block)). release_value_but_fixme_should_propagate_errors () , nullptr );
2491
+ style->set_property (CSS::PropertyID::Width, CSS::LengthStyleValue::create (CSS::Length::make_px (viewport_rect ().width ())), nullptr );
2492
+ style->set_property (CSS::PropertyID::Height, CSS::LengthStyleValue::create (CSS::Length::make_px (viewport_rect ().height ())), nullptr );
2493
+ style->set_property (CSS::PropertyID::Display, CSS::DisplayStyleValue::create (CSS::Display::from_short (CSS::Display::Short::Block)), nullptr );
2494
2494
return style;
2495
2495
}
2496
2496
0 commit comments