[webkit-changes] cvs commit: WebCore/khtml/editing visible_text.cpp
Adele
adele at opensource.apple.com
Wed Aug 10 10:44:30 PDT 2005
adele 05/08/10 10:44:30
Modified: . Tag: Safari-2-0-branch ChangeLog
khtml/editing Tag: Safari-2-0-branch visible_text.cpp
Log:
Merged fix from TOT to Safari-2-0-branch
2005-08-09 David Harrison <harrison at apple.com>
Reviewed by Dave Hyatt.
<rdar://problem/4210906> Word selection wrong with tabs
* khtml/editing/visible_text.cpp:
(khtml::TextIterator::handleTextNode):
Revision Changes Path
No revision
No revision
1.4104.2.108 +13 -0 WebCore/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /cvs/root/WebCore/ChangeLog,v
retrieving revision 1.4104.2.107
retrieving revision 1.4104.2.108
diff -u -r1.4104.2.107 -r1.4104.2.108
--- ChangeLog 10 Aug 2005 17:19:15 -0000 1.4104.2.107
+++ ChangeLog 10 Aug 2005 17:44:22 -0000 1.4104.2.108
@@ -1,5 +1,18 @@
2005-08-10 Adele Peterson <adele at apple.com>
+ Merged fix from TOT to Safari-2-0-branch
+
+ 2005-08-09 David Harrison <harrison at apple.com>
+
+ Reviewed by Dave Hyatt.
+
+ <rdar://problem/4210906> Word selection wrong with tabs
+
+ * khtml/editing/visible_text.cpp:
+ (khtml::TextIterator::handleTextNode):
+
+2005-08-10 Adele Peterson <adele at apple.com>
+
Merged fix from TOT to Safari-2-0-branch.
* khtml/ecma/xmlserializer.cpp: (KJS::XMLSerializerProtoFunc::tryCall):
No revision
No revision
1.26.8.2 +3 -0 WebCore/khtml/editing/visible_text.cpp
Index: visible_text.cpp
===================================================================
RCS file: /cvs/root/WebCore/khtml/editing/visible_text.cpp,v
retrieving revision 1.26.8.1
retrieving revision 1.26.8.2
diff -u -r1.26.8.1 -r1.26.8.2
--- visible_text.cpp 26 Jul 2005 21:44:15 -0000 1.26.8.1
+++ visible_text.cpp 10 Aug 2005 17:44:30 -0000 1.26.8.2
@@ -229,6 +229,9 @@
long end = (m_node == m_endContainer) ? m_endOffset : LONG_MAX;
long runEnd = kMin(strLength, end);
+ if (runStart >= runEnd)
+ return true;
+
m_positionNode = m_node;
m_positionOffsetBaseNode = 0;
m_positionStartOffset = runStart;
More information about the webkit-changes
mailing list