瀏覽代碼

LibWeb: Remove non-compliant whitespace stripping in CSS Parser

Sam Atkins 4 年之前
父節點
當前提交
78d191554a
共有 1 個文件被更改,包括 0 次插入6 次删除
  1. 0 6
      Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp

+ 0 - 6
Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp

@@ -701,9 +701,6 @@ NonnullRefPtr<StyleBlockRule> Parser::consume_a_simple_block(TokenStream<T>& tok
 
 
         tokens.reconsume_current_input_token();
         tokens.reconsume_current_input_token();
         auto value = consume_a_component_value(tokens);
         auto value = consume_a_component_value(tokens);
-        if (value.is(Token::Type::Whitespace))
-            continue;
-
         block->m_values.append(value);
         block->m_values.append(value);
     }
     }
 }
 }
@@ -733,9 +730,6 @@ NonnullRefPtr<StyleFunctionRule> Parser::consume_a_function(TokenStream<T>& toke
 
 
         tokens.reconsume_current_input_token();
         tokens.reconsume_current_input_token();
         auto value = consume_a_component_value(tokens);
         auto value = consume_a_component_value(tokens);
-        if (value.is(Token::Type::Whitespace))
-            continue;
-
         function->m_values.append(value.to_string());
         function->m_values.append(value.to_string());
     }
     }