Not reviewed: follow up to r105262, fixing front-end compilation.
authorpfeldman@chromium.org <pfeldman@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Jan 2012 13:52:02 +0000 (13:52 +0000)
committerpfeldman@chromium.org <pfeldman@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Jan 2012 13:52:02 +0000 (13:52 +0000)
* inspector/front-end/DOMAgent.js:
(WebInspector.DOMDocument):
(WebInspector.DOMModelResourceBinding.prototype.setContent.setOuterHTML):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105268 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/inspector/front-end/DOMAgent.js

index 2334491..4fb9276 100644 (file)
@@ -1,3 +1,11 @@
+2012-01-18  Pavel Feldman  <pfeldman@google.com>
+
+        Not reviewed: follow up to r105262, fixing front-end compilation.
+
+        * inspector/front-end/DOMAgent.js:
+        (WebInspector.DOMDocument):
+        (WebInspector.DOMModelResourceBinding.prototype.setContent.setOuterHTML):
+
 2012-01-17  Pavel Feldman  <pfeldman@google.com>
 
         Web Inspector: track HTML revisions when editing DOM and / or upon free flow edits.
index 9f0f826..b768eb1 100644 (file)
@@ -500,14 +500,9 @@ WebInspector.DOMNode.prototype = {
 WebInspector.DOMDocument = function(domAgent, payload)
 {
     WebInspector.DOMNode.call(this, domAgent, this, payload);
-    this.documentURL = payload.documentURL;
+    this.documentURL = payload.documentURL || "";
     this.xmlVersion = payload.xmlVersion;
     domAgent._idToDOMNode[this.id] = this;
-
-    /**
-     * @type {string} Document nodes always have documentURL
-     */
-    this.documentURL;
     this._listeners = {};
 }
 
@@ -1152,7 +1147,7 @@ WebInspector.DOMModelResourceBinding.prototype = {
                 return true;
             }
             if (reportError)
-                callback("No document with given URL found");
+                userCallback("No document with given URL found");
             return false;
         }