Darin made this change on my machine; I reviewed it.
authorsullivan <sullivan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Jun 2004 18:22:54 +0000 (18:22 +0000)
committersullivan <sullivan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Jun 2004 18:22:54 +0000 (18:22 +0000)
        - fixed <rdar://problem/3698333> Find on page doesn't find a particular string
        with a newline in the source

        * khtml/misc/khtml_text_operations.cpp:
        (khtml::TextIterator::handleTextBox):
        Clear m_lastTextNodeEndedWithCollapsedSpace after taking it into account.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6912 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog-2005-08-23
WebCore/khtml/editing/visible_text.cpp
WebCore/khtml/misc/khtml_text_operations.cpp

index 0cb68f6308ca6183f53167cc60f3d08377d52aa2..aadb29d733c2d8008ee222daaef7805e631dc1b3 100644 (file)
@@ -1,3 +1,14 @@
+2004-06-24  John Sullivan  <sullivan@apple.com>
+
+        Darin made this change on my machine; I reviewed it.
+        
+        - fixed <rdar://problem/3698333> Find on page doesn't find a particular string 
+        with a newline in the source
+
+        * khtml/misc/khtml_text_operations.cpp:
+        (khtml::TextIterator::handleTextBox):
+        Clear m_lastTextNodeEndedWithCollapsedSpace after taking it into account.
+
 2004-06-23  Richard Williamson   <rjw@apple.com>
 
        Implemented changes for latest npruntime.h.
index 98f2e447d8d9eaa4b9e6325048d03c5361cec494..06954c9c2e05b8c41da6e747a7b3ec908e595c61 100644 (file)
@@ -378,6 +378,7 @@ void TextIterator::handleTextBox()
                 m_textCharacters = str.unicode() + runStart;
                 m_textLength = subrunEnd - runStart;
 
+                m_lastTextNodeEndedWithCollapsedSpace = false;
                 m_lastCharacter = str[subrunEnd - 1];
             }
 
index 98f2e447d8d9eaa4b9e6325048d03c5361cec494..06954c9c2e05b8c41da6e747a7b3ec908e595c61 100644 (file)
@@ -378,6 +378,7 @@ void TextIterator::handleTextBox()
                 m_textCharacters = str.unicode() + runStart;
                 m_textLength = subrunEnd - runStart;
 
+                m_lastTextNodeEndedWithCollapsedSpace = false;
                 m_lastCharacter = str[subrunEnd - 1];
             }