| Index: Source/devtools/front_end/components/FlameChart.js
|
| diff --git a/Source/devtools/front_end/components/FlameChart.js b/Source/devtools/front_end/components/FlameChart.js
|
| index 2577fce43868134aa3a8f5d158ec6bd0a9c1a498..fa7578f5d0038862195a69d30b85d8e37b7de9ab 100644
|
| --- a/Source/devtools/front_end/components/FlameChart.js
|
| +++ b/Source/devtools/front_end/components/FlameChart.js
|
| @@ -50,15 +50,15 @@ WebInspector.FlameChartDelegate.prototype = {
|
| */
|
| WebInspector.FlameChart = function(dataProvider, flameChartDelegate, isTopDown)
|
| {
|
| - WebInspector.HBox.call(this);
|
| - this.registerRequiredCSS("flameChart.css");
|
| - this.element.classList.add("flame-chart-main-pane");
|
| + WebInspector.HBox.call(this, true);
|
| + this.contentElement.appendChild(WebInspector.View.createStyleElement("flameChart.css"));
|
| + this.contentElement.classList.add("flame-chart-main-pane");
|
| this._flameChartDelegate = flameChartDelegate;
|
| this._isTopDown = isTopDown;
|
|
|
| this._calculator = new WebInspector.FlameChart.Calculator();
|
|
|
| - this._canvas = this.element.createChild("canvas");
|
| + this._canvas = this.contentElement.createChild("canvas");
|
| this._canvas.tabIndex = 1;
|
| this.setDefaultFocusedElement(this._canvas);
|
| this._canvas.addEventListener("mousemove", this._onMouseMove.bind(this), false);
|
| @@ -67,14 +67,14 @@ WebInspector.FlameChart = function(dataProvider, flameChartDelegate, isTopDown)
|
| this._canvas.addEventListener("keydown", this._onKeyDown.bind(this), false);
|
| WebInspector.installDragHandle(this._canvas, this._startCanvasDragging.bind(this), this._canvasDragging.bind(this), this._endCanvasDragging.bind(this), "move", null);
|
|
|
| - this._vScrollElement = this.element.createChild("div", "flame-chart-v-scroll");
|
| + this._vScrollElement = this.contentElement.createChild("div", "flame-chart-v-scroll");
|
| this._vScrollContent = this._vScrollElement.createChild("div");
|
| this._vScrollElement.addEventListener("scroll", this.scheduleUpdate.bind(this), false);
|
|
|
| - this._entryInfo = this.element.createChild("div", "profile-entry-info");
|
| - this._markerHighlighElement = this.element.createChild("div", "flame-chart-marker-highlight-element");
|
| - this._highlightElement = this.element.createChild("div", "flame-chart-highlight-element");
|
| - this._selectedElement = this.element.createChild("div", "flame-chart-selected-element");
|
| + this._entryInfo = this.contentElement.createChild("div", "flame-chart-entry-info");
|
| + this._markerHighlighElement = this.contentElement.createChild("div", "flame-chart-marker-highlight-element");
|
| + this._highlightElement = this.contentElement.createChild("div", "flame-chart-highlight-element");
|
| + this._selectedElement = this.contentElement.createChild("div", "flame-chart-selected-element");
|
|
|
| this._dataProvider = dataProvider;
|
|
|
| @@ -972,7 +972,7 @@ WebInspector.FlameChart.prototype = {
|
| var style = element.style;
|
| style.left = barX + "px";
|
| style.backgroundColor = this._dataProvider.markerColor(markerIndex);
|
| - this.element.appendChild(element);
|
| + this.contentElement.appendChild(element);
|
| },
|
|
|
| /**
|
| @@ -1034,7 +1034,7 @@ WebInspector.FlameChart.prototype = {
|
| style.top = barY + "px";
|
| style.width = barWidth + "px";
|
| style.height = this._barHeight + "px";
|
| - this.element.appendChild(element);
|
| + this.contentElement.appendChild(element);
|
| },
|
|
|
| /**
|
| @@ -1153,8 +1153,8 @@ WebInspector.FlameChart.prototype = {
|
| {
|
| var showScroll = this._totalHeight > this._offsetHeight;
|
| this._vScrollElement.classList.toggle("hidden", !showScroll);
|
| - this._offsetWidth = this.element.offsetWidth - (WebInspector.isMac() ? 0 : this._vScrollElement.offsetWidth);
|
| - this._offsetHeight = this.element.offsetHeight;
|
| + this._offsetWidth = this.contentElement.offsetWidth - (WebInspector.isMac() ? 0 : this._vScrollElement.offsetWidth);
|
| + this._offsetHeight = this.contentElement.offsetHeight;
|
| },
|
|
|
| scheduleUpdate: function()
|
|
|