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

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

Issue 1604783002: ALL-IN-ONE: Optimization to previousBoundary() and nextBoundary() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@progressive_accumulator
Patch Set: 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
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 350e9cb072ff92136e107450e6ab66a12decc15d..6014041abad066e39b1bb1e0156555e38ad0c86e 100644
--- a/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm
+++ b/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm
@@ -96,7 +96,7 @@ static NSAttributedString* attributedSubstringFromRange(const EphemeralRange& ra
else
[attrs removeObjectForKey:NSBackgroundColorAttributeName];
- Vector<UChar> characters;
+ ForwardsTextBuffer characters;
it.copyTextTo(characters);
NSString* substring =
[[[NSString alloc] initWithCharacters:characters.data()

Powered by Google App Engine
This is Rietveld 408576698