| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 { | 321 { |
| 322 RefPtrWillBeRawPtr<Range> searchRange = makeSearchRange(m_end); | 322 RefPtrWillBeRawPtr<Range> searchRange = makeSearchRange(m_end); |
| 323 if (!searchRange) | 323 if (!searchRange) |
| 324 return; | 324 return; |
| 325 | 325 |
| 326 CharacterIterator charIt(searchRange.get(), TextIteratorEmitsCharactersBetwe
enAllVisiblePositions); | 326 CharacterIterator charIt(searchRange.get(), TextIteratorEmitsCharactersBetwe
enAllVisiblePositions); |
| 327 bool changed = false; | 327 bool changed = false; |
| 328 | 328 |
| 329 for (; charIt.length(); charIt.advance(1)) { | 329 for (; charIt.length(); charIt.advance(1)) { |
| 330 UChar c = charIt.characterAt(0); | 330 UChar c = charIt.characterAt(0); |
| 331 if ((!isSpaceOrNewline(c) && c != noBreakSpace) || c == '\n') | 331 if ((!isSpaceOrNewline(c) && c != noBreakSpaceCharacter) || c == '\n') |
| 332 break; | 332 break; |
| 333 m_end = charIt.endPosition(); | 333 m_end = charIt.endPosition(); |
| 334 changed = true; | 334 changed = true; |
| 335 } | 335 } |
| 336 if (changed) | 336 if (changed) |
| 337 didChange(); | 337 didChange(); |
| 338 } | 338 } |
| 339 | 339 |
| 340 void VisibleSelection::setBaseAndExtentToDeepEquivalents() | 340 void VisibleSelection::setBaseAndExtentToDeepEquivalents() |
| 341 { | 341 { |
| (...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 935 sel.showTreeForThis(); | 935 sel.showTreeForThis(); |
| 936 } | 936 } |
| 937 | 937 |
| 938 void showTree(const blink::VisibleSelection* sel) | 938 void showTree(const blink::VisibleSelection* sel) |
| 939 { | 939 { |
| 940 if (sel) | 940 if (sel) |
| 941 sel->showTreeForThis(); | 941 sel->showTreeForThis(); |
| 942 } | 942 } |
| 943 | 943 |
| 944 #endif | 944 #endif |
| OLD | NEW |