Title: [120827] trunk/Source/WebCore
Revision
120827
Author
[email protected]
Date
2012-06-20 09:15:23 -0700 (Wed, 20 Jun 2012)

Log Message

Web Inspector: duplicating selected text when Enter key is pressed
https://bugs.webkit.org/show_bug.cgi?id=89559

Patch by Sergey Rogulenko <[email protected]> on 2012-06-20
Reviewed by Pavel Feldman.

* inspector/front-end/TextViewer.js:
(WebInspector.TextEditorMainPanel.prototype.handleEnterKey):
The returned result of method normalize() should be used.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (120826 => 120827)


--- trunk/Source/WebCore/ChangeLog	2012-06-20 16:07:34 UTC (rev 120826)
+++ trunk/Source/WebCore/ChangeLog	2012-06-20 16:15:23 UTC (rev 120827)
@@ -1,3 +1,14 @@
+2012-06-20  Sergey Rogulenko  <[email protected]>
+
+        Web Inspector: duplicating selected text when Enter key is pressed 
+        https://bugs.webkit.org/show_bug.cgi?id=89559
+
+        Reviewed by Pavel Feldman.
+
+        * inspector/front-end/TextViewer.js:
+        (WebInspector.TextEditorMainPanel.prototype.handleEnterKey):
+        The returned result of method normalize() should be used.
+
 2012-06-20  Sudarsana Nagineni  <[email protected]>
 
         [Cairo] Fix memory leak in GraphicsContext3DCairo.cpp

Modified: trunk/Source/WebCore/inspector/front-end/TextViewer.js (120826 => 120827)


--- trunk/Source/WebCore/inspector/front-end/TextViewer.js	2012-06-20 16:07:34 UTC (rev 120826)
+++ trunk/Source/WebCore/inspector/front-end/TextViewer.js	2012-06-20 16:15:23 UTC (rev 120827)
@@ -1216,7 +1216,7 @@
         if (!range)
             return false;
 
-        range.normalize();
+        range = range.normalize();
 
         if (range.endColumn === 0)
             return false;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to