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

Unified Diff: third_party/WebKit/Source/web/mac/WebSubstringUtil.mm

Issue 1651263003: Detemplatize TextIterator::copyTextTo with ForwardsTextBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@text_buffers
Patch Set: Change ref parameters to ptrs Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/editing/iterators/WordAwareIterator.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/mac/WebSubstringUtil.mm
diff --git a/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm b/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm
index f3e382c60fa4f928788e6f897db7ad6cc4517cb8..e0045ac683361aed2ad301391175dd0480aa1f4e 100644
--- a/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm
+++ b/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm
@@ -98,8 +98,8 @@ static NSAttributedString* attributedSubstringFromRange(const EphemeralRange& ra
else
[attrs removeObjectForKey:NSBackgroundColorAttributeName];
- Vector<UChar> characters;
- it.copyTextTo(characters);
+ ForwardsTextBuffer characters;
+ it.copyTextTo(&characters);
NSString* substring =
[[[NSString alloc] initWithCharacters:characters.data()
length:characters.size()] autorelease];
« no previous file with comments | « third_party/WebKit/Source/core/editing/iterators/WordAwareIterator.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698