Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Side by Side Diff: Source/devtools/front_end/timeline/TracingTimelineUIUtils.js

Issue 339603002: Avoid exception when building details for DecodeImage event (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 */ 6 */
7 WebInspector.TracingTimelineUIUtils = function() { } 7 WebInspector.TracingTimelineUIUtils = function() { }
8 8
9 /** 9 /**
10 * @constructor 10 * @constructor
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 details = linkifyTopCallFrame(); 156 details = linkifyTopCallFrame();
157 break; 157 break;
158 case recordType.EvaluateScript: 158 case recordType.EvaluateScript:
159 var url = eventData["url"]; 159 var url = eventData["url"];
160 if (url) 160 if (url)
161 details = linkifyLocation("", url, eventData["lineNumber"], 0); 161 details = linkifyLocation("", url, eventData["lineNumber"], 0);
162 break; 162 break;
163 case recordType.XHRReadyStateChange: 163 case recordType.XHRReadyStateChange:
164 case recordType.XHRLoad: 164 case recordType.XHRLoad:
165 case recordType.ResourceSendRequest: 165 case recordType.ResourceSendRequest:
166 case recordType.DecodeImage:
167 case recordType.ResizeImage:
168 var url = eventData["url"]; 166 var url = eventData["url"];
169 if (url) 167 if (url)
170 detailsText = WebInspector.displayNameForURL(url); 168 detailsText = WebInspector.displayNameForURL(url);
171 break; 169 break;
172 case recordType.ResourceReceivedData: 170 case recordType.ResourceReceivedData:
173 case recordType.ResourceReceiveResponse: 171 case recordType.ResourceReceiveResponse:
174 case recordType.ResourceFinish: 172 case recordType.ResourceFinish:
175 var initiator = event.initiator; 173 var initiator = event.initiator;
176 if (initiator) { 174 if (initiator) {
177 var url = initiator.args.data["url"]; 175 var url = initiator.args.data["url"];
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 callback(); 535 callback();
538 return; 536 return;
539 } 537 }
540 var container = document.createElement("div"); 538 var container = document.createElement("div");
541 container.className = "image-preview-container"; 539 container.className = "image-preview-container";
542 var img = container.createChild("img"); 540 var img = container.createChild("img");
543 img.src = encodedBitmap; 541 img.src = encodedBitmap;
544 callback(container); 542 callback(container);
545 } 543 }
546 } 544 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698