mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 04:52:06 +02:00
LibWeb: Resolve circle()/ellipse() position keywords at parse time
This commit is contained in:
Notes:
github-actions[bot]
2026-01-05 11:43:14 +00:00
Author: https://github.com/Calme1709 Commit: https://github.com/LadybirdBrowser/ladybird/commit/96a4e33eaf0 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7308 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -24,6 +24,13 @@ CSSPixelPoint PositionStyleValue::resolved(Layout::Node const& node, CSSPixelRec
|
||||
return CSSPixelPoint { rect.x() + x, rect.y() + y };
|
||||
}
|
||||
|
||||
ValueComparingNonnullRefPtr<PositionStyleValue const> PositionStyleValue::with_resolved_keywords() const
|
||||
{
|
||||
return PositionStyleValue::create(
|
||||
edge_x()->with_resolved_keywords(),
|
||||
edge_y()->with_resolved_keywords());
|
||||
}
|
||||
|
||||
ValueComparingNonnullRefPtr<StyleValue const> PositionStyleValue::absolutized(ComputationContext const& computation_context) const
|
||||
{
|
||||
return PositionStyleValue::create(
|
||||
|
||||
Reference in New Issue
Block a user