mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Absolutize StyleValues before computing font properties
We also avoid prematurely constructing CSSPixels when computing font-size which gains us a couple of test passes
This commit is contained in:
committed by
Tim Ledbetter
parent
ca9d107a1a
commit
28451b16c9
Notes:
github-actions[bot]
2025-10-20 15:14:19 +00:00
Author: https://github.com/Calme1709 Commit: https://github.com/LadybirdBrowser/ladybird/commit/28451b16c90 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6426 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -18,7 +18,7 @@ struct CalculationResolutionContext {
|
||||
using PercentageBasis = Variant<Empty, Angle, Frequency, Length, Time>;
|
||||
|
||||
PercentageBasis percentage_basis {};
|
||||
Optional<Length::ResolutionContext> length_resolution_context;
|
||||
Optional<Length::ResolutionContext> length_resolution_context {};
|
||||
|
||||
static CalculationResolutionContext from_computation_context(ComputationContext const& computation_context, PercentageBasis percentage_basis = {})
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user