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

Unified Diff: third_party/WebKit/Source/platform/text/StringTruncator.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/StringTruncator.h
diff --git a/third_party/WebKit/Source/platform/text/StringTruncator.h b/third_party/WebKit/Source/platform/text/StringTruncator.h
index 5be0cc48c49c5edd9432d52687ce990051c8ff14..8dfaa9ea4c4e4880b1bbfc89a55183445891b9ab 100644
--- a/third_party/WebKit/Source/platform/text/StringTruncator.h
+++ b/third_party/WebKit/Source/platform/text/StringTruncator.h
@@ -30,6 +30,7 @@
#define StringTruncator_h
#include "platform/PlatformExport.h"
+#include "wtf/Allocator.h"
#include "wtf/Forward.h"
namespace blink {
@@ -37,6 +38,7 @@ namespace blink {
class Font;
class PLATFORM_EXPORT StringTruncator {
+ STATIC_ONLY(StringTruncator);
public:
static String centerTruncate(const String&, float maxWidth, const Font&);
static String rightTruncate(const String&, float maxWidth, const Font&);
« no previous file with comments | « third_party/WebKit/Source/platform/text/SegmentedString.h ('k') | third_party/WebKit/Source/platform/text/SuffixTree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698