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

Unified Diff: third_party/WebKit/Source/platform/text/BidiResolver.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/BidiResolver.h
diff --git a/third_party/WebKit/Source/platform/text/BidiResolver.h b/third_party/WebKit/Source/platform/text/BidiResolver.h
index e3ebf690e2f8e12f80affcf54ec19cf8946ceb5b..db4c901e90436a5e36f7f9688e518d96f8edc3b6 100644
--- a/third_party/WebKit/Source/platform/text/BidiResolver.h
+++ b/third_party/WebKit/Source/platform/text/BidiResolver.h
@@ -26,6 +26,7 @@
#include "platform/text/BidiContext.h"
#include "platform/text/BidiRunList.h"
#include "platform/text/TextDirection.h"
+#include "wtf/Allocator.h"
#include "wtf/HashMap.h"
#include "wtf/Noncopyable.h"
#include "wtf/PassRefPtr.h"
@@ -35,7 +36,8 @@ namespace blink {
class LayoutObject;
-template <class Iterator> class MidpointState {
+template <class Iterator> class MidpointState final {
+ DISALLOW_NEW();
public:
MidpointState()
{
@@ -116,7 +118,8 @@ private:
// The BidiStatus at a given position (typically the end of a line) can
// be cached and then used to restart bidi resolution at that position.
-struct BidiStatus {
+struct BidiStatus final {
+ DISALLOW_NEW();
BidiStatus()
: eor(WTF::Unicode::OtherNeutral)
, lastStrong(WTF::Unicode::OtherNeutral)
@@ -166,7 +169,8 @@ struct BidiStatus {
RefPtr<BidiContext> context;
};
-class BidiEmbedding {
+class BidiEmbedding final {
+ DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
public:
BidiEmbedding(WTF::Unicode::Direction direction, BidiEmbeddingSource source)
: m_direction(direction)
@@ -202,7 +206,8 @@ class NoIsolatedRun {
// BidiResolver is WebKit's implementation of the Unicode Bidi Algorithm
// http://unicode.org/reports/tr9
-template <class Iterator, class Run, class IsolatedRun = NoIsolatedRun> class BidiResolver {
+template <class Iterator, class Run, class IsolatedRun = NoIsolatedRun> class BidiResolver final {
+ DISALLOW_NEW();
WTF_MAKE_NONCOPYABLE(BidiResolver);
public:
BidiResolver()
« no previous file with comments | « third_party/WebKit/Source/core/paint/TextPainter.cpp ('k') | third_party/WebKit/Source/platform/text/BidiRunList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698