Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / devtools / front_end / components / HelpScreen.js
index eec996a..eb4c4f0 100644 (file)
@@ -37,7 +37,7 @@ WebInspector.HelpScreen = function(title)
 {
     WebInspector.VBox.call(this);
     this.markAsRoot();
-    this.registerRequiredCSS("helpScreen.css");
+    this.registerRequiredCSS("components/helpScreen.css");
 
     this.element.classList.add("help-window-outer");
     this.element.addEventListener("keydown", this._onKeyDown.bind(this), false);
@@ -47,7 +47,7 @@ WebInspector.HelpScreen = function(title)
         var mainWindow = this.element.createChild("div", "help-window-main");
         var captionWindow = mainWindow.createChild("div", "help-window-caption");
         captionWindow.appendChild(this._createCloseButton());
-        this.contentElement = mainWindow.createChild("div", "help-content");
+        this.helpContentElement = mainWindow.createChild("div", "help-content");
         captionWindow.createChild("h1", "help-window-title").textContent = title;
     }
 }
@@ -60,7 +60,7 @@ WebInspector.HelpScreen._visibleScreen = null;
 WebInspector.HelpScreen.prototype = {
     _createCloseButton: function()
     {
-        var closeButton = document.createElement("div");
+        var closeButton = createElement("div");
         closeButton.className = "help-close-button close-button-gray";
         closeButton.addEventListener("click", this.hide.bind(this), false);
         return closeButton;
@@ -123,7 +123,7 @@ WebInspector.HelpScreen.prototype = {
 WebInspector.RemoteDebuggingTerminatedScreen = function(reason)
 {
     WebInspector.HelpScreen.call(this, WebInspector.UIString("Detached from the target"));
-    var p = this.contentElement.createChild("p");
+    var p = this.helpContentElement.createChild("p");
     p.classList.add("help-section");
     p.createChild("span").textContent = WebInspector.UIString("Remote debugging has been terminated with reason: ");
     p.createChild("span", "error-message").textContent = reason;
@@ -142,7 +142,7 @@ WebInspector.RemoteDebuggingTerminatedScreen.prototype = {
 WebInspector.WorkerTerminatedScreen = function()
 {
     WebInspector.HelpScreen.call(this, WebInspector.UIString("Inspected worker terminated"));
-    var p = this.contentElement.createChild("p");
+    var p = this.helpContentElement.createChild("p");
     p.classList.add("help-section");
     p.textContent = WebInspector.UIString("Inspected worker has terminated. Once it restarts we will attach to it automatically.");
 }