X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fdevtools%2Ffront_end%2Fprofiler%2FCPUProfileView.js;h=9b11f0962c21124b62eae2a6053f7ac128ac9e83;hb=1afa4dd80ef85af7c90efaea6959db1d92330844;hp=a4142b78b2140e019ff0068e7573ba362fbcada4;hpb=90762837333c13ccf56f2ad88e4481fc71e8d281;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.js b/src/third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.js index a4142b7..9b11f09 100644 --- a/src/third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.js +++ b/src/third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.js @@ -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() {