mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb: Only require NodeWithStyle for gradient size resolution
None of the code here actually needs a NodeWithStyleAndBoxModelMetrics, and we'll need to be able to resolve images from inside NodeWithStyle::apply_style().
This commit is contained in:
parent
a0cd6dd607
commit
9cbd8a82c7
Notes:
github-actions[bot]
2025-02-28 12:51:49 +00:00
Author: https://github.com/AtkinsSJ
Commit: 9cbd8a82c7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3644
9 changed files with 14 additions and 14 deletions
|
@ -201,7 +201,7 @@ CSSPixelSize RadialGradientStyleValue::resolve_size(Layout::Node const& node, CS
|
|||
return resolved_size;
|
||||
}
|
||||
|
||||
void RadialGradientStyleValue::resolve_for_size(Layout::NodeWithStyleAndBoxModelMetrics const& node, CSSPixelSize paint_size) const
|
||||
void RadialGradientStyleValue::resolve_for_size(Layout::NodeWithStyle const& node, CSSPixelSize paint_size) const
|
||||
{
|
||||
CSSPixelRect gradient_box { { 0, 0 }, paint_size };
|
||||
auto center = m_properties.position->resolved(node, gradient_box);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue