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

Unified Diff: third_party/WebKit/Source/platform/text/TextBreakIterator.h

Issue 1521923002: Make platform/text to use USING_FAST_MALLOC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/platform/text/TextBreakIterator.h
diff --git a/third_party/WebKit/Source/platform/text/TextBreakIterator.h b/third_party/WebKit/Source/platform/text/TextBreakIterator.h
index 72187c6c3cc7f1c2deba1dfcfb85bbf31b531645..b984214d062e7dddd927f168d8d6b7cc27b429c8 100644
--- a/third_party/WebKit/Source/platform/text/TextBreakIterator.h
+++ b/third_party/WebKit/Source/platform/text/TextBreakIterator.h
@@ -57,7 +57,8 @@ enum class LineBreakType {
KeepAll, // word-break:keep-all doesn't allow breaks between all kind of letters/numbers except some south east asians'.
};
-class PLATFORM_EXPORT LazyLineBreakIterator {
+class PLATFORM_EXPORT LazyLineBreakIterator final {
+ STACK_ALLOCATED();
public:
LazyLineBreakIterator()
: m_iterator(0)
@@ -199,7 +200,8 @@ private:
// version 4.0 only supports "legacy grapheme clusters".
// Use this for general text processing, e.g. string truncation.
-class PLATFORM_EXPORT NonSharedCharacterBreakIterator {
+class PLATFORM_EXPORT NonSharedCharacterBreakIterator final {
+ STACK_ALLOCATED();
WTF_MAKE_NONCOPYABLE(NonSharedCharacterBreakIterator);
public:
explicit NonSharedCharacterBreakIterator(const String&);
« no previous file with comments | « third_party/WebKit/Source/platform/text/TabSize.h ('k') | third_party/WebKit/Source/platform/text/TextBreakIteratorICU.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698