From 6870fe5e558173745198cf37400599357b5535e3 Mon Sep 17 00:00:00 2001 From: zhangxin11112342 Date: Tue, 30 Jul 2024 09:59:23 +0800 Subject: [PATCH] =?UTF-8?q?fixed=209a4aeb3=20from=20https://gitee.com/zhan?= =?UTF-8?q?gxin11112342/chromium=5Fthird=5Fparty/pulls/425=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8DCVE-2024-7000?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhangxin11112342 --- blink/renderer/core/css/style_rule.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blink/renderer/core/css/style_rule.cc b/blink/renderer/core/css/style_rule.cc index 0853a47c8c..0f68580450 100644 --- a/blink/renderer/core/css/style_rule.cc +++ b/blink/renderer/core/css/style_rule.cc @@ -605,7 +605,8 @@ void StyleRuleScope::SetPreludeText(const ExecutionContext* execution_context, String value) { auto* parser_context = MakeGarbageCollected(*execution_context); - Vector tokens = CSSTokenizer(value).TokenizeToEOF(); + CSSTokenizer tokenizer(value); + Vector tokens = tokenizer.TokenizeToEOF(); StyleRule* old_parent = style_scope_->RuleForNesting(); // Note that we do not need to explicitly reparent -- Gitee