Title: [132347] trunk/Source/WebCore
Revision
132347
Author
commit-qu...@webkit.org
Date
2012-10-24 06:54:46 -0700 (Wed, 24 Oct 2012)

Log Message

Web Inspector: Styles pane: Don't select whole value when I select just a part
https://bugs.webkit.org/show_bug.cgi?id=100242

Patch by Nikita Vasilyev <m...@elv1s.ru> on 2012-10-24
Reviewed by Alexander Pavlov.

* inspector/front-end/StylesSidebarPane.js:
(WebInspector.StylePropertiesSection.prototype._handleEmptySpaceClick):
(WebInspector.StylePropertyTreeElement.prototype):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (132346 => 132347)


--- trunk/Source/WebCore/ChangeLog	2012-10-24 13:44:56 UTC (rev 132346)
+++ trunk/Source/WebCore/ChangeLog	2012-10-24 13:54:46 UTC (rev 132347)
@@ -1,3 +1,14 @@
+2012-10-24  Nikita Vasilyev  <m...@elv1s.ru>
+
+        Web Inspector: Styles pane: Don't select whole value when I select just a part
+        https://bugs.webkit.org/show_bug.cgi?id=100242
+
+        Reviewed by Alexander Pavlov.
+
+        * inspector/front-end/StylesSidebarPane.js:
+        (WebInspector.StylePropertiesSection.prototype._handleEmptySpaceClick):
+        (WebInspector.StylePropertyTreeElement.prototype):
+
 2012-10-24  Vsevolod Vlasov  <vse...@chromium.org>
 
         Web Inspector: UiSourceCode should rely on the workspace as a content provider.

Modified: trunk/Source/WebCore/inspector/front-end/StylesSidebarPane.js (132346 => 132347)


--- trunk/Source/WebCore/inspector/front-end/StylesSidebarPane.js	2012-10-24 13:44:56 UTC (rev 132346)
+++ trunk/Source/WebCore/inspector/front-end/StylesSidebarPane.js	2012-10-24 13:54:46 UTC (rev 132347)
@@ -1231,6 +1231,9 @@
         if (!this.editable)
             return;
 
+        if (!getSelection().isCollapsed)
+            return;
+
         if (this._checkWillCancelEditing())
             return;
 
@@ -2045,6 +2048,9 @@
 
     _mouseClick: function(event)
     {
+        if (!getSelection().isCollapsed)
+            return;
+
         event.consume(true);
 
         if (event.target === this.listItemElement) {
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to