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

Unified Diff: Source/devtools/front_end/timeline/TimelineUIUtils.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/TimelineUIUtils.js
diff --git a/Source/devtools/front_end/timeline/TimelineUIUtils.js b/Source/devtools/front_end/timeline/TimelineUIUtils.js
index d35c4ce80958fea33c2e1b31bce3a10161d07a9a..6f4e462fb609c5a19bb8eac0bfc92198ceb1e6a8 100644
--- a/Source/devtools/front_end/timeline/TimelineUIUtils.js
+++ b/Source/devtools/front_end/timeline/TimelineUIUtils.js
@@ -362,7 +362,7 @@ WebInspector.TimelineUIUtils.createStyleRuleForCategory = function(category)
* @param {!Array.<number>} quad
* @return {number}
*/
-WebInspector.TimelineUIUtils._quadWidth = function(quad)
+WebInspector.TimelineUIUtils.quadWidth = function(quad)
{
return Math.round(Math.sqrt(Math.pow(quad[0] - quad[2], 2) + Math.pow(quad[1] - quad[3], 2)));
}
@@ -371,7 +371,7 @@ WebInspector.TimelineUIUtils._quadWidth = function(quad)
* @param {!Array.<number>} quad
* @return {number}
*/
-WebInspector.TimelineUIUtils._quadHeight = function(quad)
+WebInspector.TimelineUIUtils.quadHeight = function(quad)
{
return Math.round(Math.sqrt(Math.pow(quad[0] - quad[6], 2) + Math.pow(quad[1] - quad[7], 2)));
}
« no previous file with comments | « Source/devtools/front_end/timeline/TimelineTracingView.js ('k') | Source/devtools/front_end/timeline/TimelineUIUtilsImpl.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698