mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb: Remove background-repeat/image fields and getters
These aren't needed now that we render using background_layers instead. The one casualty is the resolved style for background-repeat, but that was incorrect anyway.
This commit is contained in:
committed by
Andreas Kling
parent
e8b7946732
commit
a214036509
Notes:
sideshowbarker
2024-07-18 01:02:17 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/a2140365091 Pull-request: https://github.com/SerenityOS/serenity/pull/10946
@@ -645,10 +645,6 @@ RefPtr<StyleValue> ResolvedCSSStyleDeclaration::style_value_for_property(Layout:
|
||||
return ColorStyleValue::create(layout_node.computed_values().color());
|
||||
case PropertyID::BackgroundColor:
|
||||
return ColorStyleValue::create(layout_node.computed_values().background_color());
|
||||
case CSS::PropertyID::BackgroundRepeat:
|
||||
return BackgroundRepeatStyleValue::create(
|
||||
layout_node.computed_values().background_repeat().repeat_x,
|
||||
layout_node.computed_values().background_repeat().repeat_y);
|
||||
case CSS::PropertyID::Background: {
|
||||
auto maybe_background_color = property(CSS::PropertyID::BackgroundColor);
|
||||
auto maybe_background_image = property(CSS::PropertyID::BackgroundImage);
|
||||
|
||||
Reference in New Issue
Block a user