| Index: third_party/WebKit/Source/core/editing/iterators/SearchBuffer.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/iterators/SearchBuffer.cpp b/third_party/WebKit/Source/core/editing/iterators/SearchBuffer.cpp
|
| index 89388a871696a36e9c4cdb4d589a68a2ff3bc929..abb98558f9157656e1e021f7520071991312a466 100644
|
| --- a/third_party/WebKit/Source/core/editing/iterators/SearchBuffer.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/iterators/SearchBuffer.cpp
|
| @@ -40,7 +40,7 @@ namespace blink {
|
|
|
| static const size_t minimumSearchBufferSize = 8192;
|
|
|
| -#if ENABLE(ASSERT)
|
| +#if DCHECK_IS_ON()
|
| static bool searcherInUse;
|
| #endif
|
|
|
| @@ -64,7 +64,7 @@ static UStringSearch* searcher()
|
|
|
| static inline void lockSearcher()
|
| {
|
| -#if ENABLE(ASSERT)
|
| +#if DCHECK_IS_ON()
|
| DCHECK(!searcherInUse);
|
| searcherInUse = true;
|
| #endif
|
| @@ -72,7 +72,7 @@ static inline void lockSearcher()
|
|
|
| static inline void unlockSearcher()
|
| {
|
| -#if ENABLE(ASSERT)
|
| +#if DCHECK_IS_ON()
|
| DCHECK(searcherInUse);
|
| searcherInUse = false;
|
| #endif
|
|
|