From b62e8c46409334100ae5c47cfd55513224d9d153 Mon Sep 17 00:00:00 2001 From: Guillaume Date: Fri, 1 Nov 2024 11:34:28 +0100 Subject: [PATCH] [css-syntax-3] Remove duplicate token stream creations --- css-syntax-3/Overview.bs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/css-syntax-3/Overview.bs b/css-syntax-3/Overview.bs index eea59750173..d4902618e80 100644 --- a/css-syntax-3/Overview.bs +++ b/css-syntax-3/Overview.bs @@ -2161,9 +2161,7 @@ Parser Entry Points 3. If |input| is a [=string=], then [=filter code points=] from |input|, [=tokenize=] the result, - then create a new [=token stream=] - with those tokens as its [=token stream/tokens=], - and return it. + and return the stream of tokens. 4. Assert: Only the preceding types should be passed as |input|. @@ -3189,9 +3187,8 @@ Consume a '@font-face/unicode-range' value 1. Let |tokens| be the result of [=CSS/tokenizing=] |input string| with |unicode ranges allowed| set to true. - Let |input| be a new [=token stream=] from |tokens|. - 2. [=Consume a list of component values=] from |input|, + 2. [=Consume a list of component values=] from |tokens|, and return the result. Note: The existence of this algorithm