Issue #2862 - Change code references from CSS lowering to CSS flattening

This commit is contained in:
Basilisk-Dev 2026-03-13 08:58:18 -04:00 committed by wuggy
commit 64d55b0a2e
4 changed files with 19 additions and 19 deletions

View file

@ -18,7 +18,7 @@
#include <regex> // for std::regex and std::regex_match
#include "nsCSSParser.h"
#include "CSSNestingLowerer.h"
#include "CSSNestingFlattener.h"
#include "nsAlgorithm.h"
#include "nsCSSProps.h"
#include "nsCSSKeywords.h"
@ -1826,11 +1826,11 @@ CSSParserImpl::ParseSheet(const nsAString& aInput,
"Sheet principal does not match passed principal");
#endif
nsAutoString loweredInput;
nsAutoString flattenedInput;
const nsAString* input = &aInput;
if (sNestingEnabled &&
mozilla::css::LowerBasicCSSNesting(aInput, loweredInput)) {
input = &loweredInput;
mozilla::css::FlattenBasicCSSNesting(aInput, flattenedInput)) {
input = &flattenedInput;
}
nsCSSScanner scanner(*input, aLineNumber);