summaryrefslogtreecommitdiffstats
path: root/WebCore/inspector/front-end/DOMAgent.js
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/inspector/front-end/DOMAgent.js')
-rw-r--r--WebCore/inspector/front-end/DOMAgent.js29
1 files changed, 22 insertions, 7 deletions
diff --git a/WebCore/inspector/front-end/DOMAgent.js b/WebCore/inspector/front-end/DOMAgent.js
index 9b386c3..279852e 100644
--- a/WebCore/inspector/front-end/DOMAgent.js
+++ b/WebCore/inspector/front-end/DOMAgent.js
@@ -98,13 +98,7 @@ WebInspector.DOMNode.prototype = {
set nodeValue(value) {
if (this.nodeType != Node.TEXT_NODE)
return;
- var self = this;
- var callback = function()
- {
- self._nodeValue = value;
- self.textContent = value;
- };
- this.ownerDocument._domAgent.setTextNodeValueAsync(this, value, callback);
+ this.ownerDocument._domAgent.setTextNodeValueAsync(this, value, function() {});
},
getAttribute: function(name)
@@ -384,6 +378,15 @@ WebInspector.DOMAgent.prototype = {
this.document._fireDomEvent("DOMAttrModified", event);
},
+ _characterDataModified: function(nodeId, newValue)
+ {
+ var node = this._idToDOMNode[nodeId];
+ node._nodeValue = newValue;
+ node.textContent = newValue;
+ var event = { target : node };
+ this.document._fireDomEvent("DOMCharacterDataModified", event);
+ },
+
nodeForId: function(nodeId)
{
return this._idToDOMNode[nodeId];
@@ -691,6 +694,11 @@ WebInspector.attributesUpdated = function()
this.domAgent._attributesUpdated.apply(this.domAgent, arguments);
}
+WebInspector.characterDataModified = function()
+{
+ this.domAgent._characterDataModified.apply(this.domAgent, arguments);
+}
+
WebInspector.setDocument = function()
{
this.domAgent._setDocument.apply(this.domAgent, arguments);
@@ -866,6 +874,13 @@ WebInspector.DOMBreakpoint.prototype = {
this.dispatchEventToListeners("enable-changed");
},
+ compareTo: function(other)
+ {
+ if (this.type != other.type)
+ return this.type < other.type ? -1 : 1;
+ return 0;
+ },
+
remove: function()
{
if (this.enabled)