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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui_lazy/TimelineGrid.js

Issue 2404143002: DevTools: move overview grid window curtains handling into said window (Closed)
Patch Set: Created 4 years, 2 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: third_party/WebKit/Source/devtools/front_end/ui_lazy/TimelineGrid.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui_lazy/TimelineGrid.js b/third_party/WebKit/Source/devtools/front_end/ui_lazy/TimelineGrid.js
index 6358ae79e00a45f5696b175cdeb1153dc4bd0c57..ab1016b55a2a1a7083c29b961615abe7c597c57b 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui_lazy/TimelineGrid.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui_lazy/TimelineGrid.js
@@ -43,9 +43,6 @@ WebInspector.TimelineGrid = function()
this._eventDividersElement = this._gridHeaderElement.createChild("div", "resources-event-dividers");
this._dividersLabelBarElement = this._gridHeaderElement.createChild("div", "resources-dividers-label-bar");
this.element.appendChild(this._gridHeaderElement);
-
- this._leftCurtainElement = this.element.createChild("div", "timeline-curtain-left");
- this._rightCurtainElement = this.element.createChild("div", "timeline-curtain-right");
}
/**
@@ -271,24 +268,6 @@ WebInspector.TimelineGrid.prototype = {
this._dividersElement.classList.remove("hidden");
},
- hideCurtains: function()
- {
- this._leftCurtainElement.classList.add("hidden");
- this._rightCurtainElement.classList.add("hidden");
- },
-
- /**
- * @param {number} left
- * @param {number} right
- */
- showCurtains: function(left, right)
- {
- this._leftCurtainElement.style.width = (100 * left).toFixed(2) + "%";
- this._leftCurtainElement.classList.remove("hidden");
- this._rightCurtainElement.style.width = (100 * (1 - right)).toFixed(2) + "%";
- this._rightCurtainElement.classList.remove("hidden");
- },
-
/**
* @param {number} scrollTop
*/
@@ -296,8 +275,6 @@ WebInspector.TimelineGrid.prototype = {
{
this._dividersLabelBarElement.style.top = scrollTop + "px";
this._eventDividersElement.style.top = scrollTop + "px";
- this._leftCurtainElement.style.top = scrollTop + "px";
- this._rightCurtainElement.style.top = scrollTop + "px";
}
}

Powered by Google App Engine
This is Rietveld 408576698