Title: [209325] trunk/Source/WebCore
Revision
209325
Author
[email protected]
Date
2016-12-05 10:19:25 -0800 (Mon, 05 Dec 2016)

Log Message

[CSS Parser] Fix assert when unknown properties are encountered.
https://bugs.webkit.org/show_bug.cgi?id=165385

Reviewed by Zalan Bujtas.

* css/CSSToStyleMap.cpp:
(WebCore::CSSToStyleMap::mapAnimationProperty):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (209324 => 209325)


--- trunk/Source/WebCore/ChangeLog	2016-12-05 18:04:48 UTC (rev 209324)
+++ trunk/Source/WebCore/ChangeLog	2016-12-05 18:19:25 UTC (rev 209325)
@@ -1,5 +1,15 @@
 2016-12-05  Dave Hyatt  <[email protected]>
 
+        [CSS Parser] Fix assert when unknown properties are encountered.
+        https://bugs.webkit.org/show_bug.cgi?id=165385
+
+        Reviewed by Zalan Bujtas.
+
+        * css/CSSToStyleMap.cpp:
+        (WebCore::CSSToStyleMap::mapAnimationProperty):
+
+2016-12-05  Dave Hyatt  <[email protected]>
+
         [CSS Parser] Fix rx and ry parsing
         https://bugs.webkit.org/show_bug.cgi?id=165383
 

Modified: trunk/Source/WebCore/css/CSSToStyleMap.cpp (209324 => 209325)


--- trunk/Source/WebCore/css/CSSToStyleMap.cpp	2016-12-05 18:04:48 UTC (rev 209324)
+++ trunk/Source/WebCore/css/CSSToStyleMap.cpp	2016-12-05 18:19:25 UTC (rev 209325)
@@ -449,7 +449,8 @@
         animation.setProperty(CSSPropertyInvalid);
     } else {
         animation.setAnimationMode(Animation::AnimateSingleProperty);
-        animation.setProperty(primitiveValue.propertyID());
+        if (primitiveValue.propertyID() != CSSPropertyInvalid)
+            animation.setProperty(primitiveValue.propertyID());
     }
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to