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

Unified Diff: tracing/tracing/ui/timeline_viewport.html

Issue 2771723003: [tracing] Move math utilities from base into their own subdirectory (attempt 2) (Closed)
Patch Set: rebase Created 3 years, 9 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 | « tracing/tracing/ui/timeline_interest_range.html ('k') | tracing/tracing/ui/tracks/chart_series.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/timeline_viewport.html
diff --git a/tracing/tracing/ui/timeline_viewport.html b/tracing/tracing/ui/timeline_viewport.html
index 3e6925656fc1d057abb2ee780530d5d526c588bf..d22bc170fd1ee2db9f2d3f898bac479ad65839f8 100644
--- a/tracing/tracing/ui/timeline_viewport.html
+++ b/tracing/tracing/ui/timeline_viewport.html
@@ -190,7 +190,7 @@ tr.exportTo('tr.ui', function() {
onCurentDisplayTransformChange_: function(oldDisplayTransform) {
// Ensure panY stays clamped in the track container's scroll range.
if (this.modelTrackContainer_) {
- this.currentDisplayTransform.panY = tr.b.clamp(
+ this.currentDisplayTransform.panY = tr.b.math.clamp(
this.currentDisplayTransform.panY,
0,
this.modelTrackContainer_.scrollHeight -
@@ -320,7 +320,7 @@ tr.exportTo('tr.ui', function() {
var idealMajorMarkDistanceWorld =
dt.xViewVectorToWorld(idealMajorMarkDistancePix);
- var majorMarkDistanceWorld = tr.b.preferredNumberLargerThanMin(
+ var majorMarkDistanceWorld = tr.b.math.preferredNumberLargerThanMin(
idealMajorMarkDistanceWorld);
var firstMajorMark = Math.floor(
« no previous file with comments | « tracing/tracing/ui/timeline_interest_range.html ('k') | tracing/tracing/ui/tracks/chart_series.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698