Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / devtools / front_end / profiler / CPUProfileView.js
index a4142b7..9b11f09 100644 (file)
@@ -56,7 +56,7 @@ WebInspector.CPUProfileView = function(profileHeader)
     var option = options[optionName] || options[WebInspector.CPUProfileView._TypeFlame];
     this.viewSelectComboBox.select(option);
 
-    this._statusBarButtonsElement = document.createElement("span");
+    this._statusBarButtonsElement = createElement("span");
 
     this.focusButton = new WebInspector.StatusBarButton(WebInspector.UIString("Focus selected function."), "focus-profile-node-status-bar-item");
     this.focusButton.setEnabled(false);
@@ -88,6 +88,14 @@ WebInspector.CPUProfileView._TypeTree = "Tree";
 WebInspector.CPUProfileView._TypeHeavy = "Heavy";
 
 WebInspector.CPUProfileView.prototype = {
+    focus: function()
+    {
+        if (this._flameChart)
+            this._flameChart.focus();
+        else
+            WebInspector.View.prototype.focus.call(this);
+    },
+
     /**
      * @return {?WebInspector.Target}
      */
@@ -324,22 +332,6 @@ WebInspector.CPUProfileView.prototype = {
     },
 
     /**
-     * @return {boolean}
-     */
-    showingFirstSearchResult: function()
-    {
-        return (this._currentSearchResultIndex === 0);
-    },
-
-    /**
-     * @return {boolean}
-     */
-    showingLastSearchResult: function()
-    {
-        return (this._searchResults && this._currentSearchResultIndex === (this._searchResults.length - 1));
-    },
-
-    /**
      * @return {number}
      */
     currentSearchResultIndex: function() {