Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: Source/core/editing/VisibleSelection.cpp

Issue 1119663002: Making Unicode character names consistent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase patch Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/editing/ReplaceSelectionCommand.cpp ('k') | Source/core/editing/htmlediting.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/editing/ReplaceSelectionCommand.cpp ('k') | Source/core/editing/htmlediting.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698