| Index: third_party/WebKit/Source/platform/text/TextBreakIteratorICU.cpp
|
| diff --git a/third_party/WebKit/Source/platform/text/TextBreakIteratorICU.cpp b/third_party/WebKit/Source/platform/text/TextBreakIteratorICU.cpp
|
| index 9691763b288d72ea081061fb9c23740dd4dbbef4..c014507a11a4f79f73cf29a3658b1cd06a389330 100644
|
| --- a/third_party/WebKit/Source/platform/text/TextBreakIteratorICU.cpp
|
| +++ b/third_party/WebKit/Source/platform/text/TextBreakIteratorICU.cpp
|
| @@ -39,14 +39,14 @@ class LineBreakIteratorPool final {
|
| USING_FAST_MALLOC(LineBreakIteratorPool);
|
| WTF_MAKE_NONCOPYABLE(LineBreakIteratorPool);
|
| public:
|
| + LineBreakIteratorPool() { }
|
| +
|
| static LineBreakIteratorPool& sharedPool()
|
| {
|
| static WTF::ThreadSpecific<LineBreakIteratorPool>* pool = new WTF::ThreadSpecific<LineBreakIteratorPool>;
|
| return **pool;
|
| }
|
|
|
| - static PassOwnPtr<LineBreakIteratorPool> create() { return adoptPtr(new LineBreakIteratorPool); }
|
| -
|
| icu::BreakIterator* take(const AtomicString& locale)
|
| {
|
| icu::BreakIterator* iterator = 0;
|
| @@ -93,16 +93,12 @@ public:
|
| }
|
|
|
| private:
|
| - LineBreakIteratorPool() { }
|
| -
|
| static const size_t capacity = 4;
|
|
|
| typedef std::pair<AtomicString, icu::BreakIterator*> Entry;
|
| typedef Vector<Entry, capacity> Pool;
|
| Pool m_pool;
|
| HashMap<icu::BreakIterator*, AtomicString> m_vendedIterators;
|
| -
|
| - friend WTF::ThreadSpecific<LineBreakIteratorPool>::operator LineBreakIteratorPool*();
|
| };
|
|
|
| enum TextContext { NoContext, PriorContext, PrimaryContext };
|
|
|