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

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

Issue 351903003: DevTools: Avoid private member access in non-profiler code (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 side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/timeline/TimelineUIUtilsImpl.js
diff --git a/Source/devtools/front_end/timeline/TimelineUIUtilsImpl.js b/Source/devtools/front_end/timeline/TimelineUIUtilsImpl.js
index ad104ba3fb9d0d01f4ab86e8ef38fdb72eded347..b5df1e3cba8d299d9315f5680366ba9bfdfc5164 100644
--- a/Source/devtools/front_end/timeline/TimelineUIUtilsImpl.js
+++ b/Source/devtools/front_end/timeline/TimelineUIUtilsImpl.js
@@ -341,8 +341,8 @@ WebInspector.TimelineUIUtilsImpl.buildDetailsNode = function(record, linkifier,
detailsText = recordData ? recordData["type"] : null;
break;
case WebInspector.TimelineModel.RecordType.Paint:
- var width = WebInspector.TimelineUIUtils._quadWidth(recordData.clip);
- var height = WebInspector.TimelineUIUtils._quadHeight(recordData.clip);
+ var width = WebInspector.TimelineUIUtils.quadWidth(recordData.clip);
+ var height = WebInspector.TimelineUIUtils.quadHeight(recordData.clip);
if (width && height)
detailsText = WebInspector.UIString("%d\u2009\u00d7\u2009%d", width, height);
break;
@@ -593,8 +593,8 @@ WebInspector.TimelineUIUtilsImpl._generateDetailsContentSynchronously = function
case recordTypes.Paint:
var clip = recordData["clip"];
contentHelper.appendTextRow(WebInspector.UIString("Location"), WebInspector.UIString("(%d, %d)", clip[0], clip[1]));
- var clipWidth = WebInspector.TimelineUIUtils._quadWidth(clip);
- var clipHeight = WebInspector.TimelineUIUtils._quadHeight(clip);
+ var clipWidth = WebInspector.TimelineUIUtils.quadWidth(clip);
+ var clipHeight = WebInspector.TimelineUIUtils.quadHeight(clip);
contentHelper.appendTextRow(WebInspector.UIString("Dimensions"), WebInspector.UIString("%d × %d", clipWidth, clipHeight));
// Fall-through intended.
« no previous file with comments | « Source/devtools/front_end/timeline/TimelineUIUtils.js ('k') | Source/devtools/front_end/timeline/TracingTimelineUIUtils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698