Summary: | Text search should treat all matches as word-start matches when the target begins with a separator character | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | mitz | ||||
Component: | HTML Editing | Assignee: | mitz | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | abarth, eric, webkit.review.bot | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Other | ||||||
OS: | OS X 10.5 | ||||||
Attachments: |
|
Description
mitz
2010-11-30 17:27:46 PST
Created attachment 75237 [details]
Patch
Comment on attachment 75237 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=75237&action=review > WebCore/editing/TextIterator.cpp:1897 > + if (m_options & AtWordStarts && targetLength) { > + UChar32 targetFirstCharacter; > + U16_GET(m_target.characters(), 0, 0, m_target.length(), targetFirstCharacter); You probably need parentheses to avoid annoying newest gcc. Why not use targetLength here instead of m_target.length()? > WebCore/editing/TextIterator.cpp:1898 > + // Characters in the separator category are never really occur at the beginning of a word, "are never really occur" is wrong -- I suggest removing a word http://trac.webkit.org/changeset/72989 might have broken Qt Linux ARMv7 Release |