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

Unified Diff: Source/devtools/front_end/TimelinePresentationModel.js

Issue 14741014: Timeline: add reference to root node of layer in Rasterize event (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/inspector/TimelineTraceEventProcessor.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/TimelinePresentationModel.js
diff --git a/Source/devtools/front_end/TimelinePresentationModel.js b/Source/devtools/front_end/TimelinePresentationModel.js
index c3639453546ec987c1c54b223ed5de3e87327738..ba7b74ad6e50e736d5b0056e25bb39c7c8345b48 100644
--- a/Source/devtools/front_end/TimelinePresentationModel.js
+++ b/Source/devtools/front_end/TimelinePresentationModel.js
@@ -619,8 +619,12 @@ WebInspector.TimelinePresentationModel.Record = function(presentationModel, reco
this._lastChildEndTime = this.endTime;
this._startTimeOffset = this.startTime - presentationModel._minimumRecordTime;
- if (record.data && record.data["url"])
- this.url = record.data["url"];
+ if (record.data) {
+ if (record.data["url"])
+ this.url = record.data["url"];
+ if (record.data["layerRootNode"])
+ this._relatedBackendNodeId = record.data["layerRootNode"];
+ }
if (scriptDetails) {
this.scriptName = scriptDetails.scriptName;
this.scriptLine = scriptDetails.scriptLine;
@@ -755,7 +759,6 @@ WebInspector.TimelinePresentationModel.Record = function(presentationModel, reco
case recordTypes.Paint:
this.highlightQuad = record.data.clip || WebInspector.TimelinePresentationModel.quadFromRectData(record.data);
- this._relatedBackendNodeId = record.data["layerRootNode"];
break;
case recordTypes.WebSocketCreate:
@@ -1077,6 +1080,9 @@ WebInspector.TimelinePresentationModel.Record.prototype = {
if (typeof this.data["width"] !== "undefined" && typeof this.data["height"] !== "undefined")
contentHelper.appendTextRow(WebInspector.UIString("Dimensions"), WebInspector.UIString("%d\u2009\u00d7\u2009%d", this.data["width"], this.data["height"]));
}
+ // Fall-through intended.
+
+ case recordTypes.Rasterize:
if (this._relatedNode)
contentHelper.appendElementRow(WebInspector.UIString("Layer root"), this._createNodeAnchor(this._relatedNode));
break;
« no previous file with comments | « Source/core/inspector/TimelineTraceEventProcessor.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698