Title: [107934] trunk/Source/WebCore
Revision
107934
Author
pfeld...@chromium.org
Date
2012-02-16 07:36:39 -0800 (Thu, 16 Feb 2012)

Log Message

Web Inspector: revert 'modification of DOM upon single click for selected nodes'.
https://bugs.webkit.org/show_bug.cgi?id=78717

Reviewed by Vsevolod Vlasov.

* inspector/front-end/ElementsTreeOutline.js:
(WebInspector.ElementsTreeElement.prototype.onattach):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (107933 => 107934)


--- trunk/Source/WebCore/ChangeLog	2012-02-16 15:34:17 UTC (rev 107933)
+++ trunk/Source/WebCore/ChangeLog	2012-02-16 15:36:39 UTC (rev 107934)
@@ -1,3 +1,13 @@
+2012-02-15  Pavel Feldman  <pfeld...@google.com>
+
+        Web Inspector: revert 'modification of DOM upon single click for selected nodes'.
+        https://bugs.webkit.org/show_bug.cgi?id=78717
+
+        Reviewed by Vsevolod Vlasov.
+
+        * inspector/front-end/ElementsTreeOutline.js:
+        (WebInspector.ElementsTreeElement.prototype.onattach):
+
 2012-02-16  Pavel Feldman  <pfeld...@google.com>
 
         Web Inspector: move style disable checkboxes to the left

Modified: trunk/Source/WebCore/inspector/front-end/ElementsTreeOutline.js (107933 => 107934)


--- trunk/Source/WebCore/inspector/front-end/ElementsTreeOutline.js	2012-02-16 15:34:17 UTC (rev 107933)
+++ trunk/Source/WebCore/inspector/front-end/ElementsTreeOutline.js	2012-02-16 15:36:39 UTC (rev 107934)
@@ -732,8 +732,6 @@
         this.updateTitle();
         this._preventFollowingLinksOnDoubleClick();
         this.listItemElement.draggable = true;
-        this.listItemElement.addEventListener("click", this._mouseClick.bind(this));
-        this.listItemElement.addEventListener("mousedown", this._mouseDown.bind(this));
     },
 
     _preventFollowingLinksOnDoubleClick: function()
@@ -1008,20 +1006,6 @@
             this.expand();
     },
 
-    _mouseClick: function(event)
-    {
-        if (this._isSingleClickCandidate)
-            this._startEditingTarget(event.target);
-        this._isSingleClickCandidate = false;
-    },
-
-    _mouseDown: function(event)
-    {
-        if (event.handled || event.which !== 1 || this._editing || this._elementCloseTag || !this.selected)
-            return;
-        this._isSingleClickCandidate = true;
-    },
-
     _insertInLastAttributePosition: function(tag, node)
     {
         if (tag.getElementsByClassName("webkit-html-attribute").length > 0)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to