From 67e1125b4c5471f70a834067968222c4b88dd2e5 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Fri, 3 Dec 2021 12:52:14 +0000 Subject: [PATCH] LibWeb: Handle fallback values for CSS variables :^) --- Userland/Libraries/LibWeb/CSS/StyleComputer.cpp | 12 +++++++++--- Userland/Libraries/LibWeb/CSS/StyleComputer.h | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp b/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp index 9b0e4afa33..c8ab27f583 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp +++ b/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp @@ -452,7 +452,7 @@ struct MatchingDeclarations { Vector author_rules; }; -bool StyleComputer::expand_unresolved_values(DOM::Element& element, Vector const& source, Vector& dest) const +bool StyleComputer::expand_unresolved_values(DOM::Element& element, Vector const& source, Vector& dest, size_t source_start_index) const { // FIXME: Do this better! // We build a copy of the tree of StyleComponentValueRules, with all var()s replaced with their contents. @@ -468,7 +468,8 @@ bool StyleComputer::expand_unresolved_values(DOM::Element& element, Vector