Keyframe animation doesn't 't show up in the Animations timeline
[WebKit-https.git] / Source / WebInspectorUI / UserInterface / Models / MediaTimelineRecord.js
index 5de89a3..51b01ff 100644 (file)
@@ -34,8 +34,8 @@ WI.MediaTimelineRecord = class MediaTimelineRecord extends WI.TimelineRecord
 
         this._eventType = eventType;
         this._domNode = domNodeOrInfo;
-        this._domNodeDisplayName = domNodeOrInfo.displayName;
-        this._domNodeCSSPath = domNodeOrInfo instanceof WI.DOMNode ? WI.cssPath(domNodeOrInfo, {full: true}) : domNodeOrInfo.cssPath;
+        this._domNodeDisplayName = domNodeOrInfo?.displayName;
+        this._domNodeCSSPath = domNodeOrInfo instanceof WI.DOMNode ? WI.cssPath(domNodeOrInfo, {full: true}) : domNodeOrInfo?.cssPath;
 
         // Web Animation
         console.assert(trackingAnimationId === undefined || typeof trackingAnimationId === "string");