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

Unified Diff: Source/devtools/front_end/timeline/TimelineModelImpl.js

Issue 326063004: Correctly calculate highlighted quad for tracing based timeline events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed comment 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 side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/timeline/TimelineModelImpl.js
diff --git a/Source/devtools/front_end/timeline/TimelineModelImpl.js b/Source/devtools/front_end/timeline/TimelineModelImpl.js
index 679c882a978e354905b253873fc38fbe80f0e1b3..3422c2398ccaa058f3b943635fddc542135f3e8b 100644
--- a/Source/devtools/front_end/timeline/TimelineModelImpl.js
+++ b/Source/devtools/front_end/timeline/TimelineModelImpl.js
@@ -479,6 +479,26 @@ WebInspector.TimelineModel.RecordImpl.prototype = {
},
/**
+ * @return {?Object}
+ */
+ highlightQuad: function()
+ {
+ var quad = null;
+ var recordTypes = WebInspector.TimelineModel.RecordType;
+ switch(this.type()) {
+ case recordTypes.Layout:
+ quad = this.data().root;
+ break;
+ case recordTypes.Paint:
+ quad = this.data().clip;
+ break;
+ default:
+ break;
+ }
+ return quad;
+ },
+
+ /**
* @return {string}
*/
frameId: function()
« no previous file with comments | « Source/devtools/front_end/timeline/TimelineModel.js ('k') | Source/devtools/front_end/timeline/TimelineView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698