Browse Source

Fix keyframes parsing

Michael Ragazzon 6 years ago
parent
commit
7da1f27137
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Source/Core/StyleSheetParser.cpp

+ 2 - 1
Source/Core/StyleSheetParser.cpp

@@ -77,6 +77,7 @@ private:
 	PropertySpecification specification;
 	PropertyId id_rx, id_ry, id_rw, id_rh;
 	ShorthandId id_rectangle;
+
 public:
 	SpritesheetPropertyParser() : specification(4, 1) 
 	{
@@ -104,7 +105,6 @@ public:
 	bool Parse(const String& name, const String& value, const String& stream_file_name, int rule_line_number) override
 	{
 		static const String str_src = "src";
-		static const String str_rectangle = "rectangle";
 		if (name == str_src)
 		{
 			image_source = value;
@@ -442,6 +442,7 @@ int StyleSheetParser::Parse(StyleSheetNode* node, Stream* _stream, const StyleSh
 					// Each keyframe in keyframes has its own block which is processed here
 					PropertyDictionary properties;
 					PropertySpecificationParser parser(properties, StyleSheetSpecification::GetPropertySpecification());
+					if(!ReadProperties(parser))
 						continue;
 
 					if (!ParseKeyframeBlock(keyframes, at_rule_name, pre_token_str, properties))