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() |