[Webkit-unassigned] [Bug 62606] When double clicking to select an element text, don't include the ending newline in the selection
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Oct 13 22:55:06 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=62606
Kaustubh Atrawalkar <kaustubh at motorola.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kaustubh at motorola.com
--- Comment #6 from Kaustubh Atrawalkar <kaustubh at motorola.com> 2011-10-13 22:55:05 PST ---
Why not to remove taking next VisiblePostion after selecting the paragraph?
Index: WebCore/editing/VisibleSelection.cpp
===================================================================
--- WebCore/editing/VisibleSelection.cpp (revision 97353)
+++ WebCore/editing/VisibleSelection.cpp (working copy)
@@ -356,7 +356,7 @@
// Include the "paragraph break" (the space from the end of this paragraph to the start
// of the next one) in the selection.
- VisiblePosition end(visibleParagraphEnd.next());
+ VisiblePosition end(visibleParagraphEnd);
if (Node* table = isFirstPositionAfterTable(end)) {
// The paragraph break after the last paragraph in the last cell of a block table ends
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list